structs.go 456 B

123456789101112131415161718192021222324
  1. package structs
  2. // incoming websocket payloads
  3. type WsPayload struct {
  4. Type string `json:"type"`
  5. Action string `json:"action"`
  6. }
  7. // eventbus event payloads
  8. type Event struct {
  9. Type string
  10. Data interface{}
  11. }
  12. // for keeping track of container desired/actual state
  13. type ContainerState struct {
  14. ID string
  15. Name string
  16. Type string
  17. Image string
  18. ActualStatus string
  19. DesiredStatus string
  20. CreatedAt string
  21. }