Line 0
Link Here
|
|
|
1 |
--- runconfig/hostconfig.go.orig 2015-06-08 13:34:30 UTC |
2 |
+++ runconfig/hostconfig.go |
3 |
@@ -234,18 +234,18 @@ type HostConfig struct { |
4 |
func MergeConfigs(config *Config, hostConfig *HostConfig) *ContainerConfigWrapper { |
5 |
return &ContainerConfigWrapper{ |
6 |
config, |
7 |
- &hostConfigWrapper{InnerHostConfig: hostConfig}, |
8 |
+ &HostConfigWrapper{InnerHostConfig: hostConfig}, |
9 |
} |
10 |
} |
11 |
|
12 |
-type hostConfigWrapper struct { |
13 |
+type HostConfigWrapper struct { |
14 |
InnerHostConfig *HostConfig `json:"HostConfig,omitempty"` |
15 |
Cpuset string `json:",omitempty"` // Deprecated. Exported for backwards compatibility. |
16 |
|
17 |
*HostConfig // Deprecated. Exported to read attrubutes from json that are not in the inner host config structure. |
18 |
} |
19 |
|
20 |
-func (w hostConfigWrapper) GetHostConfig() *HostConfig { |
21 |
+func (w HostConfigWrapper) GetHostConfig() *HostConfig { |
22 |
hc := w.HostConfig |
23 |
|
24 |
if hc == nil && w.InnerHostConfig != nil { |
25 |
@@ -274,7 +274,7 @@ func (w hostConfigWrapper) GetHostConfig |
26 |
func DecodeHostConfig(src io.Reader) (*HostConfig, error) { |
27 |
decoder := json.NewDecoder(src) |
28 |
|
29 |
- var w hostConfigWrapper |
30 |
+ var w HostConfigWrapper |
31 |
if err := decoder.Decode(&w); err != nil { |
32 |
return nil, err |
33 |
} |