mirror of https://github.com/docker/cli.git
SecretRequestOptions -> SecretRequestOption
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
7180c8afed
commit
9d3c317c95
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
// SecretOpt is a Value type for parsing secrets
|
// SecretOpt is a Value type for parsing secrets
|
||||||
type SecretOpt struct {
|
type SecretOpt struct {
|
||||||
values []*types.SecretRequestOptions
|
values []*types.SecretRequestOption
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set a new secret value
|
// Set a new secret value
|
||||||
|
@ -24,7 +24,7 @@ func (o *SecretOpt) Set(value string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
options := &types.SecretRequestOptions{
|
options := &types.SecretRequestOption{
|
||||||
Source: "",
|
Source: "",
|
||||||
Target: "",
|
Target: "",
|
||||||
UID: "0",
|
UID: "0",
|
||||||
|
@ -102,6 +102,6 @@ func (o *SecretOpt) String() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value returns the secret requests
|
// Value returns the secret requests
|
||||||
func (o *SecretOpt) Value() []*types.SecretRequestOptions {
|
func (o *SecretOpt) Value() []*types.SecretRequestOption {
|
||||||
return o.values
|
return o.values
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue