manila

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

func (b *FSStore) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)

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

func (b *FSStore) DeleteSnapshot(snapshotID string) error

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

func (b *FSStore) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)

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

func (b *FSStore) Init(config map[string]string) error

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

func (b *FSStore) IsVolumeReady(volumeID, volumeAZ string) (ready bool, err error)

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.

Jump to

Keyboard shortcuts

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