listers

package
v2.2.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllNodeLister

type AllNodeLister struct {
	// contains filtered or unexported fields
}

AllNodeLister lists all nodes

func (*AllNodeLister) List

func (allNodeLister *AllNodeLister) List() ([]*apiv1.Node, error)

List returns all nodes

type AllPodLister

type AllPodLister struct {
	// contains filtered or unexported fields
}

UnschedulablePodLister lists all pods.

func (*AllPodLister) List

func (allPodLister *AllPodLister) List() ([]*apiv1.Pod, error)

List returns all pods.

type NodeLister

type NodeLister interface {
	List() ([]*apiv1.Node, error)
}

NodeLister lists nodes.

func NewAllNodeLister

func NewAllNodeLister(kubeClient kubernetes.Interface, stopchannel <-chan struct{}) NodeLister

NewAllNodeLister builds a node lister that returns all nodes (ready and unready)

type PodLister

type PodLister interface {
	List() ([]*apiv1.Pod, error)
}

PodLister lists pods.

func NewAllPodInNamespaceLister

func NewAllPodInNamespaceLister(kubeClient kubernetes.Interface, namespace string, stopchannel <-chan struct{}) PodLister

NewAllPodInNamespaceLister returns a lister providing all pods.

func NewAllPodLister

func NewAllPodLister(kubeClient kubernetes.Interface, stopchannel <-chan struct{}) PodLister

NewAllPodLister returns a lister providing all pods.

type Registry

type Registry interface {
	AllNodeLister() NodeLister
	AllPodLister() PodLister
}

Registry is a registry providing listers to list all pods or nodes.

func NewRegistry

func NewRegistry(allNode NodeLister, allPod PodLister) Registry

NewRegistry returns a registry providing listers to list all pods or nodes.

func NewRegistryWithDefaultListers

func NewRegistryWithDefaultListers(kubeClient kubernetes.Interface, stopChannel <-chan struct{}) Registry

NewRegistryWithDefaultListers returns a registry filled with listers of the default implementations.

type RegistryImpl

type RegistryImpl struct {
	// contains filtered or unexported fields
}

func (RegistryImpl) AllNodeLister

func (r RegistryImpl) AllNodeLister() NodeLister

AllNodeLister returns the AllNodeLister registered to this registry.

func (RegistryImpl) AllPodLister

func (r RegistryImpl) AllPodLister() PodLister

AllPodLister returns the AllPodLister registered to this registry.

Jump to

Keyboard shortcuts

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