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) GetContainerPid() int
- func (c *Config) GetInstance() bool
- func (c *Config) GetIsSUID() bool
- func (c *Config) GetJSONConfSize() uint
- func (c *Config) GetNoNewPrivs() bool
- func (c *Config) SetCapabilities(ctype string, caps []string)
- func (c *Config) SetInstance(instance 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)
- func (c *Config) SetNsPathFromSpec(namespaces []specs.LinuxNamespace)
- func (c *Config) SetTargetGID(gids []int)
- func (c *Config) SetTargetUID(uid int)
- func (c *Config) WritePayload(w io.Writer, 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 ¶
func (c *Config) AddGIDMappings(gids []specs.LinuxIDMapping) error
AddGIDMappings sets user namespace GID mapping
func (*Config) AddUIDMappings ¶
func (c *Config) AddUIDMappings(uids []specs.LinuxIDMapping) error
AddUIDMappings sets user namespace UID mapping.
func (*Config) GetContainerPid ¶
GetContainerPid returns container process ID
func (*Config) GetInstance ¶
GetInstance returns if container run as instance or not
func (*Config) GetJSONConfSize ¶
GetJSONConfSize returns size of JSON configuration sent by starter
func (*Config) GetNoNewPrivs ¶
GetNoNewPrivs returns if NO_NEW_PRIVS flag is set or not
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) 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) SetNsPath ¶
func (c *Config) SetNsPath(nstype specs.LinuxNamespaceType, path string)
SetNsPath sets corresponding namespace to be joined
func (*Config) SetNsPathFromSpec ¶
func (c *Config) SetNsPathFromSpec(namespaces []specs.LinuxNamespace)
SetNsPathFromSpec sets corresponding namespace to be joined from OCI spec
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