Documentation
¶
Index ¶
- type AttachDiskArgs
- type AttachDiskResponse
- type CreateDiskArgs
- type CreateDiskResponse
- type DeleteDiskArgs
- type DeleteDiskResponse
- type DescribeClusterNodePvInfoArgs
- type DescribeClusterNodePvInfoResponse
- type DescribeTaskStatusResponse
- type DetachDiskArgs
- type DetachDiskResponse
- type DiskInfo
- type FindDeviceNameByVolumeIDArgs
- type FindDeviceNameByVolumeIDResponse
- type FindDiskByVolumeIDArgs
- type FindDiskByVolumeIDResponse
- type Response
- type TopologyInfo
- type UpdateBlockFormatFlagArgs
- type UpdateBlockFormatFlagResponse
Constants ¶
This section is empty.
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:"block_id"`
} `json:"Data"`
TaskID string `json:"TaskId"`
}
func CreateDisk ¶
func CreateDisk(args *CreateDiskArgs) (*CreateDiskResponse, error)
type DeleteDiskArgs ¶
type DeleteDiskArgs struct {
VolumeID string `json:"block_id"`
}
type DeleteDiskResponse ¶
func DeleteDisk ¶
func DeleteDisk(args *DeleteDiskArgs) (*DeleteDiskResponse, error)
type DescribeClusterNodePvInfoArgs ¶
type DescribeClusterNodePvInfoArgs struct {
ClusterID string `json:"cluster_id"`
}
type DescribeClusterNodePvInfoResponse ¶
type DescribeClusterNodePvInfoResponse struct {
Response
Data struct {
DiskTopology []TopologyInfo `json:"disk_topology"`
NodeTopology []TopologyInfo `json:"node_topology"`
} `json:"Data"`
}
func DescribeClusterNodePvInfo ¶
func DescribeClusterNodePvInfo(args *DescribeClusterNodePvInfoArgs) (*DescribeClusterNodePvInfoResponse, error)
type DescribeTaskStatusResponse ¶
type DescribeTaskStatusResponse struct {
Response
Data struct {
Status string `json:"status"`
} `json:"Data"`
}
func DescribeTaskStatus ¶
func DescribeTaskStatus(TaskID string) (*DescribeTaskStatusResponse, error)
type DetachDiskArgs ¶
type DetachDiskArgs struct {
VolumeID string `json:"block_id"`
}
type DetachDiskResponse ¶
func DetachDisk ¶
func DetachDisk(args *DetachDiskArgs) (*DetachDiskResponse, error)
type FindDeviceNameByVolumeIDArgs ¶
type FindDeviceNameByVolumeIDArgs struct {
VolumeID string `json:"disk_id"`
}
type FindDeviceNameByVolumeIDResponse ¶
type FindDeviceNameByVolumeIDResponse struct {
Response
Data struct {
DeviceName string `json:"device_name"`
} `json:"Data"`
}
func FindDeviceNameByVolumeID ¶
func FindDeviceNameByVolumeID(args *FindDeviceNameByVolumeIDArgs) (*FindDeviceNameByVolumeIDResponse, error)
type FindDiskByVolumeIDArgs ¶
type FindDiskByVolumeIDArgs struct {
VolumeID string `json:"block_id"`
}
type FindDiskByVolumeIDResponse ¶
type FindDiskByVolumeIDResponse struct {
Response
Data struct {
DiskSlice []DiskInfo `json:"block_info"`
} `json:"data"`
}
func FindDiskByVolumeID ¶
func FindDiskByVolumeID(args *FindDiskByVolumeIDArgs) (*FindDiskByVolumeIDResponse, error)
type TopologyInfo ¶
type UpdateBlockFormatFlagResponse ¶
type UpdateBlockFormatFlagResponse struct {
Response
}
func UpdateBlockFormatFlag ¶
func UpdateBlockFormatFlag(args *UpdateBlockFormatFlagArgs) (*UpdateBlockFormatFlagResponse, error)
Click to show internal directories.
Click to hide internal directories.