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 ¶
func (p *RestorePlugin) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
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.