Documentation ¶
Index ¶
- func AppendDevicePermissionsFromCgroupRules(devPermissions []specs.LinuxDeviceCgroup, rules []string) ([]specs.LinuxDeviceCgroup, error)
- func DefaultCapabilities() []string
- func DefaultLinuxSpec() specs.Spec
- func DefaultOSSpec(osName string) specs.Spec
- func DefaultSpec() specs.Spec
- func DefaultWindowsSpec() specs.Spec
- func Device(d *configs.Device) specs.LinuxDevice
- func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
- func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
- func SetCapabilities(s *specs.Spec, caplist []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendDevicePermissionsFromCgroupRules ¶
func AppendDevicePermissionsFromCgroupRules(devPermissions []specs.LinuxDeviceCgroup, rules []string) ([]specs.LinuxDeviceCgroup, error)
AppendDevicePermissionsFromCgroupRules takes rules for the devices cgroup to append to the default set
func DefaultCapabilities ¶
func DefaultCapabilities() []string
DefaultCapabilities returns a Linux kernel default capabilities
func DefaultLinuxSpec ¶
func DefaultLinuxSpec() specs.Spec
DefaultLinuxSpec create a default spec for running Linux containers
func DefaultOSSpec ¶
func DefaultOSSpec(osName string) specs.Spec
DefaultOSSpec returns the spec for a given OS
func DefaultSpec ¶
func DefaultSpec() specs.Spec
DefaultSpec returns the default spec used by docker for the current Platform
func DefaultWindowsSpec ¶
func DefaultWindowsSpec() specs.Spec
DefaultWindowsSpec create a default spec for running Windows containers
func DevicesFromPath ¶
func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error)
DevicesFromPath computes a list of devices and device permissions from paths (pathOnHost and pathInContainer) and cgroup permissions.
func RemoveNamespace ¶
func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType)
RemoveNamespace removes the `nsType` namespace from OCI spec `s`
Types ¶
This section is empty.