listers

package
v0.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 152

Documentation

Overview

Package listers provides generated listers for Kubernetes APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceIndexer

type ResourceIndexer[T runtime.Object] struct {
	// contains filtered or unexported fields
}

ResourceIndexer wraps an indexer, resource, and optional namespace for a given type. This is intended for use by listers (generated by lister-gen) only.

func New

func New[T runtime.Object](indexer cache.Indexer, resource schema.GroupResource) ResourceIndexer[T]

New returns a new instance of a lister (resource indexer) wrapping the given indexer and resource for the specified type. This is intended for use by listers (generated by lister-gen) only.

func NewNamespaced

func NewNamespaced[T runtime.Object](parent ResourceIndexer[T], namespace string) ResourceIndexer[T]

NewNamespaced returns a new instance of a namespaced lister (resource indexer) wrapping the given parent and namespace for the specified type. This is intended for use by listers (generated by lister-gen) only.

func (ResourceIndexer[T]) Get

func (l ResourceIndexer[T]) Get(name string) (T, error)

Get retrieves the resource from the index for a given name.

func (ResourceIndexer[T]) List

func (l ResourceIndexer[T]) List(selector labels.Selector) (ret []T, err error)

List lists all resources in the indexer matching the given selector.

Directories

Path Synopsis
admissionregistration
v1
apiserverinternal
apps
v1
autoscaling
v1
v2
batch
v1
certificates
v1
coordination
v1
core
v1
discovery
v1
events
v1
extensions
flowcontrol
v1
imagepolicy
networking
v1
node
v1
policy
v1
rbac
v1
resource
scheduling
v1
storage
v1
storagemigration

Jump to

Keyboard shortcuts

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