...

Package v1

import "k8s.io/client-go/listers/policy/v1"
Overview
Index

Overview ▾

type EvictionLister

EvictionLister helps list Evictions. All objects returned here must be treated as read-only.

type EvictionLister interface {
    // List lists all Evictions in the indexer.
    // Objects returned here must be treated as read-only.
    List(selector labels.Selector) (ret []*v1.Eviction, err error)
    // Evictions returns an object that can list and get Evictions.
    Evictions(namespace string) EvictionNamespaceLister
    EvictionListerExpansion
}

func NewEvictionLister

func NewEvictionLister(indexer cache.Indexer) EvictionLister

NewEvictionLister returns a new EvictionLister.

type EvictionListerExpansion

EvictionListerExpansion allows custom methods to be added to EvictionLister.

type EvictionListerExpansion interface{}

type EvictionNamespaceLister

EvictionNamespaceLister helps list and get Evictions. All objects returned here must be treated as read-only.

type EvictionNamespaceLister interface {
    // List lists all Evictions in the indexer for a given namespace.
    // Objects returned here must be treated as read-only.
    List(selector labels.Selector) (ret []*v1.Eviction, err error)
    // Get retrieves the Eviction from the indexer for a given namespace and name.
    // Objects returned here must be treated as read-only.
    Get(name string) (*v1.Eviction, error)
    EvictionNamespaceListerExpansion
}

type EvictionNamespaceListerExpansion

EvictionNamespaceListerExpansion allows custom methods to be added to EvictionNamespaceLister.

type EvictionNamespaceListerExpansion interface{}

type PodDisruptionBudgetLister

PodDisruptionBudgetLister helps list PodDisruptionBudgets. All objects returned here must be treated as read-only.

type PodDisruptionBudgetLister interface {
    // List lists all PodDisruptionBudgets in the indexer.
    // Objects returned here must be treated as read-only.
    List(selector labels.Selector) (ret []*v1.PodDisruptionBudget, err error)
    // PodDisruptionBudgets returns an object that can list and get PodDisruptionBudgets.
    PodDisruptionBudgets(namespace string) PodDisruptionBudgetNamespaceLister
    PodDisruptionBudgetListerExpansion
}

func NewPodDisruptionBudgetLister

func NewPodDisruptionBudgetLister(indexer cache.Indexer) PodDisruptionBudgetLister

NewPodDisruptionBudgetLister returns a new PodDisruptionBudgetLister.

type PodDisruptionBudgetListerExpansion

PodDisruptionBudgetListerExpansion allows custom methods to be added to PodDisruptionBudgetLister.

type PodDisruptionBudgetListerExpansion interface {
    GetPodPodDisruptionBudgets(pod *v1.Pod) ([]*policy.PodDisruptionBudget, error)
}

type PodDisruptionBudgetNamespaceLister

PodDisruptionBudgetNamespaceLister helps list and get PodDisruptionBudgets. All objects returned here must be treated as read-only.

type PodDisruptionBudgetNamespaceLister interface {
    // List lists all PodDisruptionBudgets in the indexer for a given namespace.
    // Objects returned here must be treated as read-only.
    List(selector labels.Selector) (ret []*v1.PodDisruptionBudget, err error)
    // Get retrieves the PodDisruptionBudget from the indexer for a given namespace and name.
    // Objects returned here must be treated as read-only.
    Get(name string) (*v1.PodDisruptionBudget, error)
    PodDisruptionBudgetNamespaceListerExpansion
}

type PodDisruptionBudgetNamespaceListerExpansion

PodDisruptionBudgetNamespaceListerExpansion allows custom methods to be added to PodDisruptionBudgetNamespaceLister.

type PodDisruptionBudgetNamespaceListerExpansion interface{}