From dc33d84a48f181c9656a2ab3c47cb8a29ffbf5cd Mon Sep 17 00:00:00 2001 From: Wang Long Date: Sat, 31 Oct 2015 23:54:56 +0800 Subject: [PATCH 1/2] config/types.go: add "" to field tag The field tag format accepted is[1]: `(...) yaml:"[][,[,]]" (...)` so we should add double quotation marks for the filed tag format. [1]: https://godoc.org/gopkg.in/yaml.v2 Signed-off-by: Wang Long --- config/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/types.go b/config/types.go index 3bb5381e..bef0c3c8 100644 --- a/config/types.go +++ b/config/types.go @@ -52,12 +52,12 @@ type ContainerConfig struct { Cmd string `yaml:"run,omitempty"` MigrateVolumes bool `yaml:"migrate_volumes,omitempty"` ReloadConfig bool `yaml:"reload_config,omitempty"` - CreateOnly bool `yaml:create_only,omitempty` - Service *project.ServiceConfig `yaml:service,omitempty` + CreateOnly bool `yaml:"create_only,omitempty"` + Service *project.ServiceConfig `yaml:"service,omitempty"` } type Repository struct { - Url string `yaml:url,omitempty` + Url string `yaml:"url,omitempty"` } type Repositories map[string]Repository From 474246aa70c3291f63a70bb39993984c71357adb Mon Sep 17 00:00:00 2001 From: Wang Long Date: Sun, 1 Nov 2015 20:32:11 +0800 Subject: [PATCH 2/2] Delete the unused ContainerConfig type Signed-off-by: Wang Long --- config/types.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/types.go b/config/types.go index bef0c3c8..cca96708 100644 --- a/config/types.go +++ b/config/types.go @@ -47,15 +47,6 @@ func init() { } } -type ContainerConfig struct { - Id string `yaml:"id,omitempty"` - Cmd string `yaml:"run,omitempty"` - MigrateVolumes bool `yaml:"migrate_volumes,omitempty"` - ReloadConfig bool `yaml:"reload_config,omitempty"` - CreateOnly bool `yaml:"create_only,omitempty"` - Service *project.ServiceConfig `yaml:"service,omitempty"` -} - type Repository struct { Url string `yaml:"url,omitempty"` }