1
- // Copyright 2013 go-dockerclient authors. All rights reserved.
1
+ // Copyright 2018 go-dockerclient authors. All rights reserved.
2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
@@ -147,21 +147,20 @@ type PluginConfig struct {
147
147
//
148
148
// See https://goo.gl/C4t7Tz for more details.
149
149
type PluginDetail struct {
150
- ID string `json:"Id,omitempty" yaml:"Id,omitempty" toml:"Id,omitempty"`
151
- Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
152
- Tag string `json:"Tag,omitempty" yaml:"Tag,omitempty" toml:"Tag,omitempty"`
153
- Active bool `json:"Active,omitempty" yaml:"Active,omitempty" toml:"Active,omitempty"`
150
+ ID string `json:"Id,omitempty" yaml:"Id,omitempty" toml:"Id,omitempty"`
151
+ Name string `json:"Name,omitempty" yaml:"Name,omitempty" toml:"Name,omitempty"`
152
+ Tag string `json:"Tag,omitempty" yaml:"Tag,omitempty" toml:"Tag,omitempty"`
153
+ Active bool `json:"Active,omitempty" yaml:"Active,omitempty" toml:"Active,omitempty"`
154
154
Settings PluginSettings `json:"Settings,omitempty" yaml:"Settings,omitempty" toml:"Settings,omitempty"`
155
- Config PluginConfig `json:"Config,omitempty" yaml:"Config,omitempty" toml:"Config,omitempty"`
155
+ Config PluginConfig `json:"Config,omitempty" yaml:"Config,omitempty" toml:"Config,omitempty"`
156
156
}
157
157
158
158
// ListPlugins returns pluginDetails or an error.
159
159
//
160
160
// See https://goo.gl/C4t7Tz for more details.
161
161
func (c * Client ) ListPlugins (ctx context.Context ) ([]PluginDetail , error ) {
162
162
resp , err := c .do ("GET" , "/plugins" , doOptions {
163
- context :ctx ,
164
-
163
+ context : ctx ,
165
164
})
166
165
if err != nil {
167
166
return nil , err
@@ -177,9 +176,9 @@ func (c *Client) ListPlugins(ctx context.Context) ([]PluginDetail, error) {
177
176
// GetPluginPrivileges returns pulginPrivileges or an error.
178
177
//
179
178
// See https://goo.gl/C4t7Tz for more details.
180
- func (c * Client ) GetPluginPrivileges (name string ,ctx context.Context ) ([]PluginPrivilege , error ) {
179
+ func (c * Client ) GetPluginPrivileges (name string , ctx context.Context ) ([]PluginPrivilege , error ) {
181
180
resp , err := c .do ("GET" , "/plugins/privileges?remote=" + name , doOptions {
182
- context :ctx ,
181
+ context : ctx ,
183
182
})
184
183
if err != nil {
185
184
return nil , err
@@ -197,7 +196,7 @@ func (c *Client) GetPluginPrivileges(name string,ctx context.Context) ([]PluginP
197
196
// See https://goo.gl/C4t7Tz for more details.
198
197
func (c * Client ) InspectPlugins (name string , ctx context.Context ) (* PluginDetail , error ) {
199
198
resp , err := c .do ("GET" , "/plugins/" + name + "/json" , doOptions {
200
- context :ctx ,
199
+ context : ctx ,
201
200
})
202
201
if err != nil {
203
202
return nil , err
0 commit comments