process

package
v1.10.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 8

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 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 Process

type Process interface {
	// contains filtered or unexported methods
}

type ProcessFactory

type ProcessFactory interface {
	// contains filtered or unexported methods
}

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

func NewRegistry(dir string, logger logrus.FieldLogger, logLevel logrus.Level) Registry

NewRegistry returns a new registry.

type Reinitializer

type Reinitializer interface {
	// reinitialize reinitializes a restartable plugin instance using the newly dispensed plugin.
	Reinitialize(dispensed interface{}) 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) (interface{}, error)
	Stop()
}

type RestartableProcessFactory

type RestartableProcessFactory interface {
	NewRestartableProcess(command string, logger logrus.FieldLogger, logLevel logrus.Level) (RestartableProcess, error)
}

func NewRestartableProcessFactory

func NewRestartableProcessFactory() RestartableProcessFactory

Jump to

Keyboard shortcuts

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