Documentation ¶
Index ¶
- type NewPVCBackupItemAction
- type NewPVCDeleteItemAction
- type NewPVCRestoreItemAction
- type NewVolumeSnapshotter
- func (p *NewVolumeSnapshotter) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)
- func (p *NewVolumeSnapshotter) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)
- func (p *NewVolumeSnapshotter) DeleteSnapshot(snapshotID string) error
- func (p *NewVolumeSnapshotter) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
- func (p *NewVolumeSnapshotter) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)
- func (p *NewVolumeSnapshotter) Init(config map[string]string) error
- func (p *NewVolumeSnapshotter) IsVolumeReady(volumeID, volumeAZ string) (ready bool, err error)
- func (p *NewVolumeSnapshotter) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewPVCBackupItemAction ¶ added in v1.1.0
type NewPVCBackupItemAction struct {
Log logrus.FieldLogger
}
PVCBackupItemAction is a backup item action plugin for Velero.
func (*NewPVCBackupItemAction) AppliesTo ¶ added in v1.1.0
func (p *NewPVCBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the PVCBackupItemAction should be invoked to backup PVCs.
func (*NewPVCBackupItemAction) Execute ¶ added in v1.1.0
func (p *NewPVCBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute recognizes PVCs backed by volumes provisioned by vSphere CNS block volumes
type NewPVCDeleteItemAction ¶ added in v1.1.0
type NewPVCDeleteItemAction struct {
Log logrus.FieldLogger
}
PVCDeleteItemAction is a delete item action plugin for Velero.
func (*NewPVCDeleteItemAction) AppliesTo ¶ added in v1.1.0
func (p *NewPVCDeleteItemAction) AppliesTo() (velero.ResourceSelector, error)
func (*NewPVCDeleteItemAction) Execute ¶ added in v1.1.0
func (p *NewPVCDeleteItemAction) Execute(input *velero.DeleteItemActionExecuteInput) error
type NewPVCRestoreItemAction ¶ added in v1.1.0
type NewPVCRestoreItemAction struct {
Log logrus.FieldLogger
}
PVCBackupItemAction is a backup item action plugin for Velero.
func (*NewPVCRestoreItemAction) AppliesTo ¶ added in v1.1.0
func (p *NewPVCRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the PVCBackupItemAction should be invoked to backup PVCs.
func (*NewPVCRestoreItemAction) Execute ¶ added in v1.1.0
func (p *NewPVCRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
type NewVolumeSnapshotter ¶
type NewVolumeSnapshotter struct { logrus.FieldLogger // contains filtered or unexported fields }
NewVolumeSnapshotter is a plugin for containing state for the blockstore
func (*NewVolumeSnapshotter) CreateSnapshot ¶
func (p *NewVolumeSnapshotter) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)
CreateSnapshot creates a snapshot of the specified volume, and applies any provided set of tags to the snapshot.
func (*NewVolumeSnapshotter) CreateVolumeFromSnapshot ¶
func (p *NewVolumeSnapshotter) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)
CreateVolumeFromSnapshot creates a new volume in the specified availability zone, initialized from the provided snapshot, and with the specified type and IOPS (if using provisioned IOPS).
func (*NewVolumeSnapshotter) DeleteSnapshot ¶
func (p *NewVolumeSnapshotter) DeleteSnapshot(snapshotID string) error
DeleteSnapshot deletes the specified volume snapshot.
func (*NewVolumeSnapshotter) GetVolumeID ¶
func (p *NewVolumeSnapshotter) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
GetVolumeID returns the specific identifier for the PersistentVolume.
func (*NewVolumeSnapshotter) GetVolumeInfo ¶
func (p *NewVolumeSnapshotter) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)
GetVolumeInfo returns the type and IOPS (if using provisioned IOPS) for the specified volume in the given availability zone.
func (*NewVolumeSnapshotter) Init ¶
func (p *NewVolumeSnapshotter) Init(config map[string]string) error
Init prepares the VolumeSnapshotter for usage using the provided map of configuration key-value pairs. It returns an error if the VolumeSnapshotter cannot be initialized from the provided config. Note that after v0.10.0, this will happen multiple times.
func (*NewVolumeSnapshotter) IsVolumeReady ¶
func (p *NewVolumeSnapshotter) IsVolumeReady(volumeID, volumeAZ string) (ready bool, err error)
IsVolumeReady Check if the volume is ready.
func (*NewVolumeSnapshotter) SetVolumeID ¶
func (p *NewVolumeSnapshotter) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)
SetVolumeID sets the specific identifier for the PersistentVolume.