Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecLifecyclePreStart ¶
ExecLifecyclePreStart execute PreStart step on handler if interface is implemented
Types ¶
type Handler ¶
type Handler interface { Name() string Handle(item operation.Item) error CanBeHandled(item operation.Item) bool }
Handler define interface for operator actions
type LifecyclePreStart ¶
LifecyclePreStart interface executed before operator starts
type Operator ¶
type Operator interface { // Define prometheus collector interface prometheus.Collector Name() string Namespace() string Image() string Start(threadiness int, stopCh <-chan struct{}) error RegisterInformer(informer cache.SharedIndexInformer, group, version, kind string) error RegisterStarter(starter Starter) error RegisterHandler(handler Handler) error EnqueueItem(item operation.Item) ProcessItem(item operation.Item) error }
Operator interface for operator core functionality
func NewOperator ¶
NewOperator creates new operator
Source Files
¶
Click to show internal directories.
Click to hide internal directories.