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 }
HostOperator is an extensible and observable operator that hosts the plug-in, i.e. which the plug-in is extending
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
Click to show internal directories.
Click to hide internal directories.