package
1.10.0-alpha.1
Repository: https://github.com/awly/kubernetes.git
Documentation: pkg.go.dev

# Packages

Code generated by mockery v1.0.0.

# Functions

No description provided by the author
Build the pod full name from pod name and namespace.
TODO(random-liu): Convert PodStatus to running Pod, should be deprecated soon.
No description provided by the author
EnvVarsToMap constructs a map of environment name to value from a slice of env vars.
No description provided by the author
ExpandContainerCommandOnlyStatic substitutes only static environment variable values from the container environment definitions.
Create an event recorder to record object's event except implicitly required container's, like infra container.
FormatPod returns a string representing a pod in a human readable format, with pod UID as part of the string.
GenerateContainerRef returns an *v1.ObjectReference which references the given container within the given pod.
GetContainerSpec gets the container spec by containerName.
GetPodFullName returns a name that uniquely identifies a pod.
handleResizing spawns a goroutine that processes the resize channel, calling resizeFunc for each remotecommand.TerminalSize received from the channel.
HashContainer returns the hash of the container.
HashContainerLegacy returns the hash of the container.
HasPrivilegedContainer returns true if any of the containers in the pod are privileged.
Pod must not be nil.
MakeCapabilities creates string slices from Capability slices.
MakePortMappings creates internal port mapping from api port mapping.
NewCache creates a pod cache.
New ContainerGC instance with the specified policy.
NewRefManager creates and returns a container reference manager with empty contents.
NewRuntimeCache creates a container runtime cache.
NewSyncResult generates new SyncResult with specific Action and Target.
No description provided by the author
Convenience method for creating a ContainerID from an ID string.
Parse the pod full name.
SandboxToContainerState converts runtimeapi.PodSandboxState to kubecontainer.ContainerState.
ShouldContainerBeRestarted checks whether a container needs to be restarted.
No description provided by the author
V1EnvVarsToMap constructs a map of environment name to value from a slice of env vars.

# 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
This unknown encompasses all the states that we currently don't care.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxContainerTerminationMessageLength is the upper bound any one container may write to its termination message path.
MaxContainerTerminationMessageLogLength is the maximum bytes any one container will have written to its termination message when the message is read from the logs.
MaxContainerTerminationMessageLogLines is the maximum number of previous lines of log output that the termination message can contain.
MaxPodTerminationMessageLogLength is the maximum bytes any one pod may have written as termination message output across all containers.
NetworkReady means the runtime network is up and ready to accept containers which require network.
RuntimeReady means the runtime is up and ready to accept basic containers.
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
ErrContainerNotFound returned when a container in the given pod with the given container name was not found, amongst those managed by the kubelet.
Container Terminated and Kubelet is backing off the restart.
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
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Container provides the runtime information for a container, such as ID, hash, state of the container.
Specified a policy for garbage collecting containers.
ContainerID is a type that identifies a container.
ContainerStatus represents the status of a container.
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.
ImageStats contains statistics about all the images currently available.
No description provided by the author
Pod is a group of containers.
PodPair contains both runtime#Pod and api#Pod.
PodStatus represents the status of the pod and its containers.
PodSyncResult is the summary result of SyncPod() and KillPod().
No description provided by the author
RealOS is used to dispatch the real system level operations.
RefManager manages the references for the containers.
RunContainerOptions specify the options which are necessary for running containers.
RuntimeCondition contains condition information for the runtime.
RuntimeStatus contains the status of the runtime.
SyncResult is the result of sync action.
TestRunTimeCache embeds runtimeCache with some additional methods for testing.
VolumeInfo contains information about the volume.

# Interfaces

Cache stores the PodStatus for the pods.
No description provided by the author
No description provided by the author
Manages garbage collection of dead containers.
DirectStreamingRuntime is the interface implemented by runtimes for which the streaming calls (exec/attach/port-forward) should be served directly by the Kubelet.
HandlerRunner runs a lifecycle handler for a container.
No description provided by the author
IndirectStreamingRuntime is the interface implemented by runtimes that handle the serving of the streaming calls (exec/attach/port-forward) themselves.
OSInterface collects system level operations that need to be mocked out during tests.
Runtime interface defines the interfaces that should be implemented by a container runtime.
No description provided by the author
RuntimeHelper wraps kubelet to make container runtime able to get necessary informations like the RunContainerOptions, DNS settings, Host IP.
SourcesReadyProvider knows how to determine if configuration sources are ready.
No description provided by the author

# Type aliases

No description provided by the author
DockerID is an ID of docker container.
Option is a functional option type for Runtime, useful for completely optional settings.
No description provided by the author
RuntimeConditionType is the types of required runtime conditions.
Sort the container statuses by creation time.
SyncAction indicates different kind of actions in SyncPod() and KillPod().
No description provided by the author