storage

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerOperator

type ControllerOperator interface {
	CreateVolume(volumeName string, requestSize int64, parameters map[string]string) (volumeID string, err error)
	CreateVolumeFromSnapshot(volumeName, snapshotID string, parameters map[string]string) (volumeID string, err error)
	CreateVolumeByClone(volumeName, sourceVolumeID string, parameters map[string]string) (volumeID string, err error)
	FindVolumeByName(volumeName string, parameters map[string]string) (*csi.Volume, error)

	FindVolume(volumeID string) (*csi.Volume, error)
	DeleteVolume(volumeID string) error
	ResizeVolume(volumeID string, requestSize int64) error

	CreateSnapshot(volumeID, snapshotName string) error
	DeleteSnapshot(snapshotID string) error
	FindSnapshot(snapshotID string) (*csi.Snapshot, error)
	FindSnapshotByName(volumeID, snapshotName string) (*csi.Snapshot, error)
}

type NodeOperator

type NodeOperator interface {
	NodeAttachVolume(volumeID string) error
	NodeDetachVolume(volumeID string) error
	NodeGetDevice(volumeID string) (device string, err error)
}

type Provider

type Provider interface {
	ControllerOperator
	NodeOperator
}

Directories

Path Synopsis
api
qbd

Jump to

Keyboard shortcuts

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