backend

package
v0.0.0-...-1b92784 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Trigger
	CacheFactory
	Watcher
	kclient.WithWatch
	kclient.FieldIndexer

	Preload(ctx context.Context) error
	Start(ctx context.Context) error
	GVKForObject(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)
}

type CacheFactory

type CacheFactory interface {
	GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind) (cache.SharedIndexInformer, error)
}

type Callback

type Callback func(ctx context.Context, gvk schema.GroupVersionKind, key string, obj runtime.Object) (runtime.Object, error)

type Trigger

type Trigger interface {
	Trigger(ctx context.Context, gvk schema.GroupVersionKind, key string, delay time.Duration) error
}

type Watcher

type Watcher interface {
	Watcher(ctx context.Context, gvk schema.GroupVersionKind, name string, cb Callback) error
}

Jump to

Keyboard shortcuts

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