mirror of https://github.com/docker/cli.git
Merge pull request #30144 from dnephin/add-secrets-to-stack-deploy
Add secrets to stack deploy
This commit is contained in:
commit
477652e2b5
|
@ -8,8 +8,7 @@ import (
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SecretUpdate updates a Secret. Currently, the only part of a secret spec
|
// SecretUpdate attempts to updates a Secret
|
||||||
// which can be updated is Labels.
|
|
||||||
func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error {
|
func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error {
|
||||||
query := url.Values{}
|
query := url.Values{}
|
||||||
query.Set("version", strconv.FormatUint(version.Index, 10))
|
query.Set("version", strconv.FormatUint(version.Index, 10))
|
||||||
|
|
Loading…
Reference in New Issue