Documentation ¶
Index ¶
- type CConfig
- type Config
- func (c *Config) AddGIDMappings(gids []specs.LinuxIDMapping)
- func (c *Config) AddUIDMappings(uids []specs.LinuxIDMapping)
- 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) SetNoNewPrivs(noprivs bool)
- func (c *Config) SetNsFlags(flags int)
- func (c *Config) SetNsFlagsFromSpec(namespaces []specs.LinuxNamespace)
- func (c *Config) SetNsPid(nstype specs.LinuxNamespaceType, pid 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 wrapper configuration
func NewConfig ¶
NewConfig takes a pointer to C wrapper configuration and returns a pointer to a Config
func (*Config) AddGIDMappings ¶
func (c *Config) AddGIDMappings(gids []specs.LinuxIDMapping)
AddGIDMappings sets user namespace GID mapping
func (*Config) AddUIDMappings ¶
func (c *Config) AddUIDMappings(uids []specs.LinuxIDMapping)
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 wrapper
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 wrapper should spawn instance or not
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