Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeString string TypeInt int TypeUint uint )
View Source
var Namespaces []string = []string{"pid", "net", "user", "uts", "ipc", "cgroup", "mnt", "time", "ns"}
Functions ¶
func ConfigFileLoc ¶
func GenerateContainerId ¶
func GenerateContainerId() string
Types ¶
type ALocFor ¶
type ALocFor uint8
Allocate For a Network Interface {host: bridge interfaces such as sandal0 , host-pod: veth, pod: lo0}
type Config ¶
type Config struct { Name string Created int64 HostPid int ContPid int TmpSize uint ProjectDir string ChangeDir string RootfsDir string ReadOnly bool Remove bool EnvAll bool Background bool Startup bool NS map[string]*StringWrapper Exec string Devtmpfs string Resolv string Hosts string Status string Dir string Volumes StringFlags SquashFiles []*SquashFile HostArgs []string PodArgs []string Lower StringFlags RunPreExec StringFlags RunPrePivot StringFlags PassEnv StringFlags Ifaces []NetIface }
func NewContainer ¶
func NewContainer() Config
func (*Config) ConfigFileLoc ¶
type DefaultInformation ¶
func Defs ¶
func Defs(containerName string) DefaultInformation
type SquashFile ¶
type StringFlags ¶
type StringFlags []string
func (*StringFlags) Set ¶
func (f *StringFlags) Set(value string) error
func (*StringFlags) String ¶
func (f *StringFlags) String() string
type StringWrapper ¶
type StringWrapper struct {
Value string
}
Click to show internal directories.
Click to hide internal directories.