Documentation
¶
Overview ¶
Package clientmgmt contains the plugin client for Velero.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶ added in v1.12.0
type Factory interface {
// contains filtered or unexported methods
}
type KindAndName ¶
type KindAndName struct {
Kind common.PluginKind
Name string
}
KindAndName is a convenience struct that combines a PluginKind and a name.
type PluginNotFoundError ¶
type PluginNotFoundError struct {
// contains filtered or unexported fields
}
pluginNotFoundError indicates a plugin could not be located for kind and name.
func (*PluginNotFoundError) Error ¶
func (e *PluginNotFoundError) Error() string
type Registry ¶
type Registry interface {
// DiscoverPlugins discovers all available plugins.
DiscoverPlugins() error
// List returns all PluginIdentifiers for kind.
List(kind common.PluginKind) []framework.PluginIdentifier
// Get returns the PluginIdentifier for kind and name.
Get(kind common.PluginKind, name string) (framework.PluginIdentifier, error)
}
Registry manages information about available plugins.
func NewRegistry ¶
NewRegistry returns a new registry.
type Reinitializer ¶
type Reinitializer interface {
// reinitialize reinitializes a restartable plugin instance using the newly dispensed plugin.
Reinitialize(dispensed any) error
}
reinitializer is capable of reinitializing a restartable plugin instance using the newly dispensed plugin.
type RestartableProcess ¶
type RestartableProcess interface {
AddReinitializer(key KindAndName, r Reinitializer)
Reset() error
ResetIfNeeded() error
GetByKindAndName(key KindAndName) (any, error)
Stop()
}
type RestartableProcessFactory ¶
type RestartableProcessFactory interface {
NewRestartableProcess(command string, logger logrus.FieldLogger, logLevel logrus.Level) (RestartableProcess, error)
}
func NewRestartableProcessFactory ¶
func NewRestartableProcessFactory() RestartableProcessFactory
Click to show internal directories.
Click to hide internal directories.