configs.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package types // import "github.com/docker/docker/api/types"
  2. // configs holds structs used for internal communication between the
  3. // frontend (such as an http server) and the backend (such as the
  4. // docker daemon).
  5. // ExecConfig is a small subset of the Config struct that holds the configuration
  6. // for the exec feature of docker.
  7. type ExecConfig struct {
  8. User string // User that will run the command
  9. Privileged bool // Is the container in privileged mode
  10. Tty bool // Attach standard streams to a tty.
  11. ConsoleSize *[2]uint `json:",omitempty"` // Initial console size [height, width]
  12. AttachStdin bool // Attach the standard input, makes possible user interaction
  13. AttachStderr bool // Attach the standard error
  14. AttachStdout bool // Attach the standard output
  15. Detach bool // Execute in detach mode
  16. DetachKeys string // Escape keys for detach
  17. Env []string // Environment variables
  18. WorkingDir string // Working directory
  19. Cmd []string // Execution commands and args
  20. }
  21. // PluginRmConfig holds arguments for plugin remove.
  22. type PluginRmConfig struct {
  23. ForceRemove bool
  24. }
  25. // PluginEnableConfig holds arguments for plugin enable
  26. type PluginEnableConfig struct {
  27. Timeout int
  28. }
  29. // PluginDisableConfig holds arguments for plugin disable.
  30. type PluginDisableConfig struct {
  31. ForceDisable bool
  32. }
  33. // NetworkListConfig stores the options available for listing networks
  34. type NetworkListConfig struct {
  35. // TODO(@cpuguy83): naming is hard, this is pulled from what was being used in the router before moving here
  36. Detailed bool
  37. Verbose bool
  38. }