add credential-spec to compose

Signed-off-by: Michael Friis <friism@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Sebastiaan van Stijn
2017-05-11 14:30:04 +02:00
committed by Brian Goff
parent a4472a893d
commit 4e7943646b
6 changed files with 78 additions and 3 deletions

View File

@ -76,8 +76,9 @@ type ServiceConfig struct {
CapDrop []string `mapstructure:"cap_drop"`
CgroupParent string `mapstructure:"cgroup_parent"`
Command ShellCommand
ContainerName string `mapstructure:"container_name"`
DependsOn []string `mapstructure:"depends_on"`
ContainerName string `mapstructure:"container_name"`
CredentialSpec CredentialSpecConfig `mapstructure:"credential_spec"`
DependsOn []string `mapstructure:"depends_on"`
Deploy DeployConfig
Devices []string
DNS StringList
@ -310,3 +311,9 @@ type SecretConfig struct {
External External
Labels Labels
}
// CredentialSpecConfig for credential spec on Windows
type CredentialSpecConfig struct {
File string
Registry string
}