mirror of
https://github.com/containers/podman.git
synced 2025-06-04 21:55:24 +08:00

With the advent of Podman 2.0.0 we crossed the magical barrier of go modules. While we were able to continue importing all packages inside of the project, the project could not be vendored anymore from the outside. Move the go module to new major version and change all imports to `github.com/containers/libpod/v2`. The renaming of the imports was done via `gomove` [1]. [1] https://github.com/KSubedi/gomove Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
66 lines
1.2 KiB
Go
66 lines
1.2 KiB
Go
package compat
|
|
|
|
import (
|
|
"github.com/containers/libpod/v2/pkg/domain/entities"
|
|
"github.com/containers/storage/pkg/archive"
|
|
"github.com/docker/docker/api/types"
|
|
)
|
|
|
|
// Create container
|
|
// swagger:response ContainerCreateResponse
|
|
type swagCtrCreateResponse struct {
|
|
// in:body
|
|
Body struct {
|
|
entities.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
|
|
}
|
|
}
|
|
|
|
// Network inspect
|
|
// swagger:response CompatNetworkInspect
|
|
type swagCompatNetworkInspect struct {
|
|
// in:body
|
|
Body types.NetworkResource
|
|
}
|
|
|
|
// Network list
|
|
// swagger:response CompatNetworkList
|
|
type swagCompatNetworkList struct {
|
|
// in:body
|
|
Body []types.NetworkResource
|
|
}
|
|
|
|
// Network create
|
|
// swagger:model NetworkCreateRequest
|
|
type NetworkCreateRequest struct {
|
|
types.NetworkCreateRequest
|
|
}
|
|
|
|
// Network create
|
|
// swagger:response CompatNetworkCreate
|
|
type swagCompatNetworkCreateResponse struct {
|
|
// in:body
|
|
Body struct{ types.NetworkCreate }
|
|
}
|