Documentation ¶
Overview ¶
Package env provides a unified method to create environment for envexec.
For linux, the env creates container & cgroup sandbox.
For windows, the env creates low mandatory level sandbox.
For macOS, the env creates sandbox_init sandbox.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(c Config) (pool.EnvBuilder, error)
NewBuilder build a environment builder
Types ¶
type Config ¶ added in v0.8.1
type Config struct { ContainerInitPath string TmpFsParam string MountConf string SeccompConf string CgroupPrefix string Cpuset string ContainerCredStart int EnableCPURate bool CPUCfsPeriod time.Duration Logger }
Config defines parameters to create environment builder
type Logger ¶ added in v0.8.1
type Logger interface { Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) }
Logger defines logger to print logs
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package pool provides reference implementation for envexec.EnvironmentPool from EnvBuilder
|
Package pool provides reference implementation for envexec.EnvironmentPool from EnvBuilder |
Click to show internal directories.
Click to hide internal directories.