Insert version checkers when call NewRegistry()

Upstream-commit: 5705a493080ba5571a7929d37e7926678a982cb4
Component: engine
This commit is contained in:
Nan Monnand Deng
2013-07-10 18:56:49 -04:00
parent d233f1b215
commit addc24cbb8
2 changed files with 30 additions and 15 deletions
-12
View File
@@ -66,18 +66,6 @@ type APIVersion struct {
GoVersion string `json:",omitempty"`
}
func (v *APIVersion) Name() string {
return "docker"
}
func (v *APIVersion) Version() string {
r, err := json.Marshal(v)
if err != nil {
return r.Version
}
return string(r)
}
type APIWait struct {
StatusCode int
}