Insert version checkers when call NewRegistry()
Upstream-commit: 5705a493080ba5571a7929d37e7926678a982cb4 Component: engine
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user