package
0.21.4
Repository: https://github.com/daizf/kubernetes.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Build the pod full name from pod name and namespace.
EnvVarsToMap constructs a map of environment name to value from a slice of env vars.
No description provided by the author
GenerateContainerRef returns an *api.ObjectReference which references the given container within the given pod.
GetPodFullName returns a name that uniquely identifies a pod.
HashContainer returns the hash of the container.
No description provided by the author
NewReadinessManager creates ane returns a readiness manager with empty contents.
NewRefManager creates and returns a container reference manager with empty contents.
NewRuntimeCache creates a container runtime cache.
Parse the pod full name.
ShouldContainerBeRestarted checks whether a container needs to be restarted.
No description provided by the author
Trims runtime prefix from ID or image name (e.g.: docker://busybox -> busybox).

# Structs

Container provides the runtime information for a container, such as ID, hash, status of the container.
ContainerID is a type that identifies a container.
No description provided by the author
FakeOS mocks out certain OS calls to avoid perturbing the filesystem on the test machine.
FakeRuntime is a fake container runtime for testing.
No description provided by the author
No description provided by the author
Basic information about a container image.
ImageSpec is an internal representation of an image.
No description provided by the author
Pod is a group of containers, with the status of the pod.
No description provided by the author
ReadinessManager maintains the readiness information(probe results) of containers over time to allow for implementation of health thresholds.
RealOS is used to dispatch the real system level operaitons.
RefManager manages the references for the containers.
RunContainerOptions specify the options which are necessary for running containers.

# Interfaces

CommandRunner encapsulates the command runner interfaces for testability.
HandlerRunner runs a lifecycle handler for a container.
OSInterface collects system level operations that need to be mocked out during tests.
RunContainerOptionsGenerator generates the options that necessary for container runtime to run a container.
Runtime interface defines the interfaces that should be implemented by a container runtime.
No description provided by the author
Customizable hooks injected into container runtimes.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author