package v1

import "k8s.io/client-go/informers/coordination/v1"

Index

Functions

func NewFilteredLeaseInformer

func NewFilteredLeaseInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer

NewFilteredLeaseInformer constructs a new informer for Lease type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.

func NewLeaseInformer

func NewLeaseInformer(client kubernetes.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer

NewLeaseInformer constructs a new informer for Lease type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.

Types

type Interface

type Interface interface {
	// Leases returns a LeaseInformer.
	Leases() LeaseInformer
}

Interface provides access to all the informers in this group version.

func New

New returns a new Interface.

type LeaseInformer

type LeaseInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() coordinationv1.LeaseLister
}

LeaseInformer provides access to a shared informer and lister for Leases.

Source Files

interface.go lease.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
1 hour ago

Tools for package owners.