| 12345678910111213141516171819202122232425262728293031 |
- package structs
- import (
- "github.com/docker/docker/api/types/container"
- )
- // incoming websocket payloads
- type WsPayload struct {
- Type string `json:"type"`
- Action string `json:"action"`
- }
- // eventbus event payloads
- type Event struct {
- Type string
- Data interface{}
- }
- // for keeping track of container desired/actual state
- type ContainerState struct {
- ID string
- Name string
- Type string
- Image string
- ActualStatus string // on/off
- DesiredStatus string
- ActualNetwork string // bridge/wireguard
- DesiredNetwork string
- CreatedAt string
- Config container.Config
- }
|