plugins

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostOperator

type HostOperator interface {
	queueinformer.ObservableOperator
	queueinformer.ExtensibleOperator
	Informers() map[string]*Informers
}

HostOperator is an extensible and observable operator that hosts the plug-in, i.e. which the plug-in is extending

type Informers added in v0.26.0

Informers exposes informer caches that the host operator has already started, for re-use by plugins.

type OperatorConfig

type OperatorConfig interface {
	OperatorClient() operatorclient.ClientInterface
	ExternalClient() versioned.Interface
	ResyncPeriod() func() time.Duration
	WatchedNamespaces() []string
	Logger() *logrus.Logger
}

OperatorConfig gives access to required configuration from the host operator

type OperatorPlugInFactoryFunc

type OperatorPlugInFactoryFunc func(ctx context.Context, config OperatorConfig, hostOperator HostOperator) (OperatorPlugin, error)

OperatorPlugInFactoryFunc factory function that returns a new instance of a plug-in

type OperatorPlugin

type OperatorPlugin interface {
	// Shutdown is called once the host operator is done
	// to give the plug-in a change to clean up resources if necessary
	Shutdown() error
}

OperatorPlugin provides a simple interface that can be used to extend the olm operator's functionality

Jump to

Keyboard shortcuts

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