snapshot

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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

func (p *Plugin) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)

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

func (p *Plugin) DeleteSnapshot(snapshotID string) error

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

func (p *Plugin) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)

GetVolumeInfo Get information about the volume

func (*Plugin) Init

func (p *Plugin) Init(config map[string]string) error

Init the plugin

func (*Plugin) SetVolumeID

func (p *Plugin) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)

SetVolumeID Set the volume ID in the spec

Jump to

Keyboard shortcuts

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