disk

package
v2.3.3+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachDiskArgs

type AttachDiskArgs struct {
	VolumeID string `json:"block_id"`
	NodeID   string `json:"node_id"`
}

type AttachDiskResponse

type AttachDiskResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

func AttachDisk

func AttachDisk(args *AttachDiskArgs) (*AttachDiskResponse, error)

type CreateDiskArgs

type CreateDiskArgs struct {
	Name     string `json:"name"`
	RegionID string `json:"site_id"`
	DiskType string `json:"disk_type"`
	Size     int    `json:"size"`
	Iops     int    `json:"iops"`
	ZoneID   string `json:"vc_cluster_name"`
}

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

type DeleteDiskResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

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"`
}

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

type DetachDiskResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

func DetachDisk

func DetachDisk(args *DetachDiskArgs) (*DetachDiskResponse, error)

type DiskInfo

type DiskInfo struct {
	NodeID   string `json:"node_id"`
	Status   string `json:"status"`
	Uuid     string `json:"disk_uuid"`
	IsFormat int    `json:"is_format"`
}

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"`
}

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"`
}

type Response

type Response struct {
	Code     string `json:"Code"`
	Message  string `json:"Message"`
	CodeDesc string `json:"codeDesc,omitempty"`
}

type TopologyInfo

type TopologyInfo struct {
	ID     string `json:"id"`
	Region string `json:"site_id"`
	Zone   string `json:"zone_id"`
}

type UpdateBlockFormatFlagArgs

type UpdateBlockFormatFlagArgs struct {
	BlockID  string `json:"block_id"`
	IsFormat int    `json:"is_format"`
}

type UpdateBlockFormatFlagResponse

type UpdateBlockFormatFlagResponse struct {
	Response
}

Jump to

Keyboard shortcuts

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