310
310
type machineStatus struct {
311
311
Err error `json:"-" yaml:",omitempty"`
312
Series string `json:"series,omitempty" yaml:"series,omitempty"`
313
InstanceId state.InstanceId `json:"instance-id,omitempty" yaml:"instance-id,omitempty"`
314
DNSName string `json:"dns-name,omitempty" yaml:"dns-name,omitempty"`
315
Life string `json:"life,omitempty" yaml:"life,omitempty"`
316
AgentVersion string `json:"agent-version,omitempty" yaml:"agent-version,omitempty"`
317
312
AgentState params.Status `json:"agent-state,omitempty" yaml:"agent-state,omitempty"`
318
313
AgentStateInfo string `json:"agent-state-info,omitempty" yaml:"agent-state-info,omitempty"`
314
AgentVersion string `json:"agent-version,omitempty" yaml:"agent-version,omitempty"`
315
DNSName string `json:"dns-name,omitempty" yaml:"dns-name,omitempty"`
316
InstanceId state.InstanceId `json:"instance-id,omitempty" yaml:"instance-id,omitempty"`
319
317
InstanceState string `json:"instance-state,omitempty" yaml:"instance-state,omitempty"`
318
Life string `json:"life,omitempty" yaml:"life,omitempty"`
319
Series string `json:"series,omitempty" yaml:"series,omitempty"`
322
322
// A goyaml bug means we can't declare these types
348
348
type serviceStatus struct {
349
349
Err error `json:"-" yaml:",omitempty"`
350
Life string `json:"life,omitempty" yaml:"life,omitempty"`
351
350
Charm string `json:"charm" yaml:"charm"`
352
351
Exposed bool `json:"exposed" yaml:"exposed"`
353
Units map[string]unitStatus `json:"units,omitempty" yaml:"units,omitempty"`
352
Life string `json:"life,omitempty" yaml:"life,omitempty"`
354
353
Relations map[string][]string `json:"relations,omitempty" yaml:"relations,omitempty"`
355
354
SubordinateTo []string `json:"subordinate-to,omitempty" yaml:"subordinate-to,omitempty"`
355
Units map[string]unitStatus `json:"units,omitempty" yaml:"units,omitempty"`
357
357
type serviceStatusNoMarshal serviceStatus
375
375
type unitStatus struct {
376
376
Err error `json:"-" yaml:",omitempty"`
377
PublicAddress string `json:"public-address,omitempty" yaml:"public-address,omitempty"`
378
Machine string `json:"machine,omitempty" yaml:"machine,omitempty"`
379
Life string `json:"life,omitempty" yaml:"life,omitempty"`
380
AgentVersion string `json:"agent-version,omitempty" yaml:"agent-version,omitempty"`
381
377
AgentState params.Status `json:"agent-state,omitempty" yaml:"agent-state,omitempty"`
382
378
AgentStateInfo string `json:"agent-state-info,omitempty" yaml:"agent-state-info,omitempty"`
379
AgentVersion string `json:"agent-version,omitempty" yaml:"agent-version,omitempty"`
380
Life string `json:"life,omitempty" yaml:"life,omitempty"`
381
Machine string `json:"machine,omitempty" yaml:"machine,omitempty"`
382
PublicAddress string `json:"public-address,omitempty" yaml:"public-address,omitempty"`
383
383
Subordinates map[string]unitStatus `json:"subordinates,omitempty" yaml:"subordinates,omitempty"`