mirror of
https://github.com/containers/podman.git
synced 2025-05-25 02:57:21 +08:00

* Ported CLI command * Added API endpoint * Added bindings * Updated swagger (TODO: n endpoints, one handler) Signed-off-by: Jhon Honce <jhonce@redhat.com>
38 lines
645 B
Go
38 lines
645 B
Go
package compat
|
|
|
|
import (
|
|
"github.com/containers/libpod/pkg/api/handlers/utils"
|
|
"github.com/containers/storage/pkg/archive"
|
|
)
|
|
|
|
// Create container
|
|
// swagger:response ContainerCreateResponse
|
|
type swagCtrCreateResponse struct {
|
|
// in:body
|
|
Body struct {
|
|
utils.ContainerCreateResponse
|
|
}
|
|
}
|
|
|
|
// Wait container
|
|
// swagger:response ContainerWaitResponse
|
|
type swagCtrWaitResponse struct {
|
|
// in:body
|
|
Body struct {
|
|
// container exit code
|
|
StatusCode int
|
|
Error struct {
|
|
Message string
|
|
}
|
|
}
|
|
}
|
|
|
|
// Object Changes
|
|
// swagger:response Changes
|
|
type swagChangesResponse struct {
|
|
// in:body
|
|
Body struct {
|
|
Changes []archive.Change
|
|
}
|
|
}
|