Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeString string TypeInt int TypeUint uint )
View Source
var ( // Main folder for all container related files Workdir string = "/var/lib/sandal" Containers string = "" )
View Source
var Namespaces []string = []string{"pid", "net", "user", "uts", "ipc", "cgroup", "mnt", "time", "ns"}
Functions ¶
func GenerateContainerId ¶
func GenerateContainerId() string
Types ¶
type Config ¶
type Config struct { Name string Created int64 HostPid int ContPid int LoopDevNo int TmpSize uint SquashfsFile string RootfsDir string ReadOnly bool Remove bool EnvAll bool Background bool Startup bool NS map[string]*StringWrapper ChangeDir string Exec string Devtmpfs string Resolv string Hosts string Status string Dir string Volumes StringFlags HostArgs []string PodArgs []string LowerDirs StringFlags RunPreExec StringFlags RunPrePivot StringFlags PassEnv StringFlags Ifaces []NetIface }
func AllContainers ¶
func LoadConfig ¶
func NewContainer ¶
func NewContainer() Config
func (*Config) ConfigFileLoc ¶
func (*Config) SaveConftoDisk ¶
type StringFlags ¶ added in v1.5.0
type StringFlags []string
func (*StringFlags) Set ¶ added in v1.5.0
func (f *StringFlags) Set(value string) error
func (*StringFlags) String ¶ added in v1.5.0
func (f *StringFlags) String() string
type StringWrapper ¶ added in v1.5.0
type StringWrapper struct {
Value string
}
Click to show internal directories.
Click to hide internal directories.