# Packages
nolint most of these validate and parse functions have been taken from projectatomic/docker and modified for cri-o.
# Functions
BatchContainerOp is used in ps to reduce performance hits by "batching" locks.
No description provided by the author
No description provided by the author
No description provided by the author
CreatePortBindings iterates ports mappings and exposed ports into a format CNI understands.
DefaultPoolSize provides the maximum number of parallel workers (int) as calculated by a basic heuristic.
FilterAllPodsWithFilterFunc retrieves all pods Filters can be provided which will determine which pods are included in the output.
GenerateCommand takes a label (string) and converts it to an executable command.
GenerateContainerFilterFuncs return ContainerFilter functions based of filter.
GenerateFilterFunction basically gets the filters based on the input by the user and filter the pod list based on the criteria.
GenerateKube generates kubernetes yaml based on a pod or container.
GenerateRunEnvironment merges the current environment variables with optional environment variables provided by the user.
GenerateRunlabelCommand generates the command that will eventually be execucted by Podman.
GetNamespaceInfo is an exported wrapper for getNamespaceInfo.
GetNamespaceOptions transforms a slice of kernel namespaces into a slice of pod create options.
GetNamespaces returns a populated namespace struct.
GetPodStatus determines the status of the pod based on the statuses of the containers in the pod.
GetPodsWithFilters uses the cliconfig to categorize if the latest pod is required.
GetPsContainerOutput returns a slice of containers specifically for ps output.
GetRunlabel is a helper function for runlabel; it gets the image if needed and begins the construction of the runlabel output and environment variables.
No description provided by the author
NewBatchContainer runs a batch process under one lock to get container information and only be called in PBatch.
NewIntermediateLayer creates a GenericCLIResults from a create or run cli-command.
NewPool creates and initializes a new Pool.
ParallelExecuteWorkerPool takes container jobs and performs them in parallel.
Parallelize provides the maximum number of parallel workers (int) as calculated by a basic heuristic.
ParallelWorker is a "threaded" worker that takes jobs from the channel "queue".
Parses CLI options related to container creation into a config which can be parsed into an OCI runtime spec.
Handle volume options from CLI.
PBatch performs batch operations on a container in parallel.
Remove given set of volumes.
# Variables
No description provided by the author
# Structs
BatchContainerStruct is the return object from BatchContainer and contains container related information.
ContainerSize holds the size of the container's root filesystem and top read-write layer.
CRBool describes a bool cli struct.
CRFloat64 describes a float64 cli struct.
CRInt describes an int cli struct.
CRInt64 describes an int64 cli struct.
CRString describes a string cli struct.
CRStringArray describes a stringarray cli struct.
CRStringSlice describes a string slice cli struct.
CRUint describes a uint cli struct.
CRUint64 describes a uint64 cli struct.
GenericCLIResults in the intermediate object between the cobra cli and createconfig.
Job defines the function to run.
JobResult defines the results from the function ran.
Namespace describes output for ps namespace.
ParallelWorkerInput is a struct used to pass in a slice of parallel funcs to be performed on a container ID.
Pool defines the worker pool and queues.
PsContainerOutput is the struct being returned from a parallel batch operation.
PsOptions describes the struct being formed for ps.
# Interfaces
GenericCLIResult describes the overall interface for dealing with the create command cli in both local and remote uses.
# Type aliases
JobFunc provides the function signature for the pool'ed functions.