plugin.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. // manifest
  16. // Required: true
  17. Manifest PluginManifest `json:"Manifest"`
  18. // name
  19. // Required: true
  20. Name string `json:"Name"`
  21. // tag
  22. // Required: true
  23. Tag string `json:"Tag"`
  24. }
  25. // PluginConfig Settings that can be modified by users.
  26. // swagger:model PluginConfig
  27. type PluginConfig struct {
  28. // args
  29. // Required: true
  30. Args []string `json:"Args"`
  31. // devices
  32. // Required: true
  33. Devices []PluginDevice `json:"Devices"`
  34. // env
  35. // Required: true
  36. Env []string `json:"Env"`
  37. // mounts
  38. // Required: true
  39. Mounts []PluginMount `json:"Mounts"`
  40. }
  41. // PluginManifest The manifest of a plugin.
  42. // swagger:model PluginManifest
  43. type PluginManifest struct {
  44. // args
  45. // Required: true
  46. Args PluginManifestArgs `json:"Args"`
  47. // capabilities
  48. // Required: true
  49. Capabilities []string `json:"Capabilities"`
  50. // description
  51. // Required: true
  52. Description string `json:"Description"`
  53. // devices
  54. // Required: true
  55. Devices []PluginDevice `json:"Devices"`
  56. // documentation
  57. // Required: true
  58. Documentation string `json:"Documentation"`
  59. // entrypoint
  60. // Required: true
  61. Entrypoint []string `json:"Entrypoint"`
  62. // env
  63. // Required: true
  64. Env []PluginEnv `json:"Env"`
  65. // interface
  66. // Required: true
  67. Interface PluginManifestInterface `json:"Interface"`
  68. // manifest version
  69. // Required: true
  70. ManifestVersion string `json:"ManifestVersion"`
  71. // mounts
  72. // Required: true
  73. Mounts []PluginMount `json:"Mounts"`
  74. // network
  75. // Required: true
  76. Network PluginManifestNetwork `json:"Network"`
  77. // user
  78. User PluginManifestUser `json:"User,omitempty"`
  79. // workdir
  80. // Required: true
  81. Workdir string `json:"Workdir"`
  82. }
  83. // PluginManifestArgs plugin manifest args
  84. // swagger:model PluginManifestArgs
  85. type PluginManifestArgs struct {
  86. // description
  87. // Required: true
  88. Description string `json:"Description"`
  89. // name
  90. // Required: true
  91. Name string `json:"Name"`
  92. // settable
  93. // Required: true
  94. Settable []string `json:"Settable"`
  95. // value
  96. // Required: true
  97. Value []string `json:"Value"`
  98. }
  99. // PluginManifestInterface The interface between Docker and the plugin
  100. // swagger:model PluginManifestInterface
  101. type PluginManifestInterface struct {
  102. // socket
  103. // Required: true
  104. Socket string `json:"Socket"`
  105. // types
  106. // Required: true
  107. Types []PluginInterfaceType `json:"Types"`
  108. }
  109. // PluginManifestNetwork plugin manifest network
  110. // swagger:model PluginManifestNetwork
  111. type PluginManifestNetwork struct {
  112. // type
  113. // Required: true
  114. Type string `json:"Type"`
  115. }
  116. // PluginManifestUser plugin manifest user
  117. // swagger:model PluginManifestUser
  118. type PluginManifestUser struct {
  119. // g ID
  120. GID uint32 `json:"GID,omitempty"`
  121. // UID
  122. UID uint32 `json:"UID,omitempty"`
  123. }