package
3.4.7
Repository: https://github.com/containers/podman.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

ComputeUntilTimestamp extracts until timestamp from filters.
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.
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.
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.
IDtoolsToRuntimeSpec converts idtools ID mapping to the one of the runtime spec.
MatchLabelFilters matches labels and returns true if they are valid.
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.
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.
No description provided by the author
No description provided by the author
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
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.
Kube annotation for podman volume device.
Kube annotation for podman volume driver.
Kube annotation for podman volume GID.
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.

# 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.