operator

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorScheme

func GetOperatorScheme() *runtime.Scheme

GetOperatorScheme returns a scheme with types supported by the operator.

Types

type Client

type Client struct {
	client.Client
	meta.RESTMapper
}

Clients holds the API clients required by Operator.

type Operator

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

Operator is the scaffolding for the sesame operator. It sets up dependencies and defines the topology of the operator and its managed components, wiring them together. Operator knows what specific resource types should produce operator events.

func New

func New(cliCfg *rest.Config, opCfg *config.Config) (*Operator, error)

New creates a new operator from cliCfg and opCfg.

func (*Operator) Start

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

Start creates Gateway API controllers (if configured) and starts the operator synchronously until a message is received from ctx.

Jump to

Keyboard shortcuts

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