mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-04 11:07:23 +00:00
This includes https://github.com/moby/moby/pull/34040 which fixes Windows build issues. Note that this pulls in more than 500 (non merge) commits as well as the fix we are interested in. A couple of new deps are pulled in, versions taken from vendor/github.com/docker/docker/vendor.conf. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
14 lines
339 B
Go
14 lines
339 B
Go
package client
|
|
|
|
import "golang.org/x/net/context"
|
|
|
|
// SecretRemove removes a Secret.
|
|
func (cli *Client) SecretRemove(ctx context.Context, id string) error {
|
|
if err := cli.NewVersionError("1.25", "secret remove"); err != nil {
|
|
return err
|
|
}
|
|
resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|