Map which represents the possible configurations of a cgroup
Summary
Functions
Render the config into cgroup v2 interface-file => value pairs.
Types
@type cpu_spec() :: %{quota_us: pos_integer(), period_us: pos_integer()}
@type t() :: %{ optional(:cpu_max) => cpu_spec(), optional(:memory_max) => pos_integer() }
Functions
Render the config into cgroup v2 interface-file => value pairs.
@spec cpu_max(t(), pos_integer(), pos_integer()) :: t()
@spec memory_max(t(), pos_integer()) :: t()
@spec new() :: t()