// Path specifies the path to cgroups that are created and/or joined by the container.
// The path is assumed to be relative to the host system cgroup mountpoint.
Pathstring`json:"path"`
// ScopePrefix decribes prefix for the scope name
// ScopePrefix decribes prefix for the scope name
ScopePrefixstring`json:"scope_prefix"`
ScopePrefixstring`json:"scope_prefix"`
// Paths represent the cgroups paths to join
// Paths represent the absolute cgroups paths to join.
// This takes precedence over Path.
Pathsmap[string]string
Pathsmap[string]string
// Resources contains various cgroups settings to apply
// Resources contains various cgroups settings to apply
...
@@ -28,11 +35,14 @@ type Cgroup struct {
...
@@ -28,11 +35,14 @@ type Cgroup struct {
typeResourcesstruct{
typeResourcesstruct{
// If this is true allow access to any kind of device within the container. If false, allow access only to devices explicitly listed in the allowed_devices list.
// If this is true allow access to any kind of device within the container. If false, allow access only to devices explicitly listed in the allowed_devices list.