delta

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubscriber

func NewSubscriber(
	log logrus.FieldLogger,
	logLevel logrus.Level,
	cfg Config, client castaiClient,
	stateProvider SnapshotProvider,
	k8sVersionMinor int,
) controller.ObjectSubscriber

func ResyncObserver

func ResyncObserver(
	ctx context.Context,
	log logrus.FieldLogger,
	snaphotProvider SnapshotProvider,
	client castai.Client,
) telemetry.Observer

Types

type Config

type Config struct {
	DeltaSyncInterval time.Duration
}

type SnapshotProvider

type SnapshotProvider interface {
	// contains filtered or unexported methods
}

func NewSnapshotProvider

func NewSnapshotProvider() SnapshotProvider

type Subscriber

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

func (*Subscriber) OnAdd

func (s *Subscriber) OnAdd(obj controller.Object)

func (*Subscriber) OnDelete

func (s *Subscriber) OnDelete(obj controller.Object)

func (*Subscriber) OnUpdate

func (s *Subscriber) OnUpdate(obj controller.Object)

func (*Subscriber) RequiredInformers

func (s *Subscriber) RequiredInformers() []reflect.Type

func (*Subscriber) Run

func (s *Subscriber) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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