volumes

package
v0.0.0-...-8461d3d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupPlugin

type BackupPlugin struct {
	// contains filtered or unexported fields
}

func NewBackupPlugin

func NewBackupPlugin(log logrus.FieldLogger) *BackupPlugin

NewBackupPlugin instantiates BackupPlugin.

func (*BackupPlugin) AppliesTo

func (p *BackupPlugin) AppliesTo() (velero.ResourceSelector, error)

AppliesTo returns information about which resources this action should be invoked for. The IncludedResources and ExcludedResources slices can include both resources and resources with group names. These work: "ingresses", "ingresses.extensions". A BackupPlugin's Execute function will only be invoked on items that match the returned selector. A zero-valued ResourceSelector matches all resources.

func (*BackupPlugin) Execute

Execute allows the ItemAction to perform arbitrary logic with the item being backed up, in this case, setting a custom annotation on the item being backed up.

func (*BackupPlugin) Name

func (p *BackupPlugin) Name() string

Name is required to implement the interface, but the Velero pod does not delegate this method -- it's used to tell velero what name it was registered under. The plugin implementation must define it, but it will never actually be called.

type RestorePlugin

type RestorePlugin struct {
	// contains filtered or unexported fields
}

func NewRestorePlugin

func NewRestorePlugin(log logrus.FieldLogger) *RestorePlugin

func (*RestorePlugin) AppliesTo

func (p *RestorePlugin) AppliesTo() (velero.ResourceSelector, error)

AppliesTo returns information about which resources this action should be invoked for. The IncludedResources and ExcludedResources slices can include both resources and resources with group names. These work: "ingresses", "ingresses.extensions". A RestoreItemAction's Execute function will only be invoked on items that match the returned selector. A zero-valued ResourceSelector matches all resources.

func (*RestorePlugin) Execute

Execute sets a custom annotation on the item being restored.

func (*RestorePlugin) Name

func (p *RestorePlugin) Name() string

Jump to

Keyboard shortcuts

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