File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ type JailerConfig struct {
8686 // CgroupVersion is the version of the cgroup filesystem to use.
8787 CgroupVersion string
8888
89+ // CgroupArgs are the cgroup arguments to pass to the jailer.
8990 CgroupArgs []string
9091
9192 // Stdout specifies the IO writer for STDOUT to use when spawning the jailer.
@@ -221,6 +222,8 @@ func (b JailerCommandBuilder) WithNumaNode(node int) JailerCommandBuilder {
221222 return b
222223}
223224
225+ // WithCgroupArgs will set the specified cgroup args to the builder. This
226+ // represents the cgroup settings that the process will get assigned.
224227func (b JailerCommandBuilder ) WithCgroupArgs (cgroupArgs ... string ) JailerCommandBuilder {
225228 b .cgroupArgs = cgroupArgs
226229 return b
You can’t perform that action at this time.
0 commit comments