/
params.go
41 lines (34 loc) · 1.01 KB
/
params.go
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
35
36
37
38
39
40
41
package solusvm
import "encoding/xml"
type APIGenericResponse struct {
XMLName xml.Name `xml:"root"`
Status string `xml:"status"`
Message string `xml:"statusmsg"`
}
// virtual machines
type APIVmCreateResponse struct {
XMLName xml.Name `xml:"root"`
VmId string `xml:"vserverid"`
RootPassword string `xml:"rootpassword"`
}
type APIVmVncResponse struct {
XMLName xml.Name `xml:"root"`
Ip string `xml:"vncip"`
Port string `xml:"vncport"`
Password string `xml:"vncpassword"`
}
type APIVmConsoleResponse struct {
XMLName xml.Name `xml:"root"`
Ip string `xml:"consoleip"`
Port string `xml:"consoleport"`
Username string `xml:"consoleusername"`
Password string `xml:"consolepassword"`
}
type APIVmInfoResponse struct {
XMLName xml.Name `xml:"root"`
Ip string `xml:"mainipaddress"`
Ips string `xml:"ipaddresses"`
InternalIps string `xml:"internalips"`
State string `xml:"state"`
Bandwidth string `xml:"bandwidth"`
}