interfaces

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDsmService

type IDsmService interface {
	AddDsm(client common.ClientInfo) error
	RemoveAllDsms()
	GetDsm(ip string) (*webapi.DSM, error)
	GetDsmsCount() int
	ListDsmVolumes(ip string) ([]webapi.VolInfo, error)
	CreateVolume(spec *models.CreateK8sVolumeSpec) (*models.K8sVolumeRespSpec, error)
	DeleteVolume(volId string) error
	ListVolumes() []*models.K8sVolumeRespSpec
	GetVolume(volId string) *models.K8sVolumeRespSpec
	ExpandVolume(volId string, newSize int64) (*models.K8sVolumeRespSpec, error)
	CreateSnapshot(spec *models.CreateK8sVolumeSnapshotSpec) (*models.K8sSnapshotRespSpec, error)
	DeleteSnapshot(snapshotUuid string) error
	ListAllSnapshots() []*models.K8sSnapshotRespSpec
	ListSnapshots(volId string) []*models.K8sSnapshotRespSpec
	GetVolumeByName(volName string) *models.K8sVolumeRespSpec
	GetSnapshotByName(snapshotName string) *models.K8sSnapshotRespSpec
}

Jump to

Keyboard shortcuts

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