plugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

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.

type Snapshot

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

Snapshot keeps track of snapshots created by this plugin

type Volume

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

Volume keeps track of volumes created by this plugin

Jump to

Keyboard shortcuts

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