node

package
v0.0.0-...-313cd9e Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGetter

type FakeGetter struct {
	Node *api.Node
	Err  error
}

FakeGetter is a Getter implementation designed to be used in unit tests

func (FakeGetter) Get

func (f FakeGetter) Get(name string) (*api.Node, error)

Get is the Getter interface implementation. It simply returns f.RCList, f.Err

type FakeLister

type FakeLister struct {
	NodeList *api.NodeList
	Err      error
}

FakeLister is a Lister implementation designed to be used in unit tests

func (FakeLister) List

List is the Lister interface implementation. It simply returns f.RCList, f.Err

type Getter

type Getter interface {
	Get(name string) (*api.Node, error)
}

Getter is a (k8s.io/kubernetes/pkg/client/unversioned).NodeInterface compatible interface designed only for getting nodes. It should be used as a parameter to functions so that they can be more easily unit tested

type Lister

type Lister interface {
	List(api.ListOptions) (*api.NodeList, error)
}

Lister is a (k8s.io/kubernetes/pkg/client/unversioned).NodeInterface compatible interface designed only for listing nodes. It should be used as a parameter to functions so that they can be more easily unit tested

Jump to

Keyboard shortcuts

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