mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-28 11:17:59 +00:00
This requires updating all import paths throughout, and a matching buildah update to interoperate. I can't figure out the reason for go.mod tracking github.com/containers/image v3.0.2+incompatible // indirect ((go mod graph) lists it as a direct dependency of libpod, but (go list -json -m all) lists it as an indirect dependency), but at least looking at the vendor subdirectory, it doesn't seem to be actually used in the built binaries. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
13 lines
411 B
Go
13 lines
411 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 wrapResponseError(err, resp, "secret", id)
|
|
}
|