mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 13:21:10 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
13 lines
410 B
Go
13 lines
410 B
Go
package docker // import "docker.io/go-docker"
|
|
|
|
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 wrapResponseError(err, resp, "secret", id)
|
|
}
|