Signed-off-by: allencloud <allen.sun@daocloud.io>
| ... | ... |
@@ -8,7 +8,7 @@ import ( |
| 8 | 8 |
"golang.org/x/net/context" |
| 9 | 9 |
) |
| 10 | 10 |
|
| 11 |
-// ConfigUpdate attempts to updates a Config |
|
| 11 |
+// ConfigUpdate attempts to update a Config |
|
| 12 | 12 |
func (cli *Client) ConfigUpdate(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error {
|
| 13 | 13 |
query := url.Values{}
|
| 14 | 14 |
query.Set("version", strconv.FormatUint(version.Index, 10))
|
| ... | ... |
@@ -8,7 +8,7 @@ import ( |
| 8 | 8 |
"golang.org/x/net/context" |
| 9 | 9 |
) |
| 10 | 10 |
|
| 11 |
-// SecretUpdate attempts to updates a Secret |
|
| 11 |
+// SecretUpdate attempts to update a Secret |
|
| 12 | 12 |
func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error {
|
| 13 | 13 |
query := url.Values{}
|
| 14 | 14 |
query.Set("version", strconv.FormatUint(version.Index, 10))
|