mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
19 lines
476 B
Go
19 lines
476 B
Go
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
|
|
}
|