Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPU ¶
CPU limit cpu usage of processes inside sandbox. This will monitor cpu usage, and kill process when cpu usage is exceeding limit. This will also cancel the context returned by `Context` method when processes inside cgroup exceeding limit.
type Limiter ¶
Limiter limit process resource using linux cgroup. Limiter gives context that will be cancelled when process inside cgroup exceeding limit.
type Memory ¶
type Memory interface { Limiter Limit(bytes uint64) error Throttle(bytes uint64) error Usage() uint64 }
Memory limit memory usage of processes inside sandbox. This will monitor memory usage, and kill process when maximum memory usage is exceeding limit. This will also cancel the context returned by `Context` method when processes inside cgroup exceeding limit.
Click to show internal directories.
Click to hide internal directories.