# Packages
nolint most of these validate and parse functions have been taken from projectatomic/docker and modified for cri-o.
# Functions
BatchContainer 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.
EnvVariablesFromData gets sets the default environment variables for containers, and reads the variables from the image data, if present.
GenerateCommand takes a label (string) and converts it to an executable command.
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.
GetAllLabels ...
GetCtrInspectInfo inspects a container, combining Libpod inspect information with other information not stored in Libpod and returning a struct that, when formatted for JSON output, is compatible with `docker inspect`.
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.
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 contruction of the runlabel output and environment variables.
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.
PBatch is performs batch operations on a container in parallel.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
BatchContainerStruct is the return obkect 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.
InspectContainer holds all inspect data for a container.
InspectContainerConfig holds further data about a container, again mostly not directly stored in Libpod.
InspectContainerHostConfig holds Container configuration that is not specific to Libpod.
InspectLogConfig holds information about a container's configured log driver and is presently unused.
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.