factory

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

README

dynamic-factory

Kubernetes client-go and lister packages use similar but different function signature for LIST and GET api calls. This makes it difficult to switch from one implemenation to the other. This package implements a dynamic factory interface that can be used to either direct read api objects from Kubernetes api server or read from locally cached indexer/lister.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	ForResource(gvr schema.GroupVersionResource) dynamiclister.Lister
}

func New

func New(dc dynamic.Interface) Factory

func NewCached

func NewCached(dc dynamic.Interface, defaultResync time.Duration, stopCh <-chan struct{}) Factory

func NewFilteredCached

func NewFilteredCached(dc dynamic.Interface, defaultResync time.Duration, namespace string, tweakListOptions dynamicinformer.TweakListOptionsFunc, stopCh <-chan struct{}) Factory

func NewSharedCached

func NewSharedCached(factory dynamicinformer.DynamicSharedInformerFactory, stopCh <-chan struct{}) Factory

Jump to

Keyboard shortcuts

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