# Packages
Package camelcase is a micro package to split the words of a camelcase type string into a slice of words.
# Functions
CheckRootlessUIDRange checks the uid within the rootless container is in the range from /etc/subuid.
CoresToPeriodAndQuota converts a fraction of cores to the equivalent Completely Fair Scheduler (CFS) parameters period and quota.
No description provided by the author
No description provided by the author
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.
GetImageConfig produces a v1.ImageConfig from the --change flag that is accepted by several Podman commands.
GetKeepIDMapping returns the mappings and the user to use when keep-id 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.
GetRootlessPauseProcessPidPathGivenDir returns the path to the file that holds the PID of the pause process, given the location of Libpod's temporary files.
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.
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.
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.
StringMatchRegexSlice determines if a given string matches one of the given regexes, 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
DefaultCPUPeriod is the default CPU period is 100us, which is the same default as Kubernetes.
# Variables
ErrBadMntOption indicates that an invalid mount option was passed.
ErrDupeMntOption indicates that a duplicate mount option was passed.
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.
# 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
No description provided by the author