operator

package
v0.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

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

func NewOperator

func NewOperator(cfg OperatorConfig) *Operator

NewOperator creates a new Operator

func (*Operator) GetLogger

func (o *Operator) GetLogger() logr.Logger

GetLogger returns the logger associated with this operator

func (*Operator) GetManager

func (o *Operator) GetManager() manager.Manager

GetManager returns the controller manager associated with this operator

func (*Operator) GetOperatorChannel

func (o *Operator) GetOperatorChannel() chan event.Event

GetOperatorChannel returns the channel on which the operator event dispatcher listens

func (*Operator) Start

func (o *Operator) Start(ctx context.Context) error

type OperatorConfig

type OperatorConfig struct {
	Manager        manager.Manager
	ControllerName string
	RenderCh       chan event.Event
	ConfigCh       chan event.Event
	UpdaterCh      chan event.Event
	Logger         logr.Logger
}

Jump to

Keyboard shortcuts

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