# Packages
Package camelcase is a micro package to split the words of a camelcase type string into a slice of words.
# Functions
No description provided by the author
ConvertTimeout converts negative timeout to MaxUint32, which indicates approximately infinity, waiting to stop containers.
CoresToPeriodAndQuota converts a fraction of cores to the equivalent Completely Fair Scheduler (CFS) parameters period and quota.
No description provided by the author
DecodeChanges reads one or more changes from a slice and cleans them up, since what we've advertised as being acceptable in the past isn't really.
Copied from github.com/opencontainers/runc/libcontainer/devices Given the path to a device look up the information about a linux device.
ExecAddTERM when container does not have a TERM environment variable and caller wants a tty, then leak the existing TERM environment into the container.
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.
filtersFromRequests extracts the "filters" parameter from the specified http.Request.
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.
GetAutoOptions returns an AutoUserNsOptions with the settings to automatically set up a user namespace.
GetContainerPidInformationDescriptors returns a string slice of all supported format descriptors of GetContainerPidInformation.
GetKeepIDMapping returns the mappings and the user to use when keep-id is used.
GetNoMapMapping returns the mappings and the user to use when nomap is used.
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.
GetRootlessRuntimeDir returns the runtime directory when running as non root.
IDtoolsToRuntimeSpec converts idtools ID mapping to the one of the runtime spec.
No description provided by the author
OpenExclusiveFile opens a file for writing and ensure it doesn't already exist.
Takes build context and validates `.containerignore` or `.dockerignore` if they are symlink outside of buildcontext.
No description provided by the author
Extension of idTools.ParseIDMap that parses idmap triples from string.
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.
ParseRestartPolicy parses the value given to the --restart flag and returns the policy and restart retries value.
ParseSignal parses and validates a signal name or number.
PeriodAndQuotaToCores takes the CFS parameters period and quota and returns a fraction that represents the limit to the number of cores that can be utilized over the scheduling period.
PrepareFilters prepares a *map[string][]string of filters to be later searched in lipod and compat API to get desired filters.
ProcessOptions parses the options for a bind or tmpfs mount and ensures that they are sensible and follow convention.
RuntimeSpecToIDtoolsTo converts runtime spec to the one of the idtools ID mapping.
SizeOfPath determines the file usage of a given path.
StringMatchRegexSlice determines if a given string matches one of the given regexes, returns bool.
No description provided by the author
ValidateSysctls validates a list of sysctl and returns it.
WriteStorageConfigFile writes the configuration to a file.
# Constants
DefaultCPUPeriod is the default CPU period (100ms) in microseconds, which is the same default as Kubernetes.
Kube annotation for podman volume device.
Kube annotation for podman volume driver.
Kube annotation for podman volume GID.
Kube annotation for podman volume image.
Kube annotation for podman volume import source.
Kube annotation for podman volume mount options.
Kube annotation for podman volume type.
Kube annotation for podman volume UID.
# Variables
ErrBadMntOption indicates that an invalid mount option was passed.
ErrDupeMntOption indicates that a duplicate mount option was passed.