Documentation ¶
Index ¶
- Constants
- type PVCRestoreItemAction
- func (p *PVCRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *PVCRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
- func (p *PVCRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
- func (p *PVCRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
- func (p *PVCRestoreItemAction) Name() string
- func (p *PVCRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
- type VolumeSnapshotClassRestoreItemAction
- func (p *VolumeSnapshotClassRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
- func (p *VolumeSnapshotClassRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
- func (p *VolumeSnapshotClassRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
- func (p *VolumeSnapshotClassRestoreItemAction) Name() string
- func (p *VolumeSnapshotClassRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
- type VolumeSnapshotContentRestoreItemAction
- func (p *VolumeSnapshotContentRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
- func (p *VolumeSnapshotContentRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
- func (p *VolumeSnapshotContentRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
- func (p *VolumeSnapshotContentRestoreItemAction) Name() string
- func (p *VolumeSnapshotContentRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
- type VolumeSnapshotRestoreItemAction
- func (p *VolumeSnapshotRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
- func (p *VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
- func (p *VolumeSnapshotRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
- func (p *VolumeSnapshotRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
- func (p *VolumeSnapshotRestoreItemAction) Name() string
- func (p *VolumeSnapshotRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
Constants ¶
const ( AnnBindCompleted = "pv.kubernetes.io/bind-completed" AnnBoundByController = "pv.kubernetes.io/bound-by-controller" AnnStorageProvisioner = "volume.kubernetes.io/storage-provisioner" AnnBetaStorageProvisioner = "volume.beta.kubernetes.io/storage-provisioner" AnnSelectedNode = "volume.kubernetes.io/selected-node" )
const (
GenerateNameRandomLength = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PVCRestoreItemAction ¶
type PVCRestoreItemAction struct { Log logrus.FieldLogger Client kubernetes.Interface SnapshotClient snapshotterClientSet.Interface CRClient crclient.Client }
PVCRestoreItemAction is a restore item action plugin for Velero
func (*PVCRestoreItemAction) AppliesTo ¶
func (p *PVCRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the PVCRestoreItemAction should be run while restoring PVCs.
func (*PVCRestoreItemAction) AreAdditionalItemsReady ¶ added in v0.6.0
func (p *PVCRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
func (*PVCRestoreItemAction) Cancel ¶ added in v0.6.0
func (p *PVCRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
func (*PVCRestoreItemAction) Execute ¶
func (p *PVCRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
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.
func (*PVCRestoreItemAction) Name ¶ added in v0.6.0
func (p *PVCRestoreItemAction) Name() string
func (*PVCRestoreItemAction) Progress ¶ added in v0.6.0
func (p *PVCRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
type VolumeSnapshotClassRestoreItemAction ¶
type VolumeSnapshotClassRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotClassRestoreItemAction is a Velero restore item action plugin for VolumeSnapshotClass
func (*VolumeSnapshotClassRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotClassRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that VolumeSnapshotClassRestoreItemAction should be invoked while restoring volumesnapshotclass.snapshot.storage.k8s.io resrouces.
func (*VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady ¶ added in v0.6.0
func (p *VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
func (*VolumeSnapshotClassRestoreItemAction) Cancel ¶ added in v0.6.0
func (p *VolumeSnapshotClassRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
func (*VolumeSnapshotClassRestoreItemAction) Execute ¶
func (p *VolumeSnapshotClassRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute restores volumesnapshotclass objects returning any snapshotlister secret as additional items to restore
func (*VolumeSnapshotClassRestoreItemAction) Name ¶ added in v0.6.0
func (p *VolumeSnapshotClassRestoreItemAction) Name() string
func (*VolumeSnapshotClassRestoreItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotClassRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
type VolumeSnapshotContentRestoreItemAction ¶
type VolumeSnapshotContentRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotContentRestoreItemAction is a restore item action plugin for Velero
func (*VolumeSnapshotContentRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotContentRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating VolumeSnapshotContentRestoreItemAction action should be invoked while restoring volumesnapshotcontent.snapshot.storage.k8s.io resources
func (*VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady ¶ added in v0.6.0
func (p *VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
func (*VolumeSnapshotContentRestoreItemAction) Cancel ¶ added in v0.6.0
func (p *VolumeSnapshotContentRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
func (*VolumeSnapshotContentRestoreItemAction) Execute ¶
func (p *VolumeSnapshotContentRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute restores a volumesnapshotcontent object without modification returning the snapshot lister secret, if any, as additional items to restore.
func (*VolumeSnapshotContentRestoreItemAction) Name ¶ added in v0.6.0
func (p *VolumeSnapshotContentRestoreItemAction) Name() string
func (*VolumeSnapshotContentRestoreItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotContentRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)
type VolumeSnapshotRestoreItemAction ¶
type VolumeSnapshotRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotRestoreItemAction is a Velero restore item action plugin for VolumeSnapshots
func (*VolumeSnapshotRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that VolumeSnapshotRestoreItemAction should be invoked while restoring volumesnapshots.snapshot.storage.k8s.io resrouces.
func (*VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady ¶ added in v0.6.0
func (p *VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)
func (*VolumeSnapshotRestoreItemAction) Cancel ¶ added in v0.6.0
func (p *VolumeSnapshotRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error
func (*VolumeSnapshotRestoreItemAction) Execute ¶
func (p *VolumeSnapshotRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
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.
func (*VolumeSnapshotRestoreItemAction) Name ¶ added in v0.6.0
func (p *VolumeSnapshotRestoreItemAction) Name() string
func (*VolumeSnapshotRestoreItemAction) Progress ¶ added in v0.6.0
func (p *VolumeSnapshotRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)