3716ec25b4
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> wip: use tmpfs for swarm secrets Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> wip: inject secrets from swarm secret store Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> secrets: use secret names in cli for service create Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> switch to use mounts instead of volumes Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> vendor: use ehazlett swarmkit Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> secrets: finish secret update Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
10 lines
253 B
Go
10 lines
253 B
Go
package client
|
|
|
|
import "golang.org/x/net/context"
|
|
|
|
// SecretRemove removes a Secret.
|
|
func (cli *Client) SecretRemove(ctx context.Context, id string) error {
|
|
resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|