Skip to content

Commit

Permalink
(#43) Define a simple structure for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel de la Peña committed Aug 6, 2018
1 parent fae55a3 commit 6c091d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,10 @@ func StopDockerContainer(containerName string) error {

return shell.CombinedOutput(dockerBinary, cmdArgs)
}

// ContainerInstance simple model for a container
type ContainerInstance struct {
ID string `json:"id" binding:"required"`
Name string `json:"name" binding:"required"`
Status string `json:"status" binding:"required"`
}

0 comments on commit 6c091d8

Please sign in to comment.