Documentation
¶
Index ¶
- type FSStore
- func (b *FSStore) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)
- func (b *FSStore) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)
- func (b *FSStore) DeleteSnapshot(snapshotID string) error
- func (b *FSStore) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
- func (b *FSStore) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)
- func (b *FSStore) Init(config map[string]string) error
- func (b *FSStore) IsVolumeReady(volumeID, volumeAZ string) (ready bool, err error)
- func (b *FSStore) 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 FSStore ¶
type FSStore struct {
// contains filtered or unexported fields
}
FSStore is a plugin for containing state for the Manila Shared Filesystem
func NewFSStore ¶
func NewFSStore(log logrus.FieldLogger) *FSStore
NewFSStore instantiates a Manila Shared Filesystem Snapshotter.
func (*FSStore) CreateSnapshot ¶
CreateSnapshot creates a snapshot of the specified volume, and does NOT apply any provided set of tags to the snapshot.
func (*FSStore) CreateVolumeFromSnapshot ¶
func (b *FSStore) 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. IOPS is ignored as it is not used in Manila.
func (*FSStore) DeleteSnapshot ¶
DeleteSnapshot deletes the specified volume snapshot.
func (*FSStore) GetVolumeID ¶
func (b *FSStore) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)
GetVolumeID returns the specific identifier for the PersistentVolume.
func (*FSStore) GetVolumeInfo ¶
GetVolumeInfo returns type of the specified volume in the given availability zone. IOPS is not used as it is not supported by Manila.
func (*FSStore) Init ¶
Init prepares the Manila 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.
func (*FSStore) IsVolumeReady ¶
IsVolumeReady Check if the volume is in one of the available statuses.
func (*FSStore) SetVolumeID ¶
func (b *FSStore) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)
SetVolumeID sets the specific identifier for the PersistentVolume.