batch

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Synced is the Event reason when a RadixBatch is synced without errors
	Synced = "Synced"

	// SyncFailed is the Event reason when an error occurs while syncing a RadixBatch
	SyncFailed = "SyncFailed"

	// MessageResourceSynced is the message used for an Event fired when a RadixBatch
	// is synced successfully
	MessageResourceSynced = "RadixBatch synced successfully"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context,
	kubeClient kubernetes.Interface,
	radixClient radixclient.Interface,
	handler common.Handler,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	radixInformerFactory informers.SharedInformerFactory,
	recorder record.EventRecorder) *common.Controller

NewController creates a new controller that handles RadixBatches

func NewHandler

func NewHandler(
	kubeclient kubernetes.Interface,
	kubeutil *kube.Kube,
	radixclient radixclient.Interface,
	config *config.Config,
	options ...HandlerConfigOption) common.Handler

Types

type HandlerConfigOption

type HandlerConfigOption func(*handler)

HandlerConfigOption defines a configuration function used for additional configuration of handler

func WithSyncerFactory

func WithSyncerFactory(factory internal.SyncerFactory) HandlerConfigOption

WithSyncerFactory configures the SyncerFactory for the handler

Directories

Path Synopsis
Package internal is a generated GoMock package.
Package internal is a generated GoMock package.

Jump to

Keyboard shortcuts

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