batch

package
v1.45.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 20 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(client kubernetes.Interface,
	radixClient radixclient.Interface, handler common.Handler,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	radixInformerFactory informers.SharedInformerFactory,
	waitForChildrenToSync bool,
	recorder record.EventRecorder) *common.Controller

NewController creates a new controller that handles RadixBatches

Types

type Handler

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

func NewHandler

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

func (*Handler) Sync

func (h *Handler) Sync(namespace, name string, eventRecorder record.EventRecorder) error

type HandlerConfigOption

type HandlerConfigOption func(*Handler)

HandlerConfigOption defines a configuration function used for additional configuration of Handler

func WithSyncerFactory

func WithSyncerFactory(factory batch.SyncerFactory) HandlerConfigOption

WithSyncerFactory configures the SyncerFactory for the Handler

Jump to

Keyboard shortcuts

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