cinder

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

type BlockStore struct {
	// contains filtered or unexported fields
}

BlockStore is a plugin for containing state for the Cinder Block Storage

func NewBlockStore

func NewBlockStore(log logrus.FieldLogger) *BlockStore

NewBlockStore instantiates a Cinder Volume Snapshotter.

func (*BlockStore) CreateSnapshot

func (b *BlockStore) 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 (*BlockStore) CreateVolumeFromSnapshot

func (b *BlockStore) 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 Cinder.

func (*BlockStore) DeleteSnapshot

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

DeleteSnapshot deletes the specified volume snapshot.

func (*BlockStore) GetVolumeID

func (b *BlockStore) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)

GetVolumeID returns the specific identifier for the PersistentVolume.

func (*BlockStore) GetVolumeInfo

func (b *BlockStore) 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 Cinder.

func (*BlockStore) Init

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

Init prepares the Cinder 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 (*BlockStore) IsVolumeReady

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

IsVolumeReady Check if the volume is in one of the ready states.

func (*BlockStore) SetVolumeID

func (b *BlockStore) 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