Skip to content

Commit

Permalink
make yaml output readable
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho committed Sep 6, 2019
1 parent 104f078 commit 149fb6e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/dockerd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ const (

// Service represent docker service
type Service struct {
CurrentState string `json:"CurrentState"`
DesiredState string `json:"DesiredState"`
Error string `json:"Error"`
ID string `json:"ID"`
Image string `json:"Image"`
Name string `json:"Name"`
Node string `json:"Node"`
Ports string `json:"Ports"`
ID string `json:"ID" yaml:"ID"`
Name string `json:"Name" yaml:"Name"`
Image string `json:"Image" yaml:"Image"`
Node string `json:"Node" yaml:"Node"`
DesiredState string `json:"DesiredState" yaml:"DesiredState"`
CurrentState string `json:"CurrentState" yaml:"CurrentState"`
Error string `json:"Error" yaml:"Error"`
Ports string `json:"Ports" yaml:"Ports"`
}

func (s *Service) containerID() string {
Expand Down

0 comments on commit 149fb6e

Please sign in to comment.