controllers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v0.1.1

type Controller interface {
	Run(ctx context.Context, workers int) error
	Name() string
	Enqueue(obj interface{})
}

type ControllerBuilder added in v0.1.1

type ControllerBuilder interface {
	SetHandler(handler func(key string) error) ControllerBuilder
	SetLogger(logger log.FieldLogger) ControllerBuilder
	SetReSyncHandler(handler func()) ControllerBuilder
	SetReSyncPeriod(period time.Duration) ControllerBuilder
	Build() (Controller, error)
}

func NewControllerBuilder added in v0.1.1

func NewControllerBuilder(name string) ControllerBuilder

Directories

Path Synopsis
app
csi

Jump to

Keyboard shortcuts

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