package
1.9.3
Repository: https://github.com/containers/libpod.git
Documentation: pkg.go.dev

# Packages

Package camelcase is a micro package to split the words of a camelcase type string into a slice of words.

# Functions

ExitCode reads the error message when failing to executing container process and then returns 0 if no error, 126 if command does not exist, or 127 for all other errors.
FindDeviceNodes parses /dev/ into a set of major:minor -> path, where [major:minor] is the device's major and minor numbers formatted as, for example, 2:0 and path is the path to the device node.
GetContainerPidInformationDescriptors returns a string slice of all supported format descriptors of GetContainerPidInformation.
GetGlobalOpts checks all global flags and generates the command string FIXME: Port input to config.Config TODO: Is there a "better" way to reverse values to flags? This seems brittle.
GetImageConfig produces a v1.ImageConfig from the --change flag that is accepted by several Podman commands.
GetRootlessConfigHomeDir returns the config home directory when running as non root.
GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for the pause process.
GetRuntimeDir returns the runtime directory.
HomeDir returns the home directory for the current user.
OpenExclusiveFile opens a file for writing and ensure it doesn't already exist.
ParseIDMapping takes idmappings and subuid and subgid maps and returns a storage mapping.
ParseInputTime takes the users input and to determine if it is valid and returns a time format and error.
ParseRegistryCreds takes a credentials string in the form USERNAME:PASSWORD and returns a DockerAuthConfig.
ParseSignal parses and validates a signal name or number.
ProcessOptions parses the options for a bind or tmpfs mount and ensures that they are sensible and follow convention.
StringInSlice determines if a string is in a string slice, returns bool.
No description provided by the author
ValidatePullType check if the pullType from CLI is valid and returns the valid enum type if the value from CLI is invalid returns the error.
ValidateSysctls validates a list of sysctl and returns it.
WriteStorageConfigFile writes the configuration to a file.

# Constants

PullImageAlways always try to pull new image when create or run.
PullImageMissing pulls image if it is not locally.
PullImageNever will never pull new image.

# Variables

ErrBadMntOption indicates that an invalid mount option was passed.
ErrDupeMntOption indicates that a duplicate mount option was passed.

# Structs

ImageConfig is a wrapper around the OCIv1 Image Configuration struct exported by containers/image, but containing additional fields that are not supported by OCIv1 (but are by Docker v2) - notably OnBuild.

# Type aliases

PullType whether to pull new image.