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
mdelapenya committed Aug 6, 2018
1 parent 6ffca09 commit 914f068
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 914f068

Please sign in to comment.