k8s

package
v0.0.0-...-7113a67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 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 IK8sEventHandler

type IK8sEventHandler interface {
	CustomWatchErrorHandler(r *cache.Reflector, err error)
	OnAddObject(obj interface{})
	OnUpdateObject(oldObj, newObj interface{})
	OnDeleteObject(obj interface{})
}

type IK8sInformer

type IK8sInformer interface {
	Run()
}

func NewK8sDynamicInformer

func NewK8sDynamicInformer(
	ctx context.Context,
	logger *zap.Logger,
	config config.IConfig,
	handler IK8sEventHandler,
	filter K8sInformerFilter,
) (IK8sInformer, error)

type K8sInformerFilter

type K8sInformerFilter struct {
	dig.In
	Resource  string `name:"k8s_resource"`
	Namespace string `name:"k8s_resource_namespace"`
}

Jump to

Keyboard shortcuts

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