plugin.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. package types
  2. // This file was generated by the swagger tool.
  3. // Editing this file might prove futile when you re-run the swagger generate command
  4. // Plugin A plugin for the Remote API
  5. // swagger:model Plugin
  6. type Plugin struct {
  7. // config
  8. // Required: true
  9. Config PluginConfig `json:"Config"`
  10. // True when the plugin is running. False when the plugin is not running, only installed.
  11. // Required: true
  12. Enabled bool `json:"Enabled"`
  13. // Id
  14. ID string `json:"Id,omitempty"`
  15. // name
  16. // Required: true
  17. Name string `json:"Name"`
  18. // settings
  19. // Required: true
  20. Settings PluginSettings `json:"Settings"`
  21. // tag
  22. // Required: true
  23. Tag string `json:"Tag"`
  24. }
  25. // PluginConfig The config of a plugin.
  26. // swagger:model PluginConfig
  27. type PluginConfig struct {
  28. // args
  29. // Required: true
  30. Args PluginConfigArgs `json:"Args"`
  31. // capabilities
  32. // Required: true
  33. Capabilities []string `json:"Capabilities"`
  34. // description
  35. // Required: true
  36. Description string `json:"Description"`
  37. // devices
  38. // Required: true
  39. Devices []PluginDevice `json:"Devices"`
  40. // documentation
  41. // Required: true
  42. Documentation string `json:"Documentation"`
  43. // entrypoint
  44. // Required: true
  45. Entrypoint []string `json:"Entrypoint"`
  46. // env
  47. // Required: true
  48. Env []PluginEnv `json:"Env"`
  49. // interface
  50. // Required: true
  51. Interface PluginConfigInterface `json:"Interface"`
  52. // mounts
  53. // Required: true
  54. Mounts []PluginMount `json:"Mounts"`
  55. // network
  56. // Required: true
  57. Network PluginConfigNetwork `json:"Network"`
  58. // user
  59. User PluginConfigUser `json:"User,omitempty"`
  60. // workdir
  61. // Required: true
  62. Workdir string `json:"Workdir"`
  63. }
  64. // PluginConfigArgs plugin config args
  65. // swagger:model PluginConfigArgs
  66. type PluginConfigArgs struct {
  67. // description
  68. // Required: true
  69. Description string `json:"Description"`
  70. // name
  71. // Required: true
  72. Name string `json:"Name"`
  73. // settable
  74. // Required: true
  75. Settable []string `json:"Settable"`
  76. // value
  77. // Required: true
  78. Value []string `json:"Value"`
  79. }
  80. // PluginConfigInterface The interface between Docker and the plugin
  81. // swagger:model PluginConfigInterface
  82. type PluginConfigInterface struct {
  83. // socket
  84. // Required: true
  85. Socket string `json:"Socket"`
  86. // types
  87. // Required: true
  88. Types []PluginInterfaceType `json:"Types"`
  89. }
  90. // PluginConfigNetwork plugin config network
  91. // swagger:model PluginConfigNetwork
  92. type PluginConfigNetwork struct {
  93. // type
  94. // Required: true
  95. Type string `json:"Type"`
  96. }
  97. // PluginConfigUser plugin config user
  98. // swagger:model PluginConfigUser
  99. type PluginConfigUser struct {
  100. // g ID
  101. GID uint32 `json:"GID,omitempty"`
  102. // UID
  103. UID uint32 `json:"UID,omitempty"`
  104. }
  105. // PluginSettings Settings that can be modified by users.
  106. // swagger:model PluginSettings
  107. type PluginSettings struct {
  108. // args
  109. // Required: true
  110. Args []string `json:"Args"`
  111. // devices
  112. // Required: true
  113. Devices []PluginDevice `json:"Devices"`
  114. // env
  115. // Required: true
  116. Env []string `json:"Env"`
  117. // mounts
  118. // Required: true
  119. Mounts []PluginMount `json:"Mounts"`
  120. }