- updated the default value for `--limit` on `docker search` as the const has been removed (added a todo to remove it) - updated some fixtures to account for `KernelMemoryTCP` no longer being included in the output. full diff: https://github.com/docker/docker/compare/83b51522df43866e39f7c757a6ab84ef4050eeb3...8941dcfcc5db4aefc351cd5b5bb4d524823035c0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
372 B
Go
14 lines
372 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import "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)
|
|
defer ensureReaderClosed(resp)
|
|
return err
|
|
}
|