# Functions
AddPrivilegedDevices iterates through host devices and adds all host devices to the spec.
No description provided by the author
No description provided by the author
CreatePortBinding takes port (int) and IP (string) and creates an array of portbinding structs.
Device transforms a libcontainer configs.Device to a specs.LinuxDevice object.
DevicesFromPath computes a list of devices.
ExposedPorts parses user and image ports and returns binding information.
No description provided by the author
No description provided by the author
Ensure mount options on all mounts are correct.
IsNS returns if the specified string has a ns: prefix.
IsPod returns if the specified string is pod.
IsValidDeviceMode checks if the mode for device is valid or not.
NatToOCIPortBindings iterates a nat.portmap slice and creates []ocicni portmapping slice.
NS is the path to the namespace to join.
ParseDevice parses device mapping string to a src, dest & permissions string.
Supersede existing mounts in the spec with new, user-specified mounts.
Valid checks the validity of a linux namespace s should be the string representation of ns.
ValidateweightDevice validates that the specified string has a valid device-weight format for blkio-weight-device flag.
# Constants
No description provided by the author
DefaultKernelNamespaces is a comma-separated list of default kernel namespaces.
Pod signifies a kernel namespace is being shared by a container with the pod it is associated with.
TypeBind is the type for mounting host dir.
TypeTmpfs is the type for mounting tmpfs.
TypeVolume is the type for named volumes.
# Structs
CgroupConfig configures the cgroup namespace for the container.
CreateConfig is a pre OCI spec structure.
CreateResourceConfig represents resource elements in CreateConfig structures.
IpcConfig configures the ipc namespace for the container.
NetworkConfig configures the network namespace for the container.
PidConfig configures the pid namespace for the container.
SecurityConfig configures the security features for the container.
UserConfig configures the user namespace for the container.
UtsConfig configures the uts namespace for the container.
# Interfaces
LinuxNS is a struct that contains namespace information It implemented Valid to show it is a valid namespace.