plugin

package
v0.0.0-...-a7943b8 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestorePlugin

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

RestorePlugin is a restore item action plugin for Velero

func NewRestorePlugin

func NewRestorePlugin(log logrus.FieldLogger) *RestorePlugin

NewRestorePlugin instantiates a 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.g

func (*RestorePlugin) Execute

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

Jump to

Keyboard shortcuts

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