mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Generate VolumeList response from the swagger spec
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
27
api/templates/server/operation.gotmpl
Normal file
27
api/templates/server/operation.gotmpl
Normal file
@@ -0,0 +1,27 @@
|
||||
package {{ .Package }}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// DO NOT EDIT THIS FILE
|
||||
// This file was generated by `swagger generate operation`
|
||||
//
|
||||
// See hack/swagger-gen.sh
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
|
||||
{{ range .DefaultImports }}{{ printf "%q" . }}
|
||||
{{ end }}
|
||||
{{ range $key, $value := .Imports }}{{ $key }} {{ printf "%q" $value }}
|
||||
{{ end }}
|
||||
)
|
||||
|
||||
|
||||
{{ range .ExtraSchemas }}
|
||||
/*{{ .Name }} {{ template "docstring" . }}
|
||||
swagger:model {{ .Name }}
|
||||
*/
|
||||
{{ template "schema" . }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user