plugins

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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