restore

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PVCRestoreItemAction

type PVCRestoreItemAction struct {
	Log logrus.FieldLogger
}

PVCRestoreItemAction is a restore item action plugin for Velero

func (*PVCRestoreItemAction) AppliesTo

AppliesTo returns information indicating that the PVCRestoreItemAction should be run while restoring PVCs.

func (*PVCRestoreItemAction) Execute

Execute modifies the PVC's spec to use the volumesnapshot object as the data source ensuring that the newly provisioned volume can be pre-populated with data from the volumesnapshot.

type VolumeSnapshotClassRestoreItemAction

type VolumeSnapshotClassRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotClassRestoreItemAction is a Velero restore item action plugin for VolumeSnapshotClass

func (*VolumeSnapshotClassRestoreItemAction) AppliesTo

AppliesTo returns information indicating that VolumeSnapshotClassRestoreItemAction should be invoked while restoring volumesnapshotclass.snapshot.storage.k8s.io resrouces.

func (*VolumeSnapshotClassRestoreItemAction) Execute

Execute restores volumesnapshotclass objects returning any snapshotlister secret as additional items to restore

type VolumeSnapshotContentRestoreItemAction

type VolumeSnapshotContentRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotContentRestoreItemAction is a restore item action plugin for Velero

func (*VolumeSnapshotContentRestoreItemAction) AppliesTo

AppliesTo returns information indicating VolumeSnapshotContentRestoreItemAction action should be invoked while restoring volumesnapshotcontent.snapshot.storage.k8s.io resources

func (*VolumeSnapshotContentRestoreItemAction) Execute

Execute restores a volumesnapshotcontent object without modification returning the snapshot lister secret, if any, as additional items to restore.

type VolumeSnapshotRestoreItemAction

type VolumeSnapshotRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotRestoreItemAction is a Velero restore item action plugin for VolumeSnapshots

func (*VolumeSnapshotRestoreItemAction) AppliesTo

AppliesTo returns information indicating that VolumeSnapshotRestoreItemAction should be invoked while restoring volumesnapshots.snapshot.storage.k8s.io resrouces.

func (*VolumeSnapshotRestoreItemAction) Execute

Execute uses the data such as CSI driver name, storage snapshot handle, snapshot deletion secret (if any) from the annotations to recreate a volumesnapshotcontent object and statically bind the Volumesnapshot object being restored.

Jump to

Keyboard shortcuts

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