Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ValidPullPolicies is the set of pull policies that this package considers valid ValidPullPolicies = map[api.PullPolicy]struct{}{ api.PullAlways: struct{}{}, api.PullIfNotPresent: struct{}{}, api.PullNever: struct{}{}, } )
Functions ¶
func PullPolicyFromString ¶
func PullPolicyFromString(ppStr string) (api.PullPolicy, error)
PullPolicyFromString converts a string into an api.PullPolicy. returns an error if the string does not match a pull policy in ValidPullPolicies()
Types ¶
type ErrInvalidPullPolicy ¶
type ErrInvalidPullPolicy struct {
// contains filtered or unexported fields
}
ErrInvalidPullPolicy is the error returned when trying to convert an unknown string to an api.PullPolicy
func (ErrInvalidPullPolicy) Error ¶
func (e ErrInvalidPullPolicy) Error() string
Error is the error interface implementation
type NamespaceLister ¶
type NamespaceLister interface {
List(labels.Selector, fields.Selector) (*api.NamespaceList, error)
}
NamespaceLister is a (k8s.io/kubernetes/pkg/client/unversioned).NamespaceInterface compatible interface which only has the List function. It's used in places that only need List to make them easier to test and more easily swappable with other implementations (should the need arise).
Example usage:
var nsl NamespaceLister nsl = kubeClient.Namespaces()
type NamespaceWatcher ¶
type NamespaceWatcher interface {
Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}
NamespaceWatcher is a (k8s.io/kubernetes/pkg/client/unversioned).NamespaceInterface compatible interface which only has the Watch function. It's used in places that only need perform watches, to make those codebases easier to test and more easily swappable with other implementations (should the need arise).
Example usage:
var nsl NamespaceWatcher nsl = kubeClient.Namespaces()