Documentation ¶
Index ¶
- type CConfig
- type Config
- func (c *Config) AddGIDMappings(gids []specs.LinuxIDMapping) error
- func (c *Config) AddUIDMappings(uids []specs.LinuxIDMapping) error
- func (c *Config) GetBringLoopbackInterface() bool
- func (c *Config) GetContainerPid() int
- func (c *Config) GetInstance() bool
- func (c *Config) GetIsSUID() bool
- func (c *Config) GetJSONConfig() []byte
- func (c *Config) GetJoinMount() bool
- func (c *Config) GetNoNewPrivs() bool
- func (c *Config) GetSharedMount() bool
- func (c *Config) Release() error
- func (c *Config) SetBringLoopbackInterface(bring bool)
- func (c *Config) SetCapabilities(ctype string, caps []string)
- func (c *Config) SetInstance(instance bool)
- func (c *Config) SetJoinMount(join bool)
- func (c *Config) SetMountPropagation(propagation string)
- func (c *Config) SetNoNewPrivs(noprivs bool)
- func (c *Config) SetNsFlags(flags int)
- func (c *Config) SetNsFlagsFromSpec(namespaces []specs.LinuxNamespace)
- func (c *Config) SetNsPath(nstype specs.LinuxNamespaceType, path string) error
- func (c *Config) SetNsPathFromSpec(namespaces []specs.LinuxNamespace) error
- func (c *Config) SetSharedMount(shared bool)
- func (c *Config) SetTargetGID(gids []int)
- func (c *Config) SetTargetUID(uid int)
- func (c *Config) Write(payload interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents structure to manipulate C starter configuration
func NewConfig ¶
NewConfig takes a pointer to C starter configuration and returns a pointer to a Config
func (*Config) AddGIDMappings ¶
AddGIDMappings sets user namespace GID mapping
func (*Config) AddUIDMappings ¶
AddUIDMappings sets user namespace UID mapping.
func (*Config) GetBringLoopbackInterface ¶
GetBringLoopbackInterface returns if starter bring loopback network interface
func (*Config) GetContainerPid ¶
GetContainerPid returns container process ID
func (*Config) GetInstance ¶
GetInstance returns if container run as instance or not
func (*Config) GetJSONConfig ¶
GetJSONConfig returns pointer to JSON configuration
func (*Config) GetJoinMount ¶
GetJoinMount returns if container process join a mount namespace
func (*Config) GetNoNewPrivs ¶
GetNoNewPrivs returns if NO_NEW_PRIVS flag is set or not
func (*Config) GetSharedMount ¶
GetSharedMount returns if master/container shares mount point or not
func (*Config) SetBringLoopbackInterface ¶
SetBringLoopbackInterface sets if starter bring loopback network interface
func (*Config) SetCapabilities ¶
SetCapabilities sets corresponding capability set identified by ctype from a capability string list identified by ctype
func (*Config) SetInstance ¶
SetInstance sets if starter should spawn instance or not
func (*Config) SetJoinMount ¶
SetJoinMount sets if container process join a mount namespace
func (*Config) SetMountPropagation ¶
SetMountPropagation sets root filesystem mount propagation
func (*Config) SetNoNewPrivs ¶
SetNoNewPrivs sets NO_NEW_PRIVS flag
func (*Config) SetNsFlags ¶
SetNsFlags sets namespaces flag directly from flags argument
func (*Config) SetNsFlagsFromSpec ¶
func (c *Config) SetNsFlagsFromSpec(namespaces []specs.LinuxNamespace)
SetNsFlagsFromSpec sets namespaces flag from OCI spec
func (*Config) SetNsPathFromSpec ¶
SetNsPathFromSpec sets corresponding namespace to be joined from OCI spec
func (*Config) SetSharedMount ¶
SetSharedMount sets if master/container shares mount point
func (*Config) SetTargetGID ¶
SetTargetGID sets target GIDs to execute container process as group IDs
func (*Config) SetTargetUID ¶
SetTargetUID sets target UID to execute the container process as user ID