package
0.12.1
Repository: https://github.com/sageprogrammer/podman.git
Documentation: pkg.go.dev

# Functions

CreateConfigToOCISpec parses information needed to create a container into an OCI runtime spec.
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.
ExposedPorts parses user and image ports and returns binding information.
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.
Valid checks the validity of a linux namespace s should be the string representation of ns.

# Constants

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.
TypeVolume is the type for remote storage volumes TypeVolume mountType = "volume" // re-enable upon use TypeTmpfs is the type for mounting tmpfs.

# Structs

CreateConfig is a pre OCI spec structure.
CreateResourceConfig represents resource elements in CreateConfig structures.

# Interfaces

LinuxNS is a struct that contains namespace information It implemented Valid to show it is a valid namespace.