k8s

package
v2.0.0-beta1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL