Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)
- func (p *Plugin) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)
- func (p *Plugin) DeleteSnapshot(snapshotID string) error
- func (p *Plugin) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
- func (p *Plugin) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)
- func (p *Plugin) Init(config map[string]string) error
- func (p *Plugin) 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 Plugin ¶
type Plugin struct { Log logrus.FieldLogger // contains filtered or unexported fields }
Plugin for managing Portworx snapshots
func (*Plugin) CreateSnapshot ¶
CreateSnapshot Create a snapshot
func (*Plugin) CreateVolumeFromSnapshot ¶
func (p *Plugin) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)
CreateVolumeFromSnapshot Create a volume form given snapshot
func (*Plugin) DeleteSnapshot ¶
DeleteSnapshot Delete a snapshot
func (*Plugin) GetVolumeID ¶
func (p *Plugin) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
GetVolumeID Get the volume ID from the spec
func (*Plugin) GetVolumeInfo ¶
GetVolumeInfo Get information about the volume
func (*Plugin) SetVolumeID ¶
func (p *Plugin) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)
SetVolumeID Set the volume ID in the spec
Click to show internal directories.
Click to hide internal directories.