implement state api command
This commit is contained in:
parent
cb7ab16427
commit
a2ddcc2232
5 changed files with 66 additions and 12 deletions
9
event.go
9
event.go
|
@ -35,3 +35,12 @@ type ContainerStartErrorEvent struct {
|
|||
func (c *ContainerStartErrorEvent) String() string {
|
||||
return "container start error"
|
||||
}
|
||||
|
||||
type GetContainersEvent struct {
|
||||
Containers []Container
|
||||
Err chan error
|
||||
}
|
||||
|
||||
func (c *GetContainersEvent) String() string {
|
||||
return "get containers"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue