Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
| ... | ... |
@@ -341,8 +341,8 @@ type PluginInstallOptions struct {
|
| 341 | 341 |
Args []string |
| 342 | 342 |
} |
| 343 | 343 |
|
| 344 |
-// SecretRequestOptions is a type for requesting secrets |
|
| 345 |
-type SecretRequestOptions struct {
|
|
| 344 |
+// SecretRequestOption is a type for requesting secrets |
|
| 345 |
+type SecretRequestOption struct {
|
|
| 346 | 346 |
Source string |
| 347 | 347 |
Target string |
| 348 | 348 |
UID string |
| ... | ... |
@@ -12,7 +12,7 @@ import ( |
| 12 | 12 |
|
| 13 | 13 |
// parseSecrets retrieves the secrets from the requested names and converts |
| 14 | 14 |
// them to secret references to use with the spec |
| 15 |
-func parseSecrets(client client.APIClient, requestedSecrets []*types.SecretRequestOptions) ([]*swarmtypes.SecretReference, error) {
|
|
| 15 |
+func parseSecrets(client client.APIClient, requestedSecrets []*types.SecretRequestOption) ([]*swarmtypes.SecretReference, error) {
|
|
| 16 | 16 |
secretRefs := make(map[string]*swarmtypes.SecretReference) |
| 17 | 17 |
ctx := context.Background() |
| 18 | 18 |
|
| ... | ... |
@@ -13,7 +13,7 @@ import ( |
| 13 | 13 |
|
| 14 | 14 |
// SecretOpt is a Value type for parsing secrets |
| 15 | 15 |
type SecretOpt struct {
|
| 16 |
- values []*types.SecretRequestOptions |
|
| 16 |
+ values []*types.SecretRequestOption |
|
| 17 | 17 |
} |
| 18 | 18 |
|
| 19 | 19 |
// Set a new secret value |
| ... | ... |
@@ -24,7 +24,7 @@ func (o *SecretOpt) Set(value string) error {
|
| 24 | 24 |
return err |
| 25 | 25 |
} |
| 26 | 26 |
|
| 27 |
- options := &types.SecretRequestOptions{
|
|
| 27 |
+ options := &types.SecretRequestOption{
|
|
| 28 | 28 |
Source: "", |
| 29 | 29 |
Target: "", |
| 30 | 30 |
UID: "0", |
| ... | ... |
@@ -102,6 +102,6 @@ func (o *SecretOpt) String() string {
|
| 102 | 102 |
} |
| 103 | 103 |
|
| 104 | 104 |
// Value returns the secret requests |
| 105 |
-func (o *SecretOpt) Value() []*types.SecretRequestOptions {
|
|
| 105 |
+func (o *SecretOpt) Value() []*types.SecretRequestOption {
|
|
| 106 | 106 |
return o.values |
| 107 | 107 |
} |