1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

SecretRequestOptions -> SecretRequestOption

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2016-11-04 14:24:44 -04:00
parent e9fd1c5918
commit 5b2230a38b
3 changed files with 6 additions and 6 deletions

View file

@ -341,8 +341,8 @@ type PluginInstallOptions struct {
Args []string
}
// SecretRequestOptions is a type for requesting secrets
type SecretRequestOptions struct {
// SecretRequestOption is a type for requesting secrets
type SecretRequestOption struct {
Source string
Target string
UID string

View file

@ -12,7 +12,7 @@ import (
// parseSecrets retrieves the secrets from the requested names and converts
// them to secret references to use with the spec
func parseSecrets(client client.APIClient, requestedSecrets []*types.SecretRequestOptions) ([]*swarmtypes.SecretReference, error) {
func parseSecrets(client client.APIClient, requestedSecrets []*types.SecretRequestOption) ([]*swarmtypes.SecretReference, error) {
secretRefs := make(map[string]*swarmtypes.SecretReference)
ctx := context.Background()

View file

@ -13,7 +13,7 @@ import (
// SecretOpt is a Value type for parsing secrets
type SecretOpt struct {
values []*types.SecretRequestOptions
values []*types.SecretRequestOption
}
// Set a new secret value
@ -24,7 +24,7 @@ func (o *SecretOpt) Set(value string) error {
return err
}
options := &types.SecretRequestOptions{
options := &types.SecretRequestOption{
Source: "",
Target: "",
UID: "0",
@ -102,6 +102,6 @@ func (o *SecretOpt) String() string {
}
// Value returns the secret requests
func (o *SecretOpt) Value() []*types.SecretRequestOptions {
func (o *SecretOpt) Value() []*types.SecretRequestOption {
return o.values
}