mirror of
https://github.com/containers/podman.git
synced 2025-07-17 17:43:23 +08:00

this uses the specgen structure to create containers rather than the outdated createconfig. right now, only the apiv2 create is wired up. eventually the cli will also have to be done. Signed-off-by: Brent Baude <bbaude@redhat.com>
28 lines
461 B
Go
28 lines
461 B
Go
package generic
|
|
|
|
import (
|
|
"github.com/containers/libpod/pkg/api/handlers/utils"
|
|
)
|
|
|
|
// 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
|
|
}
|
|
}
|
|
}
|