Documentation
¶
Index ¶
- func Delete(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) error
- func GetOwnerVm(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (irs.VMInfo, error)
- func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]DiskInfo, error)
- type DiskInfo
- func Create(restClient *client.RestClient, requestOpts *client.RequestOpts) (*DiskInfo, error)
- func Get(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (*DiskInfo, error)
- func Update(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (*DiskInfo, error)
- type DiskReqInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) error
func GetOwnerVm ¶
func GetOwnerVm(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (irs.VMInfo, error)
func List ¶
func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]DiskInfo, error)
Types ¶
type DiskInfo ¶
type DiskInfo struct {
ID string
Name string `updateAble:"Name"`
State string
Size int `updateAble:"Size"`
CreatedAt string
// miscellaneous properties
TemplateId string `responseType:"KeyValue"`
ClusterId string `responseType:"KeyValue"`
PoolId string `responseType:"KeyValue"`
Bootable string `responseType:"KeyValue"`
Iops int `responseType:"KeyValue"`
Throughput int `responseType:"KeyValue"`
Creator string `responseType:"KeyValue"`
Description string `responseType:"KeyValue" updateAble:"Description"`
Dev string `responseType:"KeyValue"`
}
func Create ¶
func Create(restClient *client.RestClient, requestOpts *client.RequestOpts) (*DiskInfo, error)
func Get ¶
func Get(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (*DiskInfo, error)
func Update ¶
func Update(restClient *client.RestClient, id string, requestOpts *client.RequestOpts) (*DiskInfo, error)
func (*DiskInfo) GetKeyValues ¶
func (*DiskInfo) ToIRSDisk ¶
func (diskInfo *DiskInfo) ToIRSDisk(restClient *client.RestClient) irs.DiskInfo
func (*DiskInfo) ToUpdateDiskReqInfo ¶
func (diskInfo *DiskInfo) ToUpdateDiskReqInfo() *DiskReqInfo
Click to show internal directories.
Click to hide internal directories.