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
type AllPodLister ¶
type AllPodLister struct {
// contains filtered or unexported fields
}
UnschedulablePodLister lists all pods.
type NodeLister ¶
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 ¶
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.