-
Notifications
You must be signed in to change notification settings - Fork 0
/
entities.go
176 lines (149 loc) · 4.18 KB
/
entities.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
package vmClient
import (
"encoding/xml"
)
type VMDeployment struct {
XMLName xml.Name `xml:"Deployment"`
Xmlns string `xml:"xmlns,attr"`
Name string
DeploymentSlot string
Status string `xml:",omitempty"`
Label string
Url string `xml:",omitempty"`
RoleList RoleList
RoleInstanceList RoleInstanceList `xml:",omitempty"`
}
type HostedServiceDeployment struct {
XMLName xml.Name `xml:"CreateHostedService"`
Xmlns string `xml:"xmlns,attr"`
ServiceName string
Label string
Description string
Location string
}
type RoleList struct {
Role []*Role
}
type RoleInstanceList struct {
RoleInstance []*RoleInstance
}
type RoleInstance struct {
RoleName string
InstanceName string
InstanceStatus string
InstanceSize string
PowerState string
}
type Role struct {
RoleName string
RoleType string
ConfigurationSets ConfigurationSets
ResourceExtensionReferences ResourceExtensionReferences `xml:",omitempty"`
OSVirtualHardDisk OSVirtualHardDisk
RoleSize string
ProvisionGuestAgent bool
UseCertAuth bool `xml:"-"`
CertPath string `xml:"-"`
}
type ConfigurationSets struct {
ConfigurationSet []ConfigurationSet
}
type ResourceExtensionReferences struct {
ResourceExtensionReference []ResourceExtensionReference
}
type InputEndpoints struct {
InputEndpoint []InputEndpoint
}
type ResourceExtensionReference struct {
ReferenceName string
Publisher string
Name string
Version string
ResourceExtensionParameterValues ResourceExtensionParameterValues `xml:",omitempty"`
State string
}
type ResourceExtensionParameterValues struct {
ResourceExtensionParameterValue []ResourceExtensionParameter
}
type ResourceExtensionParameter struct {
Key string
Value string
Type string
}
type OSVirtualHardDisk struct {
MediaLink string
SourceImageName string
HostCaching string `xml:",omitempty"`
DiskName string `xml:",omitempty"`
OS string `xml:",omitempty"`
}
type ConfigurationSet struct {
ConfigurationSetType string
HostName string `xml:",omitempty"`
UserName string `xml:",omitempty"`
UserPassword string `xml:",omitempty"`
DisableSshPasswordAuthentication bool
InputEndpoints InputEndpoints `xml:",omitempty"`
SSH SSH `xml:",omitempty"`
}
type SSH struct {
PublicKeys PublicKeyList
}
type PublicKeyList struct {
PublicKey []PublicKey
}
type PublicKey struct {
Fingerprint string
Path string
}
type InputEndpoint struct {
LocalPort int
Name string
Port int
Protocol string
Vip string
}
type ServiceCertificate struct {
XMLName xml.Name `xml:"CertificateFile"`
Xmlns string `xml:"xmlns,attr"`
Data string
CertificateFormat string
Password string `xml:",omitempty"`
}
type StartRoleOperation struct {
Xmlns string `xml:"xmlns,attr"`
OperationType string
}
type ShutdownRoleOperation struct {
Xmlns string `xml:"xmlns,attr"`
OperationType string
}
type RestartRoleOperation struct {
Xmlns string `xml:"xmlns,attr"`
OperationType string
}
type AvailabilityResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result bool
Reason string
}
type RoleSizeList struct {
XMLName xml.Name `xml:"RoleSizes"`
Xmlns string `xml:"xmlns,attr"`
RoleSizes []RoleSize `xml:"RoleSize"`
}
type RoleSize struct {
Name string
Label string
Cores int
MemoryInMb int
SupportedByWebWorkerRoles bool
SupportedByVirtualMachines bool
MaxDataDiskCount int
WebWorkerResourceDiskSizeInMb int
VirtualMachineResourceDiskSizeInMb int
}
type dockerPublicConfig struct {
DockerPort int `json:"dockerport"`
Version int `json:"version"`
}