Skip to content

Commit 8f81bb9

Browse files
committed
Update to inline comments.
Signed-off-by: Daniel Nephin <[email protected]>
1 parent 52a4737 commit 8f81bb9

4 files changed

Lines changed: 22 additions & 43 deletions

File tree

api/server/types/volume/volumes_create.go

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,23 @@ package volume
77
// See hack/swagger-gen.sh
88
// ----------------------------------------------------------------------------
99

10-
/*VolumesCreateBody volumes create body
11-
12-
swagger:model VolumesCreateBody
13-
*/
10+
// VolumesCreateBody volumes create body
11+
// swagger:model VolumesCreateBody
1412
type VolumesCreateBody struct {
1513

16-
/* Name of the volume driver to use.
17-
18-
Required: true
19-
*/
14+
// Name of the volume driver to use.
15+
// Required: true
2016
Driver string `json:"Driver"`
2117

22-
/* A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
23-
24-
Required: true
25-
*/
18+
// A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
19+
// Required: true
2620
DriverOpts map[string]string `json:"DriverOpts"`
2721

28-
/* A mapping of arbitrary key/value data to set on the volume.
29-
30-
Required: true
31-
*/
22+
// A mapping of arbitrary key/value data to set on the volume.
23+
// Required: true
3224
Labels map[string]string `json:"Labels"`
3325

34-
/* The new volume's name. If not specified, Docker generates a name.
35-
36-
Required: true
37-
*/
26+
// The new volume's name. If not specified, Docker generates a name.
27+
// Required: true
3828
Name string `json:"Name"`
3929
}

api/server/types/volume/volumes_list.go

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,15 @@ package volume
99

1010
import "github.com/docker/docker/api/types"
1111

12-
/*VolumesListOKBody volumes list o k body
13-
14-
swagger:model VolumesListOKBody
15-
*/
12+
// VolumesListOKBody volumes list o k body
13+
// swagger:model VolumesListOKBody
1614
type VolumesListOKBody struct {
1715

18-
/* List of volumes
19-
20-
Required: true
21-
*/
16+
// List of volumes
17+
// Required: true
2218
Volumes []*types.Volume `json:"Volumes"`
2319

24-
/* Warnings that occurred when fetching the list of volumes
25-
26-
Required: true
27-
*/
20+
// Warnings that occurred when fetching the list of volumes
21+
// Required: true
2822
Warnings []string `json:"Warnings"`
2923
}

api/templates/server/operation.gotmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import (
2020

2121

2222
{{ range .ExtraSchemas }}
23-
/*{{ .Name }} {{ template "docstring" . }}
24-
swagger:model {{ .Name }}
25-
*/
23+
// {{ .Name }} {{ template "docstring" . }}
24+
// swagger:model {{ .Name }}
2625
{{ template "schema" . }}
2726
{{ end }}

api/types/error_response.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ package types
33
// This file was generated by the swagger tool.
44
// Editing this file might prove futile when you re-run the swagger generate command
55

6-
/*ErrorResponse Represents an error.
7-
8-
swagger:model ErrorResponse
9-
*/
6+
// ErrorResponse Represents an error.
7+
// swagger:model ErrorResponse
108
type ErrorResponse struct {
119

12-
/* The error message.
13-
14-
Required: true
15-
*/
10+
// The error message.
11+
// Required: true
1612
Message string `json:"message"`
1713
}

0 commit comments

Comments
 (0)