plugin

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

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

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

func (*NewPVCBackupItemAction) Execute added in v1.1.0

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 (*NewPVCDeleteItemAction) Execute added in v1.1.0

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

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

func (*NewPVCRestoreItemAction) Execute added in v1.1.0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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