mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
api: move types.Volume to volume.Volume
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
1a0c15abbb
commit
f19ef20a44
3 changed files with 22 additions and 4 deletions
14
api/types/deprecated.go
Normal file
14
api/types/deprecated.go
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
package types // import "github.com/docker/docker/api/types"
|
||||||
|
|
||||||
|
import "github.com/docker/docker/api/types/volume"
|
||||||
|
|
||||||
|
// Volume volume
|
||||||
|
//
|
||||||
|
// Deprecated: use github.com/docker/docker/api/types/volume.Volume
|
||||||
|
type Volume = volume.Volume
|
||||||
|
|
||||||
|
// VolumeUsageData Usage details about the volume. This information is used by the
|
||||||
|
// `GET /system/df` endpoint, and omitted in other endpoints.
|
||||||
|
//
|
||||||
|
// Deprecated: use github.com/docker/docker/api/types/volume.VolumeUsageData
|
||||||
|
type VolumeUsageData = volume.VolumeUsageData
|
|
@ -1,4 +1,4 @@
|
||||||
package types
|
package volume
|
||||||
|
|
||||||
// This file was generated by the swagger tool.
|
// This file was generated by the swagger tool.
|
||||||
// Editing this file might prove futile when you re-run the swagger generate command
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
@ -8,10 +8,13 @@ swagger generate model -f api/swagger.yaml \
|
||||||
-n IdResponse \
|
-n IdResponse \
|
||||||
-n ImageDeleteResponseItem \
|
-n ImageDeleteResponseItem \
|
||||||
-n ImageSummary \
|
-n ImageSummary \
|
||||||
-n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \
|
-n Plugin \
|
||||||
|
-n PluginDevice \
|
||||||
|
-n PluginMount \
|
||||||
|
-n PluginEnv \
|
||||||
|
-n PluginInterfaceType \
|
||||||
-n Port \
|
-n Port \
|
||||||
-n ServiceUpdateResponse \
|
-n ServiceUpdateResponse
|
||||||
-n Volume
|
|
||||||
|
|
||||||
swagger generate model -f api/swagger.yaml \
|
swagger generate model -f api/swagger.yaml \
|
||||||
-t api -m types/container --skip-validator -C api/swagger-gen.yaml \
|
-t api -m types/container --skip-validator -C api/swagger-gen.yaml \
|
||||||
|
@ -20,6 +23,7 @@ swagger generate model -f api/swagger.yaml \
|
||||||
|
|
||||||
swagger generate model -f api/swagger.yaml \
|
swagger generate model -f api/swagger.yaml \
|
||||||
-t api -m types/volume --skip-validator -C api/swagger-gen.yaml \
|
-t api -m types/volume --skip-validator -C api/swagger-gen.yaml \
|
||||||
|
-n Volume \
|
||||||
-n VolumeCreateOptions
|
-n VolumeCreateOptions
|
||||||
|
|
||||||
swagger generate operation -f api/swagger.yaml \
|
swagger generate operation -f api/swagger.yaml \
|
||||||
|
|
Loading…
Add table
Reference in a new issue