kubernetes: k8s.io/kubernetes/pkg/client/conditions Index | Files

package conditions

import "k8s.io/kubernetes/pkg/client/conditions"

Index

Package Files

conditions.go

Variables

var ErrPodCompleted = fmt.Errorf("pod ran to completion")

ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.

func PodCompleted Uses

func PodCompleted(event watch.Event) (bool, error)

PodCompleted returns true if the pod has run to completion, false if the pod has not yet reached running state, or an error in any other case.

func PodRunning Uses

func PodRunning(event watch.Event) (bool, error)

PodRunning returns true if the pod is running, false if the pod has not yet reached running state, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.

func ServiceAccountHasSecrets Uses

func ServiceAccountHasSecrets(event watch.Event) (bool, error)

ServiceAccountHasSecrets returns true if the service account has at least one secret, false if it does not, or an error.

Package conditions imports 5 packages (graph) and is imported by 180 packages. Updated 2018-06-25. Refresh now. Tools for package owners.