@@ -51,14 +51,14 @@ type ProviderAuctionRequest struct {
5151 // Constraints are key-value pairs that are used to filter hosts.
5252 // Required even if empty (unfortunately).
5353 Constraints map [string ]string `json:"constraints"`
54- ProviderId string `json:"provider_id,omitempty"`
54+ ProviderID string `json:"provider_id,omitempty"`
5555 ProviderRef string `json:"provider_ref,omitempty"`
5656}
5757
5858type ProviderAuctionResponsePayload struct {
59- HostId string `json:"host_id"`
59+ HostID string `json:"host_id"`
6060 Constraints map [string ]string `json:"constraints,omitempty"`
61- ProviderId string `json:"provider_id,omitempty"`
61+ ProviderID string `json:"provider_id,omitempty"`
6262 ProviderRef string `json:"provider_ref,omitempty"`
6363}
6464
@@ -68,50 +68,48 @@ type ComponentAuctionRequest struct {
6868 // Constraints are key-value pairs that are used to filter hosts.
6969 // Required even if empty (unfortunately).
7070 Constraints map [string ]string `json:"constraints"`
71- ComponentId string `json:"component_id,omitempty"`
71+ ComponentID string `json:"component_id,omitempty"`
7272 ComponentRef string `json:"component_ref,omitempty"`
7373}
7474
7575type ComponentAuctionResponsePayload struct {
76- HostId string `json:"host_id"`
76+ HostID string `json:"host_id"`
7777 Constraints map [string ]string `json:"constraints,omitempty"`
78- ComponentId string `json:"component_id,omitempty"`
78+ ComponentID string `json:"component_id,omitempty"`
7979 ComponentRef string `json:"component_ref,omitempty"`
8080}
8181
8282type ComponentAuctionResponse = Response [ComponentAuctionResponsePayload ]
8383
8484type ScaleComponentRequest struct {
85- ComponentId string `json:"component_id"`
85+ ComponentID string `json:"component_id"`
8686 ComponentRef string `json:"component_ref"`
8787 Annotations map [string ]string `json:"annotations,omitempty"`
8888 Count int `json:"count"`
89- HostId string `json:"host_id"`
89+ HostID string `json:"host_id"`
9090 Config []string `json:"config,omitempty"`
9191 AllowUpdate bool `json:"allow_update,omitempty"`
9292}
9393
94- type ScaleComponentResponsePayload struct {
95- }
94+ type ScaleComponentResponsePayload struct {}
9695
9796type ScaleComponentResponse = Response [ScaleComponentResponsePayload ]
9897
9998type UpdateComponentRequest struct {
100- HostId string `json:"-"`
99+ HostID string `json:"-"`
101100
102- ComponentId string `json:"component_id"`
101+ ComponentID string `json:"component_id"`
103102 NewComponentRef string `json:"new_component_ref"`
104103 Annotations map [string ]string `json:"annotations,omitempty"`
105104}
106105
107- type UpdateComponentResponsePayload struct {
108- }
106+ type UpdateComponentResponsePayload struct {}
109107
110108type UpdateComponentResponse = Response [UpdateComponentResponsePayload ]
111109
112110type ProviderStartRequest struct {
113- HostId string `json:"host_id"`
114- ProviderId string `json:"provider_id"`
111+ HostID string `json:"host_id"`
112+ ProviderID string `json:"provider_id"`
115113 ProviderRef string `json:"provider_ref"`
116114 Annotations map [string ]string `json:"annotations,omitempty"`
117115 Config []string `json:"config,omitempty"`
@@ -122,16 +120,16 @@ type ProviderStartResponsePayload struct{}
122120type ProviderStartResponse = Response [ProviderStartResponsePayload ]
123121
124122type ProviderStopRequest struct {
125- HostId string `json:"host_id"`
126- ProviderId string `json:"provider_id"`
123+ HostID string `json:"host_id"`
124+ ProviderID string `json:"provider_id"`
127125}
128126
129127type ProviderStopResponsePayload struct {}
130128
131129type ProviderStopResponse = Response [ProviderStopResponsePayload ]
132130
133131type HostStopRequest struct {
134- HostId string `json:"host_id"`
132+ HostID string `json:"host_id"`
135133 Timeout int `json:"timeout,omitempty"`
136134}
137135
@@ -177,7 +175,7 @@ type ConfigDeleteResponsePayload struct{}
177175type ConfigDeleteResponse = Response [ConfigDeleteResponsePayload ]
178176
179177type HostLabelPutRequest struct {
180- HostId string `json:"-"`
178+ HostID string `json:"-"`
181179 Key string `json:"key"`
182180 Value string `json:"value"`
183181}
@@ -187,7 +185,7 @@ type HostLabelPutResponsePayload struct{}
187185type HostLabelPutResponse = Response [HostLabelPutResponsePayload ]
188186
189187type HostLabelDeleteRequest struct {
190- HostId string `json:"-"`
188+ HostID string `json:"-"`
191189 Key string `json:"key"`
192190 // NOTE(lxf): This is expected to be sent even if blak. Seems like an API bug.
193191 Value string `json:"value"`
@@ -198,11 +196,10 @@ type HostLabelDeleteResponsePayload struct{}
198196type HostLabelDeleteResponse = Response [HostLabelDeleteResponsePayload ]
199197
200198// NOTE(lxf): Despite being a 'Get', this acts as a 'List' operation
201- type LinkGetRequest struct {
202- }
199+ type LinkGetRequest struct {}
203200
204201type LinkGetResponsePayload struct {
205- SourceId string `json:"source_id"`
202+ SourceID string `json:"source_id"`
206203 Target string `json:"target"`
207204 Name string `json:"name"`
208205 WitNamespace string `json:"wit_namespace"`
@@ -215,7 +212,7 @@ type LinkGetResponsePayload struct {
215212type LinkGetResponse = Response [[]LinkGetResponsePayload ]
216213
217214type LinkPutRequest struct {
218- SourceId string `json:"source_id"`
215+ SourceID string `json:"source_id"`
219216 Target string `json:"target"`
220217 Name string `json:"name"`
221218 WitNamespace string `json:"wit_namespace"`
@@ -230,7 +227,7 @@ type LinkPutResponsePayload struct{}
230227type LinkPutResponse = Response [LinkPutResponsePayload ]
231228
232229type LinkDeleteRequest struct {
233- SourceId string `json:"source_id"`
230+ SourceID string `json:"source_id"`
234231 Name string `json:"name"`
235232 WitNamespace string `json:"wit_namespace"`
236233 WitPackage string `json:"wit_package"`
@@ -247,11 +244,11 @@ type ClaimsGetResponsePayload map[string]string
247244type ClaimsGetResponse = Response [ClaimsGetResponsePayload ]
248245
249246type HostInventoryRequest struct {
250- HostId string `json:"-"`
247+ HostID string `json:"-"`
251248}
252249
253250type ComponentDescription struct {
254- Id string `json:"id"`
251+ ID string `json:"id"`
255252 ImageRef string `json:"image_ref"`
256253 Name string `json:"name"`
257254 Annotations map [string ]string `json:"annotations"`
@@ -260,7 +257,7 @@ type ComponentDescription struct {
260257}
261258
262259type ProviderDescription struct {
263- Id string `json:"id"`
260+ ID string `json:"id"`
264261 ImageRef string `json:"image_ref"`
265262 Name string `json:"name"`
266263 Annotations map [string ]string `json:"annotations"`
@@ -270,7 +267,7 @@ type ProviderDescription struct {
270267type HostInventoryResponsePayload struct {
271268 Components []ComponentDescription `json:"components"`
272269 Providers []ProviderDescription `json:"providers"`
273- HostId string `json:"host_id"`
270+ HostID string `json:"host_id"`
274271 FriendlyName string `json:"friendly_name"`
275272 Labels map [string ]string `json:"labels"`
276273 Version string `json:"version"`
@@ -288,12 +285,12 @@ type HostPingRequest struct {
288285}
289286
290287type HostPingResponsePayload struct {
291- Id string `json:"id"`
288+ ID string `json:"id"`
292289 Labels map [string ]string `json:"labels"`
293290 FriendlyName string `json:"friendly_name"`
294291 Version string `json:"version"`
295292 Lattice string `json:"lattice"`
296- RpcHost string `json:"rpc_host"`
293+ RPCHost string `json:"rpc_host"`
297294 CtlHost string `json:"ctl_host"`
298295 UptimeSeconds int `json:"uptime_seconds"`
299296 UptimeHuman string `json:"uptime_human"`
0 commit comments