File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package gopherstack
2+
3+ import (
4+ "net/url"
5+ )
6+
7+ // Deploys a Virtual Machine and returns it's id
8+ func (c CloudStackClient ) AttachIso (isoid string , vmid string ) (string , error ) {
9+ params := url.Values {}
10+ params .Set ("id" , isoid )
11+ params .Set ("virtualmachineid" , vmid )
12+
13+ _ , err := NewRequest (c , "attachIso" , params )
14+ if err != nil {
15+ return "" , err
16+ }
17+ //jobid := response.(AttachIsoResponse).Attachisoresponse.Jobid
18+ return "" , err
19+ }
20+
21+ func (c CloudStackClient ) DetachIso (vmid string ) (string , error ) {
22+ params := url.Values {}
23+ params .Set ("virtualmachineid" , vmid )
24+ _ , err := NewRequest (c , "detachIso" , params )
25+ if err != nil {
26+ return "" , err
27+ }
28+ //jobid := response.(DetachIsoResponse).DetachIsoresponse.Jobid
29+ return "" , err
30+ }
31+
32+ func (c CloudStackClient ) ListIsos () (string , error ) {
33+ _ , err := NewRequest (c , "listIsos" , nil )
34+ if err != nil {
35+ return "" , err
36+ }
37+ //jobid := response.(ListIsosResponse).Listisosresponse.Jobid
38+ return "" , err
39+ }
You can’t perform that action at this time.
0 commit comments