package docker // import "docker.io/go-docker" import ( "net/url" "strconv" "docker.io/go-docker/api/types" "golang.org/x/net/context" ) // PluginEnable enables a plugin func (cli *Client) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error { query := url.Values{} query.Set("timeout", strconv.Itoa(options.Timeout)) resp, err := cli.post(ctx, "/plugins/"+name+"/enable", query, nil, nil) ensureReaderClosed(resp) return err }