structs.go 551 B

1234567891011121314151617181920212223242526
  1. package structs
  2. import (
  3. "github.com/docker/docker/api/types/container"
  4. )
  5. // eventbus event payloads
  6. type Event struct {
  7. Type string
  8. Data interface{}
  9. }
  10. // for keeping track of container desired/actual state
  11. type ContainerState struct {
  12. ID string
  13. Name string
  14. Type string
  15. Image string
  16. ActualStatus string // on/off
  17. DesiredStatus string
  18. ActualNetwork string // bridge/wireguard
  19. DesiredNetwork string
  20. CreatedAt string
  21. Config container.Config
  22. Host container.HostConfig
  23. }