Documentation ¶
Index ¶
- func FailedContainers(pod *api.Pod) map[string]ContainerFailures
- func MakeTempDirOrDie(prefix string, baseDir string) string
- func PodNotReady(p *api.Pod) (bool, error)
- func PodReady(pod *api.Pod) bool
- func PodRunningReady(p *api.Pod) (bool, error)
- func PodRunningReadyOrSucceeded(p *api.Pod) (bool, error)
- func TerminatedContainers(pod *api.Pod) map[string]string
- type ContainerFailures
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailedContainers ¶ added in v1.4.5
func FailedContainers(pod *api.Pod) map[string]ContainerFailures
FailedContainers inspects all containers in a pod and returns failure information for containers that have failed or been restarted. A map is returned where the key is the containerID and the value is a struct containing the restart and failure information
func MakeTempDirOrDie ¶
func PodNotReady ¶ added in v1.4.5
PodNotReady checks whether pod p's has a ready condition of status false.
func PodReady ¶ added in v1.4.5
podReady returns whether pod has a condition of Ready with a status of true. TODO: should be replaced with api.IsPodReady
func PodRunningReady ¶ added in v1.4.5
PodRunningReady checks whether pod p's phase is running and it has a ready condition of status true.
func PodRunningReadyOrSucceeded ¶ added in v1.4.5
Types ¶
type ContainerFailures ¶ added in v1.4.5
type ContainerFailures struct { Restarts int // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.