watcher

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventAdd    string = "EventAdd"
	EventUpdate string = "EventUpdate"
	EventDelete string = "EventDelete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type Informer

type Informer interface {
	AddEventHandler(handler eventHandler, notifier notify.Notifier)
	HasSynced() bool
	Start(ch <-chan struct{})
}

type NewInformerFunc

type NewInformerFunc func(client *Client) (*multiResourceInformer, error)

func NewMultiResourceInformer

func NewMultiResourceInformer(cfg *config.Config, resyncPeriod time.Duration) NewInformerFunc

type Watcher

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

func NewWatcher

func NewWatcher(cfg *config.Config) (*Watcher, error)

func (*Watcher) Run

func (w *Watcher) Run(stopCh chan struct{})

Jump to

Keyboard shortcuts

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