plugin.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 Engine 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. // description
  32. // Required: true
  33. Description string `json:"Description"`
  34. // documentation
  35. // Required: true
  36. Documentation string `json:"Documentation"`
  37. // entrypoint
  38. // Required: true
  39. Entrypoint []string `json:"Entrypoint"`
  40. // env
  41. // Required: true
  42. Env []PluginEnv `json:"Env"`
  43. // interface
  44. // Required: true
  45. Interface PluginConfigInterface `json:"Interface"`
  46. // linux
  47. // Required: true
  48. Linux PluginConfigLinux `json:"Linux"`
  49. // mounts
  50. // Required: true
  51. Mounts []PluginMount `json:"Mounts"`
  52. // network
  53. // Required: true
  54. Network PluginConfigNetwork `json:"Network"`
  55. // user
  56. User PluginConfigUser `json:"User,omitempty"`
  57. // workdir
  58. // Required: true
  59. Workdir string `json:"Workdir"`
  60. }
  61. // PluginConfigArgs plugin config args
  62. // swagger:model PluginConfigArgs
  63. type PluginConfigArgs struct {
  64. // description
  65. // Required: true
  66. Description string `json:"Description"`
  67. // name
  68. // Required: true
  69. Name string `json:"Name"`
  70. // settable
  71. // Required: true
  72. Settable []string `json:"Settable"`
  73. // value
  74. // Required: true
  75. Value []string `json:"Value"`
  76. }
  77. // PluginConfigInterface The interface between Docker and the plugin
  78. // swagger:model PluginConfigInterface
  79. type PluginConfigInterface struct {
  80. // socket
  81. // Required: true
  82. Socket string `json:"Socket"`
  83. // types
  84. // Required: true
  85. Types []PluginInterfaceType `json:"Types"`
  86. }
  87. // PluginConfigLinux plugin config linux
  88. // swagger:model PluginConfigLinux
  89. type PluginConfigLinux struct {
  90. // capabilities
  91. // Required: true
  92. Capabilities []string `json:"Capabilities"`
  93. // device creation
  94. // Required: true
  95. DeviceCreation bool `json:"DeviceCreation"`
  96. // devices
  97. // Required: true
  98. Devices []PluginDevice `json:"Devices"`
  99. }
  100. // PluginConfigNetwork plugin config network
  101. // swagger:model PluginConfigNetwork
  102. type PluginConfigNetwork struct {
  103. // type
  104. // Required: true
  105. Type string `json:"Type"`
  106. }
  107. // PluginConfigUser plugin config user
  108. // swagger:model PluginConfigUser
  109. type PluginConfigUser struct {
  110. // g ID
  111. GID uint32 `json:"GID,omitempty"`
  112. // UID
  113. UID uint32 `json:"UID,omitempty"`
  114. }
  115. // PluginSettings Settings that can be modified by users.
  116. // swagger:model PluginSettings
  117. type PluginSettings struct {
  118. // args
  119. // Required: true
  120. Args []string `json:"Args"`
  121. // devices
  122. // Required: true
  123. Devices []PluginDevice `json:"Devices"`
  124. // env
  125. // Required: true
  126. Env []string `json:"Env"`
  127. // mounts
  128. // Required: true
  129. Mounts []PluginMount `json:"Mounts"`
  130. }