forked from mindjiver/gopherstack
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisk.go
More file actions
Latest commit
34 lines (30 loc) · 996 Bytes
/
Copy pathdisk.go
File metadata and controls
34 lines (30 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package gopherstack
import (
"net/url"
)
func (cCloudstackClient) ListDiskOfferings(domainidstring, idstring, keywordstring, namestring, pagestring, pagesizestring) (ListDiskOfferingsResponse, error) {
varrespListDiskOfferingsResponse
params:= url.Values{}
//params.Set("domainid", domainid)
response, err:=NewRequest(c, "listDiskOfferings", params)
iferr!=nil {
returnresp, err
}
resp=response.(ListDiskOfferingsResponse)
returnresp, err
}
typeDiskOfferingstruct {
Createdstring`json:"created"`
Disksizefloat64`json:"disksize"`
Displaytextstring`json:"displaytext"`
IDstring`json:"id"`
Iscustomizedbool`json:"iscustomized"`
Namestring`json:"name"`
Storagetypestring`json:"storagetype"`
}
typeListDiskOfferingsResponsestruct {
Listdiskofferingsresponsestruct {
Countfloat64`json:"count"`
Diskoffering []DiskOffering`json:"diskoffering"`
} `json:"listdiskofferingsresponse"`
}