Documentation
¶
Index ¶
- Constants
- type AttachDiskArgs
- type AttachDiskResponse
- type CreateDiskArgs
- type CreateDiskResponse
- type DeleteDiskArgs
- type DeleteDiskResponse
- type DescribeTaskStatusResponse
- type DetachDiskArgs
- type DetachDiskResponse
- type DiskCountArgs
- type DiskCountResponse
- type DiskInfoArgs
- type DiskInfoResponse
- type Response
Constants ¶
View Source
const ( ActionCreateDisk = "CsiCreateDisk" ActionDeleteDisk = "CsiDeleteDisk" ActionAttachDisk = "CsiAttachDisk" ActionDetachDisk = "CsiDetachDisk" ActionDiskStatus = "CsiDiskInfo" ActionDiskCount = "CsiDiskCount" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachDiskArgs ¶
type AttachDiskResponse ¶
func AttachDisk ¶
func AttachDisk(args *AttachDiskArgs) (*AttachDiskResponse, error)
type CreateDiskArgs ¶
type CreateDiskResponse ¶
type CreateDiskResponse struct {
Response
Data struct {
VolumeID string `json:"uuid"`
} `json:"Data"`
TaskID string `json:"TaskId"`
}
func CreateDisk ¶
func CreateDisk(args *CreateDiskArgs) (*CreateDiskResponse, error)
type DeleteDiskArgs ¶
type DeleteDiskArgs struct {
VolumeID string `json:"UUID"`
}
type DeleteDiskResponse ¶
func DeleteDisk ¶
func DeleteDisk(args *DeleteDiskArgs) (*DeleteDiskResponse, error)
type DetachDiskArgs ¶
type DetachDiskResponse ¶
func DetachDisk ¶
func DetachDisk(args *DetachDiskArgs) (*DetachDiskResponse, error)
type DiskCountArgs ¶
type DiskCountArgs struct {
NodeID string `json:"VM_ID"`
}
type DiskCountResponse ¶
type DiskCountResponse struct {
Response
Data struct {
DiskCount int `json:"disk_count"`
} `json:"Data"`
}
func GetDiskCount ¶
func GetDiskCount(args *DiskCountArgs) (*DiskCountResponse, error)
type DiskInfoArgs ¶
type DiskInfoArgs struct {
VolumeID string `json:"UUID"`
}
type DiskInfoResponse ¶
type DiskInfoResponse struct {
Response
Data struct {
NodeID string `json:"vm_id"`
Status string `json:"status"`
TaskStatus string `json:"res_status"`
VolumeId string `json:"disk_id"`
Mounted int `json:"is_load"`
IsValid int `json:"is_valid"`
} `json:"data"`
}
func GetDiskInfo ¶
func GetDiskInfo(args *DiskInfoArgs) (*DiskInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.