informer

package
v0.0.0-...-3ea6822 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(client kubernetes.Interface, opts ...FactoryOption) (*Factory, error)

func (*Factory) ForResource

func (f *Factory) ForResource(r schema.Resource) (Informer, error)

func (*Factory) Start

func (f *Factory) Start(ctx context.Context)

func (*Factory) Stop

func (f *Factory) Stop()

type FactoryOption

type FactoryOption func(*Factory) error

func WithErrorHandler

func WithErrorHandler(fn watchers.ErrorHandler) FactoryOption

func WithResyncPeriod

func WithResyncPeriod(p time.Duration) FactoryOption

type Informer

type Informer interface {
	AddWatcher(watcher watchers.Watcher) error
}

Jump to

Keyboard shortcuts

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