kubernetes: k8s.io/kubernetes/staging/src/k8s.io/client-go/metadata/metadatalister Index | Files

package metadatalister

import "k8s.io/kubernetes/staging/src/k8s.io/client-go/metadata/metadatalister"

Index

Package Files

interface.go lister.go shim.go

func NewRuntimeObjectShim Uses

func NewRuntimeObjectShim(lister Lister) cache.GenericLister

NewRuntimeObjectShim returns a new shim for Lister. It wraps Lister so that it implements cache.GenericLister interface

type Lister Uses

type Lister interface {
    // List lists all resources in the indexer.
    List(selector labels.Selector) (ret []*metav1.PartialObjectMetadata, err error)
    // Get retrieves a resource from the indexer with the given name
    Get(name string) (*metav1.PartialObjectMetadata, error)
    // Namespace returns an object that can list and get resources in a given namespace.
    Namespace(namespace string) NamespaceLister
}

Lister helps list resources.

func New Uses

func New(indexer cache.Indexer, gvr schema.GroupVersionResource) Lister

New returns a new Lister.

type NamespaceLister Uses

type NamespaceLister interface {
    // List lists all resources in the indexer for a given namespace.
    List(selector labels.Selector) (ret []*metav1.PartialObjectMetadata, err error)
    // Get retrieves a resource from the indexer for a given namespace and name.
    Get(name string) (*metav1.PartialObjectMetadata, error)
}

NamespaceLister helps list and get resources.

Package metadatalister imports 6 packages (graph). Updated 2019-08-07. Refresh now. Tools for package owners.