1package client // import "github.com/docker/docker/client"
2
3import (
4	"context"
5	"net/url"
6
7	"github.com/docker/docker/api/types"
8)
9
10// PluginDisable disables a plugin
11func (cli *Client) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error {
12	query := url.Values{}
13	if options.Force {
14		query.Set("force", "1")
15	}
16	resp, err := cli.post(ctx, "/plugins/"+name+"/disable", query, nil, nil)
17	ensureReaderClosed(resp)
18	return err
19}
20