@@ -20,14 +20,17 @@ type PluginPrivilege struct {
20
20
Value []string `json:"Value,omitempty" yaml:"Value,omitempty" toml:"Value,omitempty"`
21
21
}
22
22
23
+ // InstallPluginOptions This is a TBD Comments.
24
+ //
25
+ // See https://goo.gl/kaOHGw for more details.
23
26
type InstallPluginOptions struct {
24
27
Remote string
25
28
Name string
26
29
Plugins []PluginPrivilege
27
30
Context context.Context
28
31
}
29
32
30
- // ListContainers returns a slice of containers matching the given criteria.
33
+ // InstallPlugins returns a slice of containers matching the given criteria.
31
34
//
32
35
// See https://goo.gl/kaOHGw for more details.
33
36
func (c * Client ) InstallPlugins (opts InstallPluginOptions , auth AuthConfiguration ) (error ) {
@@ -46,50 +49,80 @@ func (c *Client) InstallPlugins(opts InstallPluginOptions, auth AuthConfiguratio
46
49
return nil
47
50
}
48
51
52
+ // PluginSetting This is a TBD Comments.
53
+ //
54
+ // See https://goo.gl/kaOHGw for more details.
49
55
type PluginSetting struct {
50
56
Env []string `json:"Env,omitempty" yaml:"Env,omitempty" toml:"Env,omitempty"`
51
57
Args []string `json:"Args,omitempty" yaml:"Args,omitempty" toml:"Args,omitempty"`
52
58
Devices []string `json:"Devices,omitempty" yaml:"Devices,omitempty" toml:"Devices,omitempty"`
53
59
}
54
60
61
+ // PluginInterface This is a TBD Comments.
62
+ //
63
+ // See https://goo.gl/kaOHGw for more details.
55
64
type PluginInterface struct {
56
65
Types []string `json:"Types,omitempty" yaml:"Types,omitempty" toml:"Types,omitempty"`
57
66
Socket string `json:"Socket,omitempty" yaml:"Socket,omitempty" toml:"Socket,omitempty"`
58
67
}
59
68
69
+ // PluginNetwork This is a TBD Comments.
70
+ //
71
+ // See https://goo.gl/kaOHGw for more details.
60
72
type PluginNetwork struct {
61
73
Type string `json:"Type,omitempty" yaml:"Type,omitempty" toml:"Type,omitempty"`
62
74
}
75
+
76
+ // PluginLinux This is a TBD Comments.
77
+ //
78
+ // See https://goo.gl/kaOHGw for more details.
63
79
type PluginLinux struct {
64
80
Capabilities []string `json:"Capabilities,omitempty" yaml:"Capabilities,omitempty" toml:"Capabilities,omitempty"`
65
81
AllowAllDevices bool `json:"AllowAllDevices,omitempty" yaml:"AllowAllDevices,omitempty" toml:"AllowAllDevices,omitempty"`
66
82
Devices []PluginLinuxDevices `json:"Devices,omitempty" yaml:"Devices,omitempty" toml:"Devices,omitempty"`
67
83
}
68
84
85
+ // PluginLinuxDevices This is a TBD Comments.
86
+ //
87
+ // See https://goo.gl/kaOHGw for more details.
69
88
type PluginLinuxDevices struct {
70
89
Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
71
90
Description string `json:"Documentation,omitempty" yaml:"Documentation,omitempty" toml:"Documentation,omitempty"`
72
91
Settable []string `json:"Settable,omitempty" yaml:"Settable,omitempty" toml:"Settable,omitempty"`
73
92
Path string `json:"Path,omitempty" yaml:"Path,omitempty" toml:"Path,omitempty"`
74
93
}
94
+
95
+ // PluginEnv This is a TBD Comments.
96
+ //
97
+ // See https://goo.gl/kaOHGw for more details.
75
98
type PluginEnv struct {
76
99
Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
77
100
Description string `json:"Documentation,omitempty" yaml:"Documentation,omitempty" toml:"Documentation,omitempty"`
78
101
Settable []string `json:"Settable,omitempty" yaml:"Settable,omitempty" toml:"Settable,omitempty"`
79
102
Value string `json:"Value,omitempty" yaml:"Value,omitempty" toml:"Value,omitempty"`
80
103
}
104
+
105
+ // PluginArgs This is a TBD Comments.
106
+ //
107
+ // See https://goo.gl/kaOHGw for more details.
81
108
type PluginArgs struct {
82
109
Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
83
110
Description string `json:"Documentation,omitempty" yaml:"Documentation,omitempty" toml:"Documentation,omitempty"`
84
111
Settable []string `json:"Settable,omitempty" yaml:"Settable,omitempty" toml:"Settable,omitempty"`
85
112
Value []string `json:"Value,omitempty" yaml:"Value,omitempty" toml:"Value,omitempty"`
86
113
}
87
114
115
+ // PluginUser This is a TBD Comments.
116
+ //
117
+ // See https://goo.gl/kaOHGw for more details.
88
118
type PluginUser struct {
89
119
UID int32 `json:"UID,omitempty" yaml:"UID,omitempty" toml:"UID,omitempty"`
90
120
GID int32 `json:"GID,omitempty" yaml:"GID,omitempty" toml:"GID,omitempty"`
91
121
}
92
122
123
+ // PluginConfig This is a TBD Comments.
124
+ //
125
+ // See https://goo.gl/kaOHGw for more details.
93
126
type PluginConfig struct {
94
127
Description string `json:"Description,omitempty" yaml:"Description,omitempty" toml:"Description,omitempty"`
95
128
Documentation string
@@ -99,21 +132,27 @@ type PluginConfig struct {
99
132
User PluginUser `json:"User,omitempty" yaml:"User,omitempty" toml:"User,omitempty"`
100
133
Network PluginNetwork `json:"Network,omitempty" yaml:"Network,omitempty" toml:"Network,omitempty"`
101
134
Linux PluginLinux `json:"Linux,omitempty" yaml:"Linux,omitempty" toml:"Linux,omitempty"`
102
- PropagatedMount string `json:"Interface ,omitempty" yaml:"Interface ,omitempty" toml:"Interface ,omitempty"`
135
+ PropagatedMount string `json:"PropagatedMount ,omitempty" yaml:"PropagatedMount ,omitempty" toml:"PropagatedMount ,omitempty"`
103
136
Mounts []Mount `json:"Mounts,omitempty" yaml:"Mounts,omitempty" toml:"Mounts,omitempty"`
104
137
Env []PluginEnv `json:"Env,omitempty" yaml:"Env,omitempty" toml:"Env,omitempty"`
105
138
Args PluginArgs `json:"Args,omitempty" yaml:"Args,omitempty" toml:"Args,omitempty"`
106
139
}
107
140
141
+ // PluginDetail This is a TBD Comments.
142
+ //
143
+ // See https://goo.gl/kaOHGw for more details.
108
144
type PluginDetail struct {
109
- Id string `json:"Id,omitempty" yaml:"Id,omitempty" toml:"Id,omitempty"`
145
+ ID string `json:"Id,omitempty" yaml:"Id,omitempty" toml:"Id,omitempty"`
110
146
Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
111
147
Tag string `json:"Tag,omitempty" yaml:"Tag,omitempty" toml:"Tag,omitempty"`
112
148
Active bool `json:"Active,omitempty" yaml:"Active,omitempty" toml:"Active,omitempty"`
113
149
Settings PluginSetting `json:"Settings,omitempty" yaml:"Settings,omitempty" toml:"Settings,omitempty"`
114
150
Config Config `json:"Config,omitempty" yaml:"Config,omitempty" toml:"Config,omitempty"`
115
151
}
116
152
153
+ // ListPlugins This is a TBD Comments.
154
+ //
155
+ // See https://goo.gl/kaOHGw for more details.
117
156
func (c * Client ) ListPlugins ()([]PluginDetail , error ) {
118
157
resp , err := c .do ("GET" , "/plugins" ,doOptions {})
119
158
if err != nil {
@@ -127,7 +166,9 @@ func (c *Client) ListPlugins()([]PluginDetail, error) {
127
166
return pluginDetails , nil
128
167
}
129
168
130
-
169
+ // GetPluginPrivileges This is a TBD Comments.
170
+ //
171
+ // See https://goo.gl/kaOHGw for more details.
131
172
func (c * Client ) GetPluginPrivileges (name string )([]PluginPrivilege , error ) {
132
173
resp , err := c .do ("GET" , "/plugins/privileges?" + name ,doOptions {})
133
174
if err != nil {
@@ -141,6 +182,9 @@ func (c *Client) GetPluginPrivileges(name string)([]PluginPrivilege, error) {
141
182
return pluginPrivileges , nil
142
183
}
143
184
185
+ // RemovePluginOptions This is a TBD Comments.
186
+ //
187
+ // See https://goo.gl/kaOHGw for more details.
144
188
type RemovePluginOptions struct {
145
189
// The ID of the container.
146
190
Name string `qs:"-"`
@@ -151,6 +195,9 @@ type RemovePluginOptions struct {
151
195
Context context.Context
152
196
}
153
197
198
+ // RemovePlugin This is a TBD Comments.
199
+ //
200
+ // See https://goo.gl/kaOHGw for more details.
154
201
func (c * Client ) RemovePlugin (opts RemovePluginOptions )(* PluginDetail , error ) {
155
202
path := "/plugins/" + opts .Name + "?" + queryString (opts )
156
203
resp , err := c .do ("DELETE" , path , doOptions {context : opts .Context })
@@ -172,7 +219,9 @@ func (c *Client) RemovePlugin(opts RemovePluginOptions)(*PluginDetail, error) {
172
219
return & pluginDetail , nil
173
220
}
174
221
175
-
222
+ // EnablePluginOptions This is a TBD Comments.
223
+ //
224
+ // See https://goo.gl/kaOHGw for more details.
176
225
type EnablePluginOptions struct {
177
226
// The ID of the container.
178
227
Name string `qs:"-"`
@@ -181,6 +230,9 @@ type EnablePluginOptions struct {
181
230
Context context.Context
182
231
}
183
232
233
+ // EnablePlugin This is a TBD Comments.
234
+ //
235
+ // See https://goo.gl/kaOHGw for more details.
184
236
func (c * Client ) EnablePlugin (opts EnablePluginOptions )(error ) {
185
237
path := "/plugins/" + opts .Name + "/enable?" + queryString (opts )
186
238
resp , err := c .do ("POST" , path , doOptions {context : opts .Context })
@@ -192,13 +244,19 @@ func (c *Client) EnablePlugin(opts EnablePluginOptions)(error) {
192
244
return nil
193
245
}
194
246
247
+ // DisablePluginOptions This is a TBD Comments.
248
+ //
249
+ // See https://goo.gl/kaOHGw for more details.
195
250
type DisablePluginOptions struct {
196
251
// The ID of the container.
197
252
Name string `qs:"-"`
198
253
199
254
Context context.Context
200
255
}
201
256
257
+ // DisablePlugin This is a TBD Comments.
258
+ //
259
+ // See https://goo.gl/kaOHGw for more details.
202
260
func (c * Client ) DisablePlugin (opts DisablePluginOptions )(error ) {
203
261
path := "/plugins/" + opts .Name + "/disable"
204
262
resp , err := c .do ("POST" , path , doOptions {context : opts .Context })
@@ -210,6 +268,9 @@ func (c *Client) DisablePlugin(opts DisablePluginOptions)(error) {
210
268
return nil
211
269
}
212
270
271
+ // CreatePluginOptions This is a TBD Comments.
272
+ //
273
+ // See https://goo.gl/kaOHGw for more details.
213
274
type CreatePluginOptions struct {
214
275
// The Name of the container.
215
276
Name string `qs:"name"`
@@ -219,6 +280,9 @@ type CreatePluginOptions struct {
219
280
Context context.Context
220
281
}
221
282
283
+ // CreatePlugin This is a TBD Comments.
284
+ //
285
+ // See https://goo.gl/kaOHGw for more details.
222
286
func (c * Client ) CreatePlugin (opts CreatePluginOptions )(string ,error ) {
223
287
path := "/plugins/create?" + queryString (opts .Name )
224
288
resp , err := c .do ("POST" , path , doOptions {
@@ -235,13 +299,19 @@ func (c *Client) CreatePlugin(opts CreatePluginOptions)(string,error) {
235
299
return string (containerNameBytes ),nil
236
300
}
237
301
302
+ // PushPluginOptions This is a TBD Comments.
303
+ //
304
+ // See https://goo.gl/kaOHGw for more details.
238
305
type PushPluginOptions struct {
239
306
// The Name of the container.
240
307
Name string
241
308
242
309
Context context.Context
243
310
}
244
311
312
+ // PushPlugin This is a TBD Comments.
313
+ //
314
+ // See https://goo.gl/kaOHGw for more details.
245
315
func (c * Client ) PushPlugin (opts PushPluginOptions )(error ) {
246
316
path := "/plugins/" + opts .Name + "/push"
247
317
resp , err := c .do ("POST" , path , doOptions {context : opts .Context })
@@ -252,6 +322,9 @@ func (c *Client) PushPlugin(opts PushPluginOptions)(error) {
252
322
return nil
253
323
}
254
324
325
+ // ConfigurePluginOptions This is a TBD Comments.
326
+ //
327
+ // See https://goo.gl/kaOHGw for more details.
255
328
type ConfigurePluginOptions struct {
256
329
// The Name of the container.
257
330
Name string `qs:"name"`
@@ -260,6 +333,9 @@ type ConfigurePluginOptions struct {
260
333
Context context.Context
261
334
}
262
335
336
+ // ConfigurePlugin This is a TBD Comments.
337
+ //
338
+ // See https://goo.gl/kaOHGw for more details.
263
339
func (c * Client ) ConfigurePlugin (opts ConfigurePluginOptions )(error ) {
264
340
path := "/plugins/" + opts .Name + "/set"
265
341
resp , err := c .do ("POST" , path , doOptions {
0 commit comments