Skip to content

Commit 7ef891b

Browse files
committed
Add comments for CgroupArgs
1 parent 00d4d3d commit 7ef891b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jailer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
224227
func (b JailerCommandBuilder) WithCgroupArgs(cgroupArgs ...string) JailerCommandBuilder {
225228
b.cgroupArgs = cgroupArgs
226229
return b

0 commit comments

Comments
 (0)