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 ¶
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.
Directories ¶
Path | Synopsis |
---|---|
admissionregistration
|
|
apiserverinternal
|
|
apps
|
|
autoscaling
|
|
batch
|
|
certificates
|
|
coordination
|
|
core
|
|
discovery
|
|
events
|
|
extensions
|
|
flowcontrol
|
|
imagepolicy
|
|
networking
|
|
node
|
|
policy
|
|
rbac
|
|
resource
|
|
scheduling
|
|
storage
|
|
storagemigration
|
|