We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac0f35 commit bddfaceCopy full SHA for bddface
plugin.go
@@ -6,9 +6,8 @@ package docker
6
7
import (
8
"encoding/json"
9
- ioutil "io/ioutil"
+ "io/ioutil"
10
"net/http"
11
- "net/url"
12
13
"golang.org/x/net/context"
14
)
@@ -37,12 +36,7 @@ type InstallPluginOptions struct {
37
36
//
38
// See https://goo.gl/C4t7Tz for more details.
39
func (c *Client) InstallPlugins(opts InstallPluginOptions) error {
40
- params := make(url.Values)
41
- params.Set("remote", opts.Remote)
42
- if opts.Name != "" {
43
- params.Set("name", opts.Name)
44
- }
45
- path := "/plugins/pull?" + queryString(params)
+ path := "/plugins/pull?" + queryString(opts)
46
resp, err := c.do("POST", path, doOptions{
47
data: opts.Plugins,
48
context: opts.Context,
0 commit comments