Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deleter ¶
Deleter is a (k8s.io/kubernetes/pkg/client/unversioned).NamespaceInterface compatible interface designed only for deleting namespaces. It should be used as a parameter to functions so that they can be more easily unit tested
type FakeDeleter ¶
FakeDeleter is a NamespaceDeleter implementation to be used in unit tests
func (*FakeDeleter) Delete ¶
func (f *FakeDeleter) Delete(name string) error
Delete is the Deleter interface implementation. It just returns f.Err
type Lister ¶
Lister 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 Watcher ¶
type Watcher interface {
Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}
Watcher 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()