forked from toolshed/abra
We were running behind and there were quite some deprecations to update. This was mostly in the upstream copy/pasta package but seems quite minimal.
18 lines
443 B
Go
18 lines
443 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 {
|
|
id, err := trimID("config", id)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if err := cli.NewVersionError(ctx, "1.30", "config remove"); err != nil {
|
|
return err
|
|
}
|
|
resp, err := cli.delete(ctx, "/configs/"+id, nil, nil)
|
|
defer ensureReaderClosed(resp)
|
|
return err
|
|
}
|