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 ¶
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 Mount ¶
type Mount struct {
Type string `yaml:"type"`
Source string `yaml:"source"`
Target string `yaml:"target"`
Readonly bool `yaml:"readonly"`
Data string `yaml:"data"`
}
Mount defines single mount point configuration. type could be bind / tmpfs
type Mounts ¶
type Mounts struct {
Mount []Mount `yaml:"mount"`
SymLinks []Link `yaml:"symLink"`
MaskPaths []string `yaml:"maskPath"`
InitCmd string `yaml:"initCmd"`
WorkDir string `yaml:"workDir"`
HostName string `yaml:"hostName"`
DomainName string `yaml:"domainName"`
UID int `yaml:"uid"`
GID int `yaml:"gid"`
Proc bool `yaml:"proc"`
ProcRW bool `yaml:"procrw"`
}
Mounts defines mount points for the container.
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.