diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-03-27 13:31:17 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-03-28 16:49:08 +0100 |
commit | cc129d13c5b8b80f542dbc6192ff3d5df29b47ee (patch) | |
tree | 9aff03eb40997c7373089c83d1c32ed6ace0815e /pkg/api/handlers/types.go | |
parent | 684b4bd2f16d078edd25d262bb8baefc699508e9 (diff) | |
download | podman-cc129d13c5b8b80f542dbc6192ff3d5df29b47ee.tar.gz podman-cc129d13c5b8b80f542dbc6192ff3d5df29b47ee.tar.bz2 podman-cc129d13c5b8b80f542dbc6192ff3d5df29b47ee.zip |
v2 api: implement pods top endpoint
Note that this commit does not add tests for the pod-top endpoint.
They will be added in a later change.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/handlers/types.go')
-rw-r--r-- | pkg/api/handlers/types.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index 1ca5db3f9..89a571e67 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -133,6 +133,23 @@ type ContainerTopOKBody struct { dockerContainer.ContainerTopOKBody } +type PodTopOKBody struct { + dockerContainer.ContainerTopOKBody +} + +// swagger:model PodCreateConfig +type PodCreateConfig struct { + Name string `json:"name"` + CGroupParent string `json:"cgroup-parent"` + Hostname string `json:"hostname"` + Infra bool `json:"infra"` + InfraCommand string `json:"infra-command"` + InfraImage string `json:"infra-image"` + Labels []string `json:"labels"` + Publish []string `json:"publish"` + Share string `json:"share"` +} + type ErrorModel struct { Message string `json:"message"` } |