Documentation ¶
Index ¶
- type PVCBackupItemAction
- func (p *PVCBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *PVCBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error
- func (p *PVCBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, ...)
- func (p *PVCBackupItemAction) Name() string
- func (p *PVCBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
- type VolumeSnapshotBackupItemAction
- func (p *VolumeSnapshotBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error
- func (p *VolumeSnapshotBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, ...)
- func (p *VolumeSnapshotBackupItemAction) Name() string
- func (p *VolumeSnapshotBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
- type VolumeSnapshotClassBackupItemAction
- func (p *VolumeSnapshotClassBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotClassBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error
- func (p *VolumeSnapshotClassBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, ...)
- func (p *VolumeSnapshotClassBackupItemAction) Name() string
- func (p *VolumeSnapshotClassBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
- type VolumeSnapshotContentBackupItemAction
- func (p *VolumeSnapshotContentBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotContentBackupItemAction) Cancel(operationID string, backup *velerov1api.Backup) error
- func (p *VolumeSnapshotContentBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, ...)
- func (p *VolumeSnapshotContentBackupItemAction) Name() string
- func (p *VolumeSnapshotContentBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
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 ¶
func (p *PVCBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
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 ¶
func (p *PVCBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, []velero.ResourceIdentifier, error)
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 ¶
func (p *VolumeSnapshotBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
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 ¶
func (p *VolumeSnapshotBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, []velero.ResourceIdentifier, error)
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 (p *VolumeSnapshotBackupItemAction) Name() string
func (*VolumeSnapshotBackupItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
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 ¶
func (p *VolumeSnapshotClassBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
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 ¶
func (p *VolumeSnapshotClassBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, []velero.ResourceIdentifier, error)
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 (p *VolumeSnapshotClassBackupItemAction) Name() string
func (*VolumeSnapshotClassBackupItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotClassBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)
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 ¶
func (p *VolumeSnapshotContentBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
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 ¶
func (p *VolumeSnapshotContentBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, string, []velero.ResourceIdentifier, error)
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 (p *VolumeSnapshotContentBackupItemAction) Name() string
func (*VolumeSnapshotContentBackupItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotContentBackupItemAction) Progress(operationID string, backup *velerov1api.Backup) (velero.OperationProgress, error)