Documentation ¶
Index ¶
- func DsmLunSnapshotToK8sSnapshot(dsmIp string, info webapi.SnapshotInfo, lunInfo webapi.LunInfo) *models.K8sSnapshotRespSpec
- func DsmLunToK8sVolume(dsmIp string, info webapi.LunInfo, targetInfo webapi.TargetInfo) *models.K8sVolumeRespSpec
- func DsmShareSnapshotToK8sSnapshot(dsmIp string, info webapi.ShareSnapshotInfo, shareInfo webapi.ShareInfo) *models.K8sSnapshotRespSpec
- func DsmShareToK8sVolume(dsmIp string, info webapi.ShareInfo, protocol string) *models.K8sVolumeRespSpec
- func GMTToUnixSecond(timeStr string) int64
- type DsmService
- func (service *DsmService) AddDsm(client common.ClientInfo) error
- func (service *DsmService) CreateSnapshot(spec *models.CreateK8sVolumeSnapshotSpec) (*models.K8sSnapshotRespSpec, error)
- func (service *DsmService) CreateVolume(spec *models.CreateK8sVolumeSpec) (*models.K8sVolumeRespSpec, error)
- func (service *DsmService) DeleteSnapshot(snapshotUuid string) error
- func (service *DsmService) DeleteVolume(volId string) error
- func (service *DsmService) ExpandVolume(volId string, newSize int64) (*models.K8sVolumeRespSpec, error)
- func (service *DsmService) GetDsm(ip string) (*webapi.DSM, error)
- func (service *DsmService) GetDsmsCount() int
- func (service *DsmService) GetSnapshotByName(snapshotName string) *models.K8sSnapshotRespSpec
- func (service *DsmService) GetSnapshotByUuid(snapshotUuid string) *models.K8sSnapshotRespSpec
- func (service *DsmService) GetVolume(volId string) *models.K8sVolumeRespSpec
- func (service *DsmService) GetVolumeByName(volName string) *models.K8sVolumeRespSpec
- func (service *DsmService) ListAllSnapshots() []*models.K8sSnapshotRespSpec
- func (service *DsmService) ListDsmVolumes(ip string) ([]webapi.VolInfo, error)
- func (service *DsmService) ListSnapshots(volId string) []*models.K8sSnapshotRespSpec
- func (service *DsmService) ListVolumes() (infos []*models.K8sVolumeRespSpec)
- func (service *DsmService) RemoveAllDsms()
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 GMTToUnixSecond ¶ added in v1.1.0
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) 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()
Click to show internal directories.
Click to hide internal directories.