Documentation ¶
Index ¶
- 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)
- type Snapshot
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.