service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DsmLunSnapshotToK8sSnapshot added in v1.1.0

func DsmLunSnapshotToK8sSnapshot(dsmIp string, info webapi.SnapshotInfo, lunInfo webapi.LunInfo) *models.K8sSnapshotRespSpec

func DsmLunToK8sVolume added in v1.1.0

func DsmLunToK8sVolume(dsmIp string, info webapi.LunInfo, targetInfo webapi.TargetInfo) *models.K8sVolumeRespSpec

func DsmShareSnapshotToK8sSnapshot added in v1.1.0

func DsmShareSnapshotToK8sSnapshot(dsmIp string, info webapi.ShareSnapshotInfo, shareInfo webapi.ShareInfo) *models.K8sSnapshotRespSpec

func DsmShareToK8sVolume added in v1.1.0

func DsmShareToK8sVolume(dsmIp string, info webapi.ShareInfo, protocol string) *models.K8sVolumeRespSpec

func GMTToUnixSecond added in v1.1.0

func GMTToUnixSecond(timeStr string) int64

Types

type DsmService

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

func NewDsmService

func NewDsmService() *DsmService

func (*DsmService) AddDsm

func (service *DsmService) AddDsm(client common.ClientInfo) error

func (*DsmService) CreateSnapshot

func (service *DsmService) CreateSnapshot(spec *models.CreateK8sVolumeSnapshotSpec) (*models.K8sSnapshotRespSpec, error)

func (*DsmService) CreateVolume

func (service *DsmService) CreateVolume(spec *models.CreateK8sVolumeSpec) (*models.K8sVolumeRespSpec, error)

func (*DsmService) DeleteSnapshot

func (service *DsmService) DeleteSnapshot(snapshotUuid string) error

func (*DsmService) DeleteVolume

func (service *DsmService) DeleteVolume(volId string) error

func (*DsmService) ExpandVolume added in v1.1.0

func (service *DsmService) ExpandVolume(volId string, newSize int64) (*models.K8sVolumeRespSpec, error)

func (*DsmService) GetDsm

func (service *DsmService) GetDsm(ip string) (*webapi.DSM, error)

func (*DsmService) GetDsmsCount

func (service *DsmService) GetDsmsCount() int

func (*DsmService) GetSnapshotByName added in v1.1.0

func (service *DsmService) GetSnapshotByName(snapshotName string) *models.K8sSnapshotRespSpec

func (*DsmService) GetSnapshotByUuid added in v1.1.0

func (service *DsmService) GetSnapshotByUuid(snapshotUuid string) *models.K8sSnapshotRespSpec

func (*DsmService) GetVolume

func (service *DsmService) GetVolume(volId string) *models.K8sVolumeRespSpec

func (*DsmService) GetVolumeByName added in v1.1.0

func (service *DsmService) GetVolumeByName(volName string) *models.K8sVolumeRespSpec

func (*DsmService) ListAllSnapshots

func (service *DsmService) ListAllSnapshots() []*models.K8sSnapshotRespSpec

func (*DsmService) ListDsmVolumes

func (service *DsmService) ListDsmVolumes(ip string) ([]webapi.VolInfo, error)

func (*DsmService) ListSnapshots

func (service *DsmService) ListSnapshots(volId string) []*models.K8sSnapshotRespSpec

func (*DsmService) ListVolumes

func (service *DsmService) ListVolumes() (infos []*models.K8sVolumeRespSpec)

func (*DsmService) RemoveAllDsms

func (service *DsmService) RemoveAllDsms()

Jump to

Keyboard shortcuts

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