entities

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntitiesWatcher

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

func NewEntitiesWatcher

func NewEntitiesWatcher(
	observer_ *kuber.Observer,
	version int,
) *EntitiesWatcher

func (*EntitiesWatcher) AddResourceEventsHandler added in v3.4.0

func (ew *EntitiesWatcher) AddResourceEventsHandler(handler ResourceEventsHandler)

func (*EntitiesWatcher) GetAllEntitiesByGvrk added in v3.4.0

func (ew *EntitiesWatcher) GetAllEntitiesByGvrk() (map[kuber.GroupVersionResourceKind][]unstructured.Unstructured, []error)

func (*EntitiesWatcher) GetParents added in v3.6.0

func (ew *EntitiesWatcher) GetParents(namespace string, kind string, name string) (*kuber.ParentController, bool)

func (*EntitiesWatcher) OnAdd

func (*EntitiesWatcher) OnDelete

func (*EntitiesWatcher) OnUpdate

func (ew *EntitiesWatcher) OnUpdate(
	gvrk kuber.GroupVersionResourceKind,
	oldObj, newObj unstructured.Unstructured,
)

func (*EntitiesWatcher) SetDeltasHandler

func (ew *EntitiesWatcher) SetDeltasHandler(handler agent.DeltasHandler)

func (*EntitiesWatcher) SetEntitiesResyncHandler

func (ew *EntitiesWatcher) SetEntitiesResyncHandler(handler agent.EntitiesResyncHandler)

func (*EntitiesWatcher) Start

func (ew *EntitiesWatcher) Start(ctx context.Context) error

func (*EntitiesWatcher) Stop

func (ew *EntitiesWatcher) Stop() error

func (*EntitiesWatcher) WaitForCacheSync added in v3.4.0

func (ew *EntitiesWatcher) WaitForCacheSync()

func (*EntitiesWatcher) WatcherFor

func (ew *EntitiesWatcher) WatcherFor(
	gvrk kuber.GroupVersionResourceKind,
) (kuber.Watcher, error)

type EntitiesWatcherSource added in v3.6.0

type EntitiesWatcherSource interface {
	AddResourceEventsHandler(handler ResourceEventsHandler)
	GetAllEntitiesByGvrk() (map[kuber.GroupVersionResourceKind][]unstructured.Unstructured, []error)
	GetParents(namespace string, kind string, name string) (*kuber.ParentController, bool)
}

type ResourceEventsHandler added in v3.4.0

type ResourceEventsHandler interface {
	OnResourceAdd(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
	OnResourceUpdate(gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured)
	OnResourceDelete(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
	OnCacheSync()
}

Jump to

Keyboard shortcuts

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