mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(api/snapshot): extend docker container snapshot type (#8537)
This commit is contained in:
parent
7dcd6f9b9e
commit
bc6a667a6b
3 changed files with 21 additions and 9 deletions
|
@ -207,15 +207,21 @@ type (
|
|||
GpuUseList []string `json:"GpuUseList"`
|
||||
}
|
||||
|
||||
// DockerSnapshotRaw represents all the information related to a snapshot as returned by the Docker API
|
||||
// DockerContainerSnapshot is an extent of Docker's Container struct
|
||||
// It contains some information of Docker's ContainerJSON struct
|
||||
DockerContainerSnapshot struct {
|
||||
types.Container
|
||||
Env []string `json:"Env"`
|
||||
}
|
||||
|
||||
// DockerSnapshotRaw represents all the information related to a snapshot as returned by the Docker API
|
||||
DockerSnapshotRaw struct {
|
||||
Containers []types.Container `json:"Containers" swaggerignore:"true"`
|
||||
Volumes volume.VolumeListOKBody `json:"Volumes" swaggerignore:"true"`
|
||||
Networks []types.NetworkResource `json:"Networks" swaggerignore:"true"`
|
||||
Images []types.ImageSummary `json:"Images" swaggerignore:"true"`
|
||||
Info types.Info `json:"Info" swaggerignore:"true"`
|
||||
Version types.Version `json:"Version" swaggerignore:"true"`
|
||||
Containers []DockerContainerSnapshot `json:"Containers" swaggerignore:"true"`
|
||||
Volumes volume.VolumeListOKBody `json:"Volumes" swaggerignore:"true"`
|
||||
Networks []types.NetworkResource `json:"Networks" swaggerignore:"true"`
|
||||
Images []types.ImageSummary `json:"Images" swaggerignore:"true"`
|
||||
Info types.Info `json:"Info" swaggerignore:"true"`
|
||||
Version types.Version `json:"Version" swaggerignore:"true"`
|
||||
}
|
||||
|
||||
// EdgeGroup represents an Edge group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue