backup

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PVCBackupItemAction

type PVCBackupItemAction struct {
	Log            logrus.FieldLogger
	Client         kubernetes.Interface
	SnapshotClient snapshotterClientSet.Interface
	CRClient       crclient.Client
}

PVCBackupItemAction is a backup item action plugin for Velero.

func (*PVCBackupItemAction) AppliesTo

AppliesTo returns information indicating that the PVCBackupItemAction should be invoked to backup PVCs.

func (*PVCBackupItemAction) Cancel added in v0.6.0

func (p *PVCBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error

func (*PVCBackupItemAction) Execute

Execute recognizes PVCs backed by volumes provisioned by CSI drivers with volumesnapshotting capability and creates snapshots of the underlying PVs by creating volumesnapshot CSI API objects that will trigger the CSI driver to perform the snapshot operation on the volume.

func (*PVCBackupItemAction) Name added in v0.6.0

func (p *PVCBackupItemAction) Name() string

func (*PVCBackupItemAction) Progress added in v0.6.0

func (p *PVCBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)

type VolumeSnapshotBackupItemAction

type VolumeSnapshotBackupItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshot objects using Velero

func (*VolumeSnapshotBackupItemAction) AppliesTo

AppliesTo returns information indicating that the VolumeSnapshotBackupItemAction should be invoked to backup volumesnapshots.

func (*VolumeSnapshotBackupItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error

func (*VolumeSnapshotBackupItemAction) Execute

Execute backs up a CSI volumesnapshot object and captures, as labels and annotations, information from its associated volumesnapshotcontents such as CSI driver name, storage snapshot handle and namespace and name of the snapshot delete secret, if any. It returns the volumesnapshotclass and the volumesnapshotcontents as additional items to be backed up.

func (*VolumeSnapshotBackupItemAction) Name added in v0.6.0

func (*VolumeSnapshotBackupItemAction) Progress added in v0.6.0

type VolumeSnapshotClassBackupItemAction

type VolumeSnapshotClassBackupItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotClassBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshotclass objects using Velero

func (*VolumeSnapshotClassBackupItemAction) AppliesTo

AppliesTo returns information indicating that the VolumeSnapshotClassBackupItemAction action should be invoked to backup volumesnapshotclass.

func (*VolumeSnapshotClassBackupItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotClassBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error

func (*VolumeSnapshotClassBackupItemAction) Execute

Execute backs up a VolumeSnapshotClass object and returns as additional items any snapshot lister secret that may be referenced in its annotations.

func (*VolumeSnapshotClassBackupItemAction) Name added in v0.6.0

func (*VolumeSnapshotClassBackupItemAction) Progress added in v0.6.0

type VolumeSnapshotContentBackupItemAction

type VolumeSnapshotContentBackupItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotContentBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshotcontent objects using Velero

func (*VolumeSnapshotContentBackupItemAction) AppliesTo

AppliesTo returns information indicating that the VolumeSnapshotContentBackupItemAction action should be invoked to backup volumesnapshotcontents.

func (*VolumeSnapshotContentBackupItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotContentBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error

func (*VolumeSnapshotContentBackupItemAction) Execute

Execute returns the unmodified volumesnapshotcontent object along with the snapshot deletion secret, if any, from its annotation as additional items to backup.

func (*VolumeSnapshotContentBackupItemAction) Name added in v0.6.0

func (*VolumeSnapshotContentBackupItemAction) Progress added in v0.6.0

Jump to

Keyboard shortcuts

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