diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-02 04:13:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 04:13:16 -0800 |
commit | 7497dcba6cd240908a9b0948eb561ad9c264fc8f (patch) | |
tree | 6f70df48b8bcac6dac2ee4087c759771a3d4f132 /vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go | |
parent | 8af66806c8042501ca32e66efdeb463cf5346cab (diff) | |
parent | 2f0fc2911cc98d60ad0695411218bff30720a083 (diff) | |
download | podman-7497dcba6cd240908a9b0948eb561ad9c264fc8f.tar.gz podman-7497dcba6cd240908a9b0948eb561ad9c264fc8f.tar.bz2 podman-7497dcba6cd240908a9b0948eb561ad9c264fc8f.zip |
Merge pull request #9565 from AkihiroSuda/bump-rootlesskit-20210302
Bump RootlessKit v0.14.0-beta.0
Diffstat (limited to 'vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go')
-rw-r--r-- | vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go b/vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go new file mode 100644 index 000000000..b6779bf70 --- /dev/null +++ b/vendor/github.com/rootless-containers/rootlesskit/pkg/api/api.go @@ -0,0 +1,36 @@ +package api + +import "net" + +const ( + // Version of the REST API, not implementation version. + // See openapi.yaml for the definition. + Version = "1.1.0" +) + +// ErrorJSON is returned with "application/json" content type and non-2XX status code +type ErrorJSON struct { + Message string `json:"message"` +} + +// Info is the structure returned by `GET /info` +type Info struct { + APIVersion string `json:"apiVersion"` // REST API version + Version string `json:"version"` // Implementation version + StateDir string `json:"stateDir"` + ChildPID int `json:"childPID"` + NetworkDriver *NetworkDriverInfo `json:"networkDriver,omitempty"` + PortDriver *PortDriverInfo `json:"portDriver,omitempty"` +} + +// NetworkDriverInfo in Info +type NetworkDriverInfo struct { + Driver string `json:"driver"` + DNS []net.IP `json:"dns,omitempty"` +} + +// PortDriverInfo in Info +type PortDriverInfo struct { + Driver string `json:"driver"` + Protos []string `json:"protos"` +} |