mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-03 04:09:29 -05:00
* updates travis to xenial and docker to 18.09 * updates docker sources to f25e0c6f * updates the grpc sources to the latest version to be comtatible Closes #114
13 lines
411 B
Go
13 lines
411 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import "context"
|
|
|
|
// ConfigRemove removes a Config.
|
|
func (cli *Client) ConfigRemove(ctx context.Context, id string) error {
|
|
if err := cli.NewVersionError("1.30", "config remove"); err != nil {
|
|
return err
|
|
}
|
|
resp, err := cli.delete(ctx, "/configs/"+id, nil, nil)
|
|
defer ensureReaderClosed(resp)
|
|
return wrapResponseError(err, resp, "config", id)
|
|
}
|