summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/swagger.go
blob: 32167d6b54b58a5a906ed967ca5136c857dd43b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package compat

import (
	"github.com/containers/podman/v3/pkg/domain/entities"
	"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
		}
	}
}

// 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 }
}

// Network disconnect
// swagger:model NetworkCompatConnectRequest
type swagCompatNetworkConnectRequest struct {
	types.NetworkConnect
}

// Network disconnect
// swagger:model NetworkCompatDisconnectRequest
type swagCompatNetworkDisconnectRequest struct {
	types.NetworkDisconnect
}