Back to godoc.org

Package vpcvolume

v0.0.0-...-9561690
Latest Go to latest

The latest major version is .

Published: Jul 25, 2020 | License: Apache-2.0 | Module: github.com/IBM/ibmcloud-volume-vpc-common

Index

type SnapshotManager

type SnapshotManager interface {
	// Create the snapshot on the volume
	CreateSnapshot(volumeID string, snapshotTemplate *models.Snapshot, ctxLogger *zap.Logger) (*models.Snapshot, error)

	// Delete the snapshot
	DeleteSnapshot(volumeID string, snapshotID string, ctxLogger *zap.Logger) error

	// Get the snapshot
	GetSnapshot(volumeID string, snapshotID string, ctxLogger *zap.Logger) (*models.Snapshot, error)

	// List all the  snapshots for a given volume
	ListSnapshots(volumeID string, ctxLogger *zap.Logger) (*models.SnapshotList, error)

	// Set tag for a snapshot
	SetSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error

	// Delete tag of a snapshot
	DeleteSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error

	// List all tags of a snapshot
	ListSnapshotTags(volumeID string, snapshotID string, ctxLogger *zap.Logger) (*[]string, error)

	// Check if the given tag exists on a snapshot
	CheckSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
}

SnapshotManager operations

func NewSnapshotManager

func NewSnapshotManager(client client.SessionClient) SnapshotManager

NewSnapshotManager ...

type SnapshotService

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

SnapshotService ...

type VolumeManager

type VolumeManager interface {
	// Create the volume with authorisation by passing required information in the volume object
	CreateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error)
	// UpdateVolume updates the volume with authorisation by passing required information in the volume object
	UpdateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) error

	// Delete the volume
	DeleteVolume(volumeID string, ctxLogger *zap.Logger) error

	// Get the volume by using ID
	GetVolume(volumeID string, ctxLogger *zap.Logger) (*models.Volume, error)

	// Get the volume by using volume name
	GetVolumeByName(volumeName string, ctxLogger *zap.Logger) (*models.Volume, error)

	// Others
	// Get volume lists by using snapshot tags
	ListVolumes(limit int, start string, filters *models.ListVolumeFilters, ctxLogger *zap.Logger) (*models.VolumeList, error)

	// Set tag for a volume
	SetVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error

	// Delete tag of a volume
	DeleteVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error

	// List all tags of a volume
	ListVolumeTags(volumeID string, ctxLogger *zap.Logger) (*[]string, error)

	// Check if the given tag exists on a volume
	CheckVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
}

VolumeManager operations

func New

func New(client client.SessionClient) VolumeManager

New ...

type VolumeService

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

VolumeService ...

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier