diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3e55c6 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# podmanapi + +The `podmanapi` package was generated using the Swagger Codegen 3.0.23 [downloaded from the Maven Repository](https://mvnrepository.com/artifact/io.swagger.codegen.v3/swagger-codegen-cli): + +``` +java -jar swagger-codegen-cli-3.0.23.jar generate -l go -i https://storage.googleapis.com/libpod-master-releases/swagger-latest-master.yaml -o pkg/swagger +``` + +The link to the [`swagger-latest-master.yaml`](https://storage.googleapis.com/libpod-master-releases/swagger-latest-master.yaml) was found in the auto-generated [API documentation page](https://podman.readthedocs.io/en/latest/_static/api.html). + +Afterwards: + +* the missing `os` imports were added +* `model_plugin_config_linux.go` was renamed to `model_plugin_config_linux_.go` + +... to fix the compilation. diff --git a/pkg/swagger/.gitignore b/pkg/swagger/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/pkg/swagger/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/pkg/swagger/.swagger-codegen-ignore b/pkg/swagger/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/pkg/swagger/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/pkg/swagger/.swagger-codegen/VERSION b/pkg/swagger/.swagger-codegen/VERSION new file mode 100644 index 0000000..1290e20 --- /dev/null +++ b/pkg/swagger/.swagger-codegen/VERSION @@ -0,0 +1 @@ +3.0.23 \ No newline at end of file diff --git a/pkg/swagger/.travis.yml b/pkg/swagger/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/pkg/swagger/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/pkg/swagger/README.md b/pkg/swagger/README.md new file mode 100644 index 0000000..2e5a493 --- /dev/null +++ b/pkg/swagger/README.md @@ -0,0 +1,400 @@ +# Go API client for swagger + +This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + +## Overview +This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 1.0.0 +- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen +For more information, please visit [https://podman.io/community/](https://podman.io/community/) + +## Installation +Put the package under your project folder and add the following in import: +```golang +import "./swagger" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://podman.io/* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ContainersApi* | [**ChangesContainer**](docs/ContainersApi.md#changescontainer) | **Get** /libpod/containers/{name}/changes | Report on changes to container's filesystem; adds, deletes or modifications. +*ContainersApi* | [**LibpodAttachContainer**](docs/ContainersApi.md#libpodattachcontainer) | **Post** /libpod/containers/{name}/attach | Attach to a container +*ContainersApi* | [**LibpodCheckpointContainer**](docs/ContainersApi.md#libpodcheckpointcontainer) | **Post** /libpod/containers/{name}/checkpoint | Checkpoint a container +*ContainersApi* | [**LibpodCommitContainer**](docs/ContainersApi.md#libpodcommitcontainer) | **Post** /libpod/commit | Commit +*ContainersApi* | [**LibpodContainerExists**](docs/ContainersApi.md#libpodcontainerexists) | **Get** /libpod/containers/{name}/exists | Check if container exists +*ContainersApi* | [**LibpodCreateContainer**](docs/ContainersApi.md#libpodcreatecontainer) | **Post** /libpod/containers/create | Create a container +*ContainersApi* | [**LibpodExportContainer**](docs/ContainersApi.md#libpodexportcontainer) | **Get** /libpod/containers/{name}/export | Export a container +*ContainersApi* | [**LibpodGenerateKube**](docs/ContainersApi.md#libpodgeneratekube) | **Get** /libpod/generate/{name:.*}/kube | Generate a Kubernetes YAML file. +*ContainersApi* | [**LibpodGenerateSystemd**](docs/ContainersApi.md#libpodgeneratesystemd) | **Get** /libpod/generate/{name:.*}/systemd | Generate Systemd Units +*ContainersApi* | [**LibpodGetContainer**](docs/ContainersApi.md#libpodgetcontainer) | **Get** /libpod/containers/{name}/json | Inspect container +*ContainersApi* | [**LibpodInitContainer**](docs/ContainersApi.md#libpodinitcontainer) | **Post** /libpod/containers/{name}/init | Initialize a container +*ContainersApi* | [**LibpodKillContainer**](docs/ContainersApi.md#libpodkillcontainer) | **Post** /libpod/containers/{name}/kill | Kill container +*ContainersApi* | [**LibpodListContainers**](docs/ContainersApi.md#libpodlistcontainers) | **Get** /libpod/containers/json | List containers +*ContainersApi* | [**LibpodLogsFromContainer**](docs/ContainersApi.md#libpodlogsfromcontainer) | **Get** /libpod/containers/{name}/logs | Get container logs +*ContainersApi* | [**LibpodMountContainer**](docs/ContainersApi.md#libpodmountcontainer) | **Post** /libpod/containers/{name}/mount | Mount a container +*ContainersApi* | [**LibpodPauseContainer**](docs/ContainersApi.md#libpodpausecontainer) | **Post** /libpod/containers/{name}/pause | Pause a container +*ContainersApi* | [**LibpodPlayKube**](docs/ContainersApi.md#libpodplaykube) | **Post** /libpod/play/kube | Play a Kubernetes YAML file. +*ContainersApi* | [**LibpodPruneContainers**](docs/ContainersApi.md#libpodprunecontainers) | **Post** /libpod/containers/prune | Delete stopped containers +*ContainersApi* | [**LibpodPutArchive**](docs/ContainersApi.md#libpodputarchive) | **Post** /libpod/containers/{name}/copy | Copy files into a container +*ContainersApi* | [**LibpodRemoveContainer**](docs/ContainersApi.md#libpodremovecontainer) | **Delete** /libpod/containers/{name} | Delete container +*ContainersApi* | [**LibpodResizeContainer**](docs/ContainersApi.md#libpodresizecontainer) | **Post** /libpod/containers/{name}/resize | Resize a container's TTY +*ContainersApi* | [**LibpodRestartContainer**](docs/ContainersApi.md#libpodrestartcontainer) | **Post** /libpod/containers/{name}/restart | Restart a container +*ContainersApi* | [**LibpodRestoreContainer**](docs/ContainersApi.md#libpodrestorecontainer) | **Post** /libpod/containers/{name}/restore | Restore a container +*ContainersApi* | [**LibpodRunHealthCheck**](docs/ContainersApi.md#libpodrunhealthcheck) | **Get** /libpod/containers/{name:.*}/healthcheck | Run a container's healthcheck +*ContainersApi* | [**LibpodShowMountedContainers**](docs/ContainersApi.md#libpodshowmountedcontainers) | **Get** /libpod/containers/showmounted | Show mounted containers +*ContainersApi* | [**LibpodStartContainer**](docs/ContainersApi.md#libpodstartcontainer) | **Post** /libpod/containers/{name}/start | Start a container +*ContainersApi* | [**LibpodStatsContainer**](docs/ContainersApi.md#libpodstatscontainer) | **Get** /libpod/containers/{name}/stats | Get stats for a container +*ContainersApi* | [**LibpodStatsContainers**](docs/ContainersApi.md#libpodstatscontainers) | **Get** /libpod/containers/stats | Get stats for one or more containers +*ContainersApi* | [**LibpodStopContainer**](docs/ContainersApi.md#libpodstopcontainer) | **Post** /libpod/containers/{name}/stop | Stop a container +*ContainersApi* | [**LibpodTopContainer**](docs/ContainersApi.md#libpodtopcontainer) | **Get** /libpod/containers/{name}/top | List processes +*ContainersApi* | [**LibpodUnmountContainer**](docs/ContainersApi.md#libpodunmountcontainer) | **Post** /libpod/containers/{name}/unmount | Unmount a container +*ContainersApi* | [**LibpodUnpauseContainer**](docs/ContainersApi.md#libpodunpausecontainer) | **Post** /libpod/containers/{name}/unpause | Unpause Container +*ContainersApi* | [**LibpodWaitContainer**](docs/ContainersApi.md#libpodwaitcontainer) | **Post** /libpod/containers/{name}/wait | Wait on a container +*ContainersCompatApi* | [**AttachContainer**](docs/ContainersCompatApi.md#attachcontainer) | **Post** /containers/{name}/attach | Attach to a container +*ContainersCompatApi* | [**ChangesContainer**](docs/ContainersCompatApi.md#changescontainer) | **Get** /libpod/containers/{name}/changes | Report on changes to container's filesystem; adds, deletes or modifications. +*ContainersCompatApi* | [**CommitContainer**](docs/ContainersCompatApi.md#commitcontainer) | **Post** /commit | New Image +*ContainersCompatApi* | [**CreateContainer**](docs/ContainersCompatApi.md#createcontainer) | **Post** /containers/create | Create a container +*ContainersCompatApi* | [**ExportContainer**](docs/ContainersCompatApi.md#exportcontainer) | **Get** /containers/{name}/export | Export a container +*ContainersCompatApi* | [**GetArchive**](docs/ContainersCompatApi.md#getarchive) | **Get** /containers/{name}/archive | Get files from a container +*ContainersCompatApi* | [**GetContainer**](docs/ContainersCompatApi.md#getcontainer) | **Get** /containers/{name}/json | Inspect container +*ContainersCompatApi* | [**KillContainer**](docs/ContainersCompatApi.md#killcontainer) | **Post** /containers/{name}/kill | Kill container +*ContainersCompatApi* | [**LibpodGetArchive**](docs/ContainersCompatApi.md#libpodgetarchive) | **Get** /libpod/containers/{name}/copy | Copy files from a container +*ContainersCompatApi* | [**ListContainers**](docs/ContainersCompatApi.md#listcontainers) | **Get** /containers/json | List containers +*ContainersCompatApi* | [**LogsFromContainer**](docs/ContainersCompatApi.md#logsfromcontainer) | **Get** /containers/{name}/logs | Get container logs +*ContainersCompatApi* | [**PauseContainer**](docs/ContainersCompatApi.md#pausecontainer) | **Post** /containers/{name}/pause | Pause container +*ContainersCompatApi* | [**PruneContainers**](docs/ContainersCompatApi.md#prunecontainers) | **Post** /containers/prune | Delete stopped containers +*ContainersCompatApi* | [**PutArchive**](docs/ContainersCompatApi.md#putarchive) | **Put** /containers/{name}/archive | Put files into a container +*ContainersCompatApi* | [**RemoveContainer**](docs/ContainersCompatApi.md#removecontainer) | **Delete** /containers/{name} | Remove a container +*ContainersCompatApi* | [**ResizeContainer**](docs/ContainersCompatApi.md#resizecontainer) | **Post** /containers/{name}/resize | Resize a container's TTY +*ContainersCompatApi* | [**RestartContainer**](docs/ContainersCompatApi.md#restartcontainer) | **Post** /containers/{name}/restart | Restart container +*ContainersCompatApi* | [**StartContainer**](docs/ContainersCompatApi.md#startcontainer) | **Post** /containers/{name}/start | Start a container +*ContainersCompatApi* | [**StatsContainer**](docs/ContainersCompatApi.md#statscontainer) | **Get** /containers/{name}/stats | Get stats for a container +*ContainersCompatApi* | [**StopContainer**](docs/ContainersCompatApi.md#stopcontainer) | **Post** /containers/{name}/stop | Stop a container +*ContainersCompatApi* | [**TopContainer**](docs/ContainersCompatApi.md#topcontainer) | **Get** /containers/{name}/top | List processes running inside a container +*ContainersCompatApi* | [**UnpauseContainer**](docs/ContainersCompatApi.md#unpausecontainer) | **Post** /containers/{name}/unpause | Unpause container +*ContainersCompatApi* | [**WaitContainer**](docs/ContainersCompatApi.md#waitcontainer) | **Post** /containers/{name}/wait | Wait on a container +*ExecApi* | [**LibpodCreateExec**](docs/ExecApi.md#libpodcreateexec) | **Post** /libpod/containers/{name}/exec | Create an exec instance +*ExecApi* | [**LibpodInspectExec**](docs/ExecApi.md#libpodinspectexec) | **Get** /libpod/exec/{id}/json | Inspect an exec instance +*ExecApi* | [**LibpodResizeExec**](docs/ExecApi.md#libpodresizeexec) | **Post** /libpod/exec/{id}/resize | Resize an exec instance +*ExecApi* | [**LibpodStartExec**](docs/ExecApi.md#libpodstartexec) | **Post** /libpod/exec/{id}/start | Start an exec instance +*ExecCompatApi* | [**CreateExec**](docs/ExecCompatApi.md#createexec) | **Post** /containers/{name}/exec | Create an exec instance +*ExecCompatApi* | [**InspectExec**](docs/ExecCompatApi.md#inspectexec) | **Get** /exec/{id}/json | Inspect an exec instance +*ExecCompatApi* | [**ResizeExec**](docs/ExecCompatApi.md#resizeexec) | **Post** /exec/{id}/resize | Resize an exec instance +*ExecCompatApi* | [**StartExec**](docs/ExecCompatApi.md#startexec) | **Post** /exec/{id}/start | Start an exec instance +*ImagesApi* | [**LibpodBuildImage**](docs/ImagesApi.md#libpodbuildimage) | **Post** /libpod/build | Create image +*ImagesApi* | [**LibpodChangesImages**](docs/ImagesApi.md#libpodchangesimages) | **Get** /libpod/images/{name}/changes | Report on changes to images's filesystem; adds, deletes or modifications. +*ImagesApi* | [**LibpodExportImage**](docs/ImagesApi.md#libpodexportimage) | **Get** /libpod/images/{name:.*}/get | Export an image +*ImagesApi* | [**LibpodExportImages**](docs/ImagesApi.md#libpodexportimages) | **Get** /libpod/images/export | Export multiple images +*ImagesApi* | [**LibpodImageExists**](docs/ImagesApi.md#libpodimageexists) | **Get** /libpod/images/{name:.*}/exists | Image exists +*ImagesApi* | [**LibpodImageHistory**](docs/ImagesApi.md#libpodimagehistory) | **Get** /libpod/images/{name:.*}/history | History of an image +*ImagesApi* | [**LibpodImageTree**](docs/ImagesApi.md#libpodimagetree) | **Get** /libpod/images/{name:.*}/tree | Image tree +*ImagesApi* | [**LibpodImagesImport**](docs/ImagesApi.md#libpodimagesimport) | **Post** /libpod/images/import | Import image +*ImagesApi* | [**LibpodImagesLoad**](docs/ImagesApi.md#libpodimagesload) | **Post** /libpod/images/load | Load image +*ImagesApi* | [**LibpodImagesPull**](docs/ImagesApi.md#libpodimagespull) | **Post** /libpod/images/pull | Pull images +*ImagesApi* | [**LibpodImagesRemove**](docs/ImagesApi.md#libpodimagesremove) | **Delete** /libpod/images/remove | Remove one or more images from the storage. +*ImagesApi* | [**LibpodInspectImage**](docs/ImagesApi.md#libpodinspectimage) | **Get** /libpod/images/{name:.*}/json | Inspect an image +*ImagesApi* | [**LibpodListImages**](docs/ImagesApi.md#libpodlistimages) | **Get** /libpod/images/json | List Images +*ImagesApi* | [**LibpodPruneImages**](docs/ImagesApi.md#libpodpruneimages) | **Post** /libpod/images/prune | Prune unused images +*ImagesApi* | [**LibpodPushImage**](docs/ImagesApi.md#libpodpushimage) | **Post** /libpod/images/{name:.*}/push | Push Image +*ImagesApi* | [**LibpodRemoveImage**](docs/ImagesApi.md#libpodremoveimage) | **Delete** /libpod/images/{name:.*} | Remove an image from the local storage. +*ImagesApi* | [**LibpodSearchImages**](docs/ImagesApi.md#libpodsearchimages) | **Get** /libpod/images/search | Search images +*ImagesApi* | [**LibpodTagImage**](docs/ImagesApi.md#libpodtagimage) | **Post** /libpod/images/{name:.*}/tag | Tag an image +*ImagesApi* | [**LibpodUntagImage**](docs/ImagesApi.md#libpoduntagimage) | **Post** /libpod/images/{name:.*}/untag | Untag an image +*ImagesCompatApi* | [**BuildImage**](docs/ImagesCompatApi.md#buildimage) | **Post** /build | Create image +*ImagesCompatApi* | [**CreateImage**](docs/ImagesCompatApi.md#createimage) | **Post** /images/create | Create an image +*ImagesCompatApi* | [**ExportImage**](docs/ImagesCompatApi.md#exportimage) | **Get** /images/{name:.*}/get | Export an image +*ImagesCompatApi* | [**ImageHistory**](docs/ImagesCompatApi.md#imagehistory) | **Get** /images/{name:.*}/history | History of an image +*ImagesCompatApi* | [**ImportImage**](docs/ImagesCompatApi.md#importimage) | **Post** /images/load | Import image +*ImagesCompatApi* | [**InspectImage**](docs/ImagesCompatApi.md#inspectimage) | **Get** /images/{name:.*}/json | Inspect an image +*ImagesCompatApi* | [**ListImages**](docs/ImagesCompatApi.md#listimages) | **Get** /images/json | List Images +*ImagesCompatApi* | [**PruneImages**](docs/ImagesCompatApi.md#pruneimages) | **Post** /images/prune | Prune unused images +*ImagesCompatApi* | [**PushImage**](docs/ImagesCompatApi.md#pushimage) | **Post** /images/{name:.*}/push | Push Image +*ImagesCompatApi* | [**RemoveImage**](docs/ImagesCompatApi.md#removeimage) | **Delete** /images/{name:.*} | Remove Image +*ImagesCompatApi* | [**SearchImages**](docs/ImagesCompatApi.md#searchimages) | **Get** /images/search | Search images +*ImagesCompatApi* | [**TagImage**](docs/ImagesCompatApi.md#tagimage) | **Post** /images/{name:.*}/tag | Tag an image +*ManifestsApi* | [**AddManifest**](docs/ManifestsApi.md#addmanifest) | **Post** /libpod/manifests/{name:.*}/add | +*ManifestsApi* | [**Create**](docs/ManifestsApi.md#create) | **Post** /libpod/manifests/create | Create +*ManifestsApi* | [**Inspect**](docs/ManifestsApi.md#inspect) | **Get** /libpod/manifests/{name:.*}/json | Inspect +*ManifestsApi* | [**PushManifest**](docs/ManifestsApi.md#pushmanifest) | **Post** /libpod/manifests/{name}/push | Push +*ManifestsApi* | [**RemoveManifest**](docs/ManifestsApi.md#removemanifest) | **Delete** /libpod/manifests/{name:.*} | Remove +*NetworksApi* | [**LibpodCreateNetwork**](docs/NetworksApi.md#libpodcreatenetwork) | **Post** /libpod/networks/create | Create network +*NetworksApi* | [**LibpodInspectNetwork**](docs/NetworksApi.md#libpodinspectnetwork) | **Get** /libpod/networks/{name}/json | Inspect a network +*NetworksApi* | [**LibpodListNetwork**](docs/NetworksApi.md#libpodlistnetwork) | **Get** /libpod/networks/json | List networks +*NetworksApi* | [**LibpodRemoveNetwork**](docs/NetworksApi.md#libpodremovenetwork) | **Delete** /libpod/networks/{name} | Remove a network +*NetworksCompatApi* | [**CompatCreateNetwork**](docs/NetworksCompatApi.md#compatcreatenetwork) | **Post** /networks/create | Create network +*NetworksCompatApi* | [**CompatInspectNetwork**](docs/NetworksCompatApi.md#compatinspectnetwork) | **Get** /networks/{name} | Inspect a network +*NetworksCompatApi* | [**CompatListNetwork**](docs/NetworksCompatApi.md#compatlistnetwork) | **Get** /networks | List networks +*NetworksCompatApi* | [**CompatRemoveNetwork**](docs/NetworksCompatApi.md#compatremovenetwork) | **Delete** /networks/{name} | Remove a network +*PodsApi* | [**CreatePod**](docs/PodsApi.md#createpod) | **Post** /libpod/pods/create | Create a pod +*PodsApi* | [**InspectPod**](docs/PodsApi.md#inspectpod) | **Get** /libpod/pods/{name}/json | Inspect pod +*PodsApi* | [**KillPod**](docs/PodsApi.md#killpod) | **Post** /libpod/pods/{name}/kill | Kill a pod +*PodsApi* | [**LibpodGenerateKube**](docs/PodsApi.md#libpodgeneratekube) | **Get** /libpod/generate/{name:.*}/kube | Generate a Kubernetes YAML file. +*PodsApi* | [**LibpodGenerateSystemd**](docs/PodsApi.md#libpodgeneratesystemd) | **Get** /libpod/generate/{name:.*}/systemd | Generate Systemd Units +*PodsApi* | [**LibpodPlayKube**](docs/PodsApi.md#libpodplaykube) | **Post** /libpod/play/kube | Play a Kubernetes YAML file. +*PodsApi* | [**ListPods**](docs/PodsApi.md#listpods) | **Get** /libpod/pods/json | List pods +*PodsApi* | [**PausePod**](docs/PodsApi.md#pausepod) | **Post** /libpod/pods/{name}/pause | Pause a pod +*PodsApi* | [**PodExists**](docs/PodsApi.md#podexists) | **Get** /libpod/pods/{name}/exists | Pod exists +*PodsApi* | [**PrunePods**](docs/PodsApi.md#prunepods) | **Post** /libpod/pods/prune | Prune unused pods +*PodsApi* | [**RemovePod**](docs/PodsApi.md#removepod) | **Delete** /libpod/pods/{name} | Remove pod +*PodsApi* | [**RestartPod**](docs/PodsApi.md#restartpod) | **Post** /libpod/pods/{name}/restart | Restart a pod +*PodsApi* | [**StartPod**](docs/PodsApi.md#startpod) | **Post** /libpod/pods/{name}/start | Start a pod +*PodsApi* | [**StatsPod**](docs/PodsApi.md#statspod) | **Get** /libpod/pods/stats | Get stats for one or more pods +*PodsApi* | [**StopPod**](docs/PodsApi.md#stoppod) | **Post** /libpod/pods/{name}/stop | Stop a pod +*PodsApi* | [**TopPod**](docs/PodsApi.md#toppod) | **Get** /libpod/pods/{name}/top | List processes +*PodsApi* | [**UnpausePod**](docs/PodsApi.md#unpausepod) | **Post** /libpod/pods/{name}/unpause | Unpause a pod +*SystemApi* | [**Df**](docs/SystemApi.md#df) | **Get** /libpod/system/df | Show disk usage +*SystemApi* | [**LibpodGetEvents**](docs/SystemApi.md#libpodgetevents) | **Get** /libpod/events | Get events +*SystemApi* | [**LibpodGetInfo**](docs/SystemApi.md#libpodgetinfo) | **Get** /libpod/info | Get info +*SystemApi* | [**LibpodPingGet**](docs/SystemApi.md#libpodpingget) | **Get** /libpod/_ping | Ping service +*SystemApi* | [**PruneSystem**](docs/SystemApi.md#prunesystem) | **Post** /libpod/system/prune | Prune unused data +*SystemApi* | [**SystemVersion**](docs/SystemApi.md#systemversion) | **Get** /libpod/version | Component Version information +*SystemCompatApi* | [**CompatSystemVersion**](docs/SystemCompatApi.md#compatsystemversion) | **Get** /version | Component Version information +*SystemCompatApi* | [**GetEvents**](docs/SystemCompatApi.md#getevents) | **Get** /events | Get events +*SystemCompatApi* | [**GetInfo**](docs/SystemCompatApi.md#getinfo) | **Get** /info | Get info +*SystemCompatApi* | [**LibpodPingGet**](docs/SystemCompatApi.md#libpodpingget) | **Get** /libpod/_ping | Ping service +*VolumesApi* | [**LibpodCreateVolume**](docs/VolumesApi.md#libpodcreatevolume) | **Post** /libpod/volumes/create | Create a volume +*VolumesApi* | [**LibpodInspectVolume**](docs/VolumesApi.md#libpodinspectvolume) | **Get** /libpod/volumes/{name}/json | Inspect volume +*VolumesApi* | [**LibpodListVolumes**](docs/VolumesApi.md#libpodlistvolumes) | **Get** /libpod/volumes/json | List volumes +*VolumesApi* | [**LibpodPruneVolumes**](docs/VolumesApi.md#libpodprunevolumes) | **Post** /libpod/volumes/prune | Prune volumes +*VolumesApi* | [**LibpodRemoveVolume**](docs/VolumesApi.md#libpodremovevolume) | **Delete** /libpod/volumes/{name} | Remove volume +*VolumesCompatApi* | [**CreateVolume**](docs/VolumesCompatApi.md#createvolume) | **Post** /volumes/create | Create a volume +*VolumesCompatApi* | [**InspectVolume**](docs/VolumesCompatApi.md#inspectvolume) | **Get** /volumes/{name} | Inspect volume +*VolumesCompatApi* | [**ListVolumes**](docs/VolumesCompatApi.md#listvolumes) | **Get** /volumes | List volumes +*VolumesCompatApi* | [**PruneVolumes**](docs/VolumesCompatApi.md#prunevolumes) | **Post** /volumes/prune | Prune volumes +*VolumesCompatApi* | [**RemoveVolume**](docs/VolumesCompatApi.md#removevolume) | **Delete** /volumes/{name} | Remove volume + +## Documentation For Models + + - [Address](docs/Address.md) + - [AuthenticateOkBody](docs/AuthenticateOkBody.md) + - [AutoUserNsOptions](docs/AutoUserNsOptions.md) + - [Body](docs/Body.md) + - [Body1](docs/Body1.md) + - [Body10](docs/Body10.md) + - [Body11](docs/Body11.md) + - [Body2](docs/Body2.md) + - [Body3](docs/Body3.md) + - [Body4](docs/Body4.md) + - [Body5](docs/Body5.md) + - [Body6](docs/Body6.md) + - [Body7](docs/Body7.md) + - [Body8](docs/Body8.md) + - [Body9](docs/Body9.md) + - [CgroupConfig](docs/CgroupConfig.md) + - [Change](docs/Change.md) + - [Config](docs/Config.md) + - [ConfigReference](docs/ConfigReference.md) + - [ConmonInfo](docs/ConmonInfo.md) + - [ContainerBasicConfig](docs/ContainerBasicConfig.md) + - [ContainerCgroupConfig](docs/ContainerCgroupConfig.md) + - [ContainerChangeResponseItem](docs/ContainerChangeResponseItem.md) + - [ContainerCreateCreatedBody](docs/ContainerCreateCreatedBody.md) + - [ContainerHealthCheckConfig](docs/ContainerHealthCheckConfig.md) + - [ContainerNamedVolume](docs/ContainerNamedVolume.md) + - [ContainerNetworkConfig](docs/ContainerNetworkConfig.md) + - [ContainerNode](docs/ContainerNode.md) + - [ContainerResourceConfig](docs/ContainerResourceConfig.md) + - [ContainerSecurityConfig](docs/ContainerSecurityConfig.md) + - [ContainerSize](docs/ContainerSize.md) + - [ContainerState](docs/ContainerState.md) + - [ContainerStorageConfig](docs/ContainerStorageConfig.md) + - [ContainerStore](docs/ContainerStore.md) + - [ContainerTopOkBody](docs/ContainerTopOkBody.md) + - [ContainerUpdateOkBody](docs/ContainerUpdateOkBody.md) + - [ContainerWaitOkBody](docs/ContainerWaitOkBody.md) + - [ContainerWaitOkBodyError](docs/ContainerWaitOkBodyError.md) + - [ContainersPruneReport](docs/ContainersPruneReport.md) + - [CreateConfig](docs/CreateConfig.md) + - [CreateResourceConfig](docs/CreateResourceConfig.md) + - [Data](docs/Data.md) + - [DeviceMapping](docs/DeviceMapping.md) + - [DeviceRequest](docs/DeviceRequest.md) + - [DistributionInfo](docs/DistributionInfo.md) + - [DockerVolumeCreate](docs/DockerVolumeCreate.md) + - [EndpointIpamConfig](docs/EndpointIpamConfig.md) + - [EndpointResource](docs/EndpointResource.md) + - [EndpointSettings](docs/EndpointSettings.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [GraphDriverData](docs/GraphDriverData.md) + - [Health](docs/Health.md) + - [HealthCheckLog](docs/HealthCheckLog.md) + - [HealthCheckResults](docs/HealthCheckResults.md) + - [HealthConfig](docs/HealthConfig.md) + - [HealthcheckResult](docs/HealthcheckResult.md) + - [History](docs/History.md) + - [HistoryResponseItem](docs/HistoryResponseItem.md) + - [HostConfig](docs/HostConfig.md) + - [HostInfo](docs/HostInfo.md) + - [IdMap](docs/IdMap.md) + - [IdMappingOptions](docs/IdMappingOptions.md) + - [IdMappings](docs/IdMappings.md) + - [IdResponse](docs/IdResponse.md) + - [ImageConfig](docs/ImageConfig.md) + - [ImageDeleteResponse](docs/ImageDeleteResponse.md) + - [ImageDeleteResponseItem](docs/ImageDeleteResponseItem.md) + - [ImageImportReport](docs/ImageImportReport.md) + - [ImageLayer](docs/ImageLayer.md) + - [ImageLoadReport](docs/ImageLoadReport.md) + - [ImageMetadata](docs/ImageMetadata.md) + - [ImageStore](docs/ImageStore.md) + - [ImageSummary](docs/ImageSummary.md) + - [Info](docs/Info.md) + - [InlineResponse200](docs/InlineResponse200.md) + - [InlineResponse2001](docs/InlineResponse2001.md) + - [InlineResponse20010](docs/InlineResponse20010.md) + - [InlineResponse20011](docs/InlineResponse20011.md) + - [InlineResponse20012](docs/InlineResponse20012.md) + - [InlineResponse20013](docs/InlineResponse20013.md) + - [InlineResponse20014](docs/InlineResponse20014.md) + - [InlineResponse20015](docs/InlineResponse20015.md) + - [InlineResponse20016](docs/InlineResponse20016.md) + - [InlineResponse20017](docs/InlineResponse20017.md) + - [InlineResponse20018](docs/InlineResponse20018.md) + - [InlineResponse20019](docs/InlineResponse20019.md) + - [InlineResponse2002](docs/InlineResponse2002.md) + - [InlineResponse2003](docs/InlineResponse2003.md) + - [InlineResponse2003Error](docs/InlineResponse2003Error.md) + - [InlineResponse2004](docs/InlineResponse2004.md) + - [InlineResponse2005](docs/InlineResponse2005.md) + - [InlineResponse2006](docs/InlineResponse2006.md) + - [InlineResponse2007](docs/InlineResponse2007.md) + - [InlineResponse2008](docs/InlineResponse2008.md) + - [InlineResponse2009](docs/InlineResponse2009.md) + - [InlineResponse201](docs/InlineResponse201.md) + - [InlineResponse400](docs/InlineResponse400.md) + - [InspectAdditionalNetwork](docs/InspectAdditionalNetwork.md) + - [InspectBlkioThrottleDevice](docs/InspectBlkioThrottleDevice.md) + - [InspectBlkioWeightDevice](docs/InspectBlkioWeightDevice.md) + - [InspectContainerConfig](docs/InspectContainerConfig.md) + - [InspectContainerHostConfig](docs/InspectContainerHostConfig.md) + - [InspectContainerState](docs/InspectContainerState.md) + - [InspectDevice](docs/InspectDevice.md) + - [InspectHostPort](docs/InspectHostPort.md) + - [InspectLogConfig](docs/InspectLogConfig.md) + - [InspectMount](docs/InspectMount.md) + - [InspectNetworkSettings](docs/InspectNetworkSettings.md) + - [InspectPodContainerInfo](docs/InspectPodContainerInfo.md) + - [InspectPodInfraConfig](docs/InspectPodInfraConfig.md) + - [InspectRestartPolicy](docs/InspectRestartPolicy.md) + - [InspectUlimit](docs/InspectUlimit.md) + - [IpNet](docs/IpNet.md) + - [Ipam](docs/Ipam.md) + - [IpamConfig](docs/IpamConfig.md) + - [IpcConfig](docs/IpcConfig.md) + - [LibpodContainersPruneReport](docs/LibpodContainersPruneReport.md) + - [LibpodImagesPullReport](docs/LibpodImagesPullReport.md) + - [LibpodImagesRemoveReport](docs/LibpodImagesRemoveReport.md) + - [LinuxBlockIo](docs/LinuxBlockIo.md) + - [LinuxBlockIoDevice](docs/LinuxBlockIoDevice.md) + - [LinuxCpu](docs/LinuxCpu.md) + - [LinuxDevice](docs/LinuxDevice.md) + - [LinuxDeviceCgroup](docs/LinuxDeviceCgroup.md) + - [LinuxHugepageLimit](docs/LinuxHugepageLimit.md) + - [LinuxInterfacePriority](docs/LinuxInterfacePriority.md) + - [LinuxMemory](docs/LinuxMemory.md) + - [LinuxNetwork](docs/LinuxNetwork.md) + - [LinuxPids](docs/LinuxPids.md) + - [LinuxRdma](docs/LinuxRdma.md) + - [LinuxResources](docs/LinuxResources.md) + - [LinuxThrottleDevice](docs/LinuxThrottleDevice.md) + - [LinuxWeightDevice](docs/LinuxWeightDevice.md) + - [List](docs/List.md) + - [ListContainer](docs/ListContainer.md) + - [ListContainerNamespaces](docs/ListContainerNamespaces.md) + - [ListPodContainer](docs/ListPodContainer.md) + - [ListPodsReport](docs/ListPodsReport.md) + - [ListRegistriesReport](docs/ListRegistriesReport.md) + - [LogConfig](docs/LogConfig.md) + - [ManifestAddOpts](docs/ManifestAddOpts.md) + - [Mount](docs/Mount.md) + - [MountPoint](docs/MountPoint.md) + - [NamedVolume](docs/NamedVolume.md) + - [Namespace](docs/Namespace.md) + - [NetworkConfig](docs/NetworkConfig.md) + - [NetworkCreate](docs/NetworkCreate.md) + - [NetworkCreateOptions](docs/NetworkCreateOptions.md) + - [NetworkCreateReport](docs/NetworkCreateReport.md) + - [NetworkCreateRequest](docs/NetworkCreateRequest.md) + - [NetworkListReport](docs/NetworkListReport.md) + - [NetworkResource](docs/NetworkResource.md) + - [NetworkRmReport](docs/NetworkRmReport.md) + - [NetworkSettings](docs/NetworkSettings.md) + - [OciRuntimeInfo](docs/OciRuntimeInfo.md) + - [OverlayVolume](docs/OverlayVolume.md) + - [PeerInfo](docs/PeerInfo.md) + - [PidConfig](docs/PidConfig.md) + - [PlayKubePod](docs/PlayKubePod.md) + - [PlayKubeReport](docs/PlayKubeReport.md) + - [Plugin](docs/Plugin.md) + - [PluginConfig](docs/PluginConfig.md) + - [PluginConfigArgs](docs/PluginConfigArgs.md) + - [PluginConfigInterface](docs/PluginConfigInterface.md) + - [PluginConfigLinux](docs/PluginConfigLinux.md) + - [PluginConfigNetwork](docs/PluginConfigNetwork.md) + - [PluginConfigRootfs](docs/PluginConfigRootfs.md) + - [PluginConfigUser](docs/PluginConfigUser.md) + - [PluginDevice](docs/PluginDevice.md) + - [PluginEnv](docs/PluginEnv.md) + - [PluginInterfaceType](docs/PluginInterfaceType.md) + - [PluginMount](docs/PluginMount.md) + - [PluginSettings](docs/PluginSettings.md) + - [PodBasicConfig](docs/PodBasicConfig.md) + - [PodCgroupConfig](docs/PodCgroupConfig.md) + - [PodCreateConfig](docs/PodCreateConfig.md) + - [PodKillReport](docs/PodKillReport.md) + - [PodNetworkConfig](docs/PodNetworkConfig.md) + - [PodPauseReport](docs/PodPauseReport.md) + - [PodPruneReport](docs/PodPruneReport.md) + - [PodRestartReport](docs/PodRestartReport.md) + - [PodRmReport](docs/PodRmReport.md) + - [PodSpecGenerator](docs/PodSpecGenerator.md) + - [PodStartReport](docs/PodStartReport.md) + - [PodStatsReport](docs/PodStatsReport.md) + - [PodStopReport](docs/PodStopReport.md) + - [PodUnpauseReport](docs/PodUnpauseReport.md) + - [Port](docs/Port.md) + - [PortBinding](docs/PortBinding.md) + - [PortMapping](docs/PortMapping.md) + - [PosixRlimit](docs/PosixRlimit.md) + - [RemoteSocket](docs/RemoteSocket.md) + - [Report](docs/Report.md) + - [RestartPolicy](docs/RestartPolicy.md) + - [RootFs](docs/RootFs.md) + - [Schema2HealthConfig](docs/Schema2HealthConfig.md) + - [SecurityConfig](docs/SecurityConfig.md) + - [ServiceInfo](docs/ServiceInfo.md) + - [ServiceUpdateResponse](docs/ServiceUpdateResponse.md) + - [SlirpInfo](docs/SlirpInfo.md) + - [SpecGenerator](docs/SpecGenerator.md) + - [StoreInfo](docs/StoreInfo.md) + - [SystemDfContainerReport](docs/SystemDfContainerReport.md) + - [SystemDfImageReport](docs/SystemDfImageReport.md) + - [SystemDfVolumeReport](docs/SystemDfVolumeReport.md) + - [Task](docs/Task.md) + - [ThrottleDevice](docs/ThrottleDevice.md) + - [Ulimit](docs/Ulimit.md) + - [UserConfig](docs/UserConfig.md) + - [UtsConfig](docs/UtsConfig.md) + - [Version](docs/Version.md) + - [Volume](docs/Volume.md) + - [VolumeCreate](docs/VolumeCreate.md) + - [VolumeCreateBody](docs/VolumeCreateBody.md) + - [VolumeInfo](docs/VolumeInfo.md) + - [VolumeListBody](docs/VolumeListBody.md) + - [VolumeListOkBody](docs/VolumeListOkBody.md) + - [VolumePruneReport](docs/VolumePruneReport.md) + - [VolumeUsageData](docs/VolumeUsageData.md) + - [WeightDevice](docs/WeightDevice.md) + +## Documentation For Authorization + Endpoints do not require authorization. + + +## Author + +podman@lists.podman.io diff --git a/pkg/swagger/api/swagger.yaml b/pkg/swagger/api/swagger.yaml new file mode 100644 index 0000000..01c8865 --- /dev/null +++ b/pkg/swagger/api/swagger.yaml @@ -0,0 +1,21390 @@ +openapi: 3.0.1 +info: + title: Provides a container compatible interface. + description: |- + This documentation describes the Podman v2.0 RESTful API. + It replaces the Podman v1.0 API and was initially delivered + along with Podman v2.0. It consists of a Docker-compatible + API and a Libpod API providing support for Podman’s unique + features such as pods. + + To start the service and keep it running for 5,000 seconds (-t 0 runs forever): + + podman system service -t 5000 & + + You can then use cURL on the socket using requests documented below. + + NOTE: if you install the package podman-docker, it will create a symbolic + link for /var/run/docker.sock to /run/podman/podman.sock + + See podman-service(1) for more information. + + Quick Examples: + + 'podman info' + + curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info + + 'podman pull quay.io/containers/podman' + + curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' + + 'podman list images' + + curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + contact: + name: Podman + url: https://podman.io/community/ + email: podman@lists.podman.io + license: + name: Apache-2.0 + url: https://opensource.org/licenses/Apache-2.0 + version: 0.0.1 + x-logo: + - url: https://raw.githubusercontent.com/containers/libpod/master/logo/podman-logo.png + - altText: Podman logo +servers: +- url: http://podman.io/ +- url: https://podman.io/ +tags: +- name: containers + description: Actions related to containers +- name: exec + description: Actions related to exec +- name: images + description: Actions related to images +- name: manifests + description: Actions related to manifests +- name: networks + description: Actions related to networks +- name: pods + description: Actions related to pods +- name: volumes + description: Actions related to volumes +- name: system + description: Actions related to Podman engine +- name: containers (compat) + description: Actions related to containers for the compatibility endpoints +- name: exec (compat) + description: Actions related to exec for the compatibility endpoints +- name: images (compat) + description: Actions related to images for the compatibility endpoints +- name: networks (compat) + description: Actions related to compatibility networks +- name: volumes (compat) + description: Actions related to volumes for the compatibility endpoints +- name: system (compat) + description: Actions related to Podman and compatibility engines +paths: + /build: + post: + tags: + - images (compat) + summary: Create image + description: Build an image from the given Dockerfile(s) + operationId: buildImage + parameters: + - name: dockerfile + in: query + description: | + Path within the build context to the `Dockerfile`. + This is ignored if remote is specified and points to an external `Dockerfile`. + required: false + style: form + explode: true + schema: + type: string + default: Dockerfile + - name: t + in: query + description: A name and optional tag to apply to the image in the `name:tag` + format. If you omit the tag the default latest value is assumed. You can + provide several t parameters. + required: false + style: form + explode: true + schema: + type: string + default: latest + - name: extrahosts + in: query + description: | + TBD Extra hosts to add to /etc/hosts + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: remote + in: query + description: | + A Git repository URI or HTTP/HTTPS context URI. + If the URI points to a single text file, the file’s contents are placed + into a file called Dockerfile and the image is built from that file. If + the URI points to a tarball, the file is downloaded by the daemon and the + contents therein used as the context for the build. If the URI points to a + tarball and the dockerfile parameter is also specified, there must be a file + with the corresponding path inside the tarball. + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: q + in: query + description: | + Suppress verbose build output + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: nocache + in: query + description: | + Do not use the cache when building the image + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: cachefrom + in: query + description: | + JSON array of images used to build cache resolution + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: pull + in: query + description: | + Attempt to pull the image even if an older image exists locally + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: rm + in: query + description: | + Remove intermediate containers after a successful build + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: forcerm + in: query + description: | + Always remove intermediate containers, even upon failure + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: memory + in: query + description: | + Memory is the upper limit (in bytes) on how much memory running containers can use + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: memswap + in: query + description: | + MemorySwap limits the amount of memory and swap together + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpushares + in: query + description: | + CPUShares (relative weight + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpusetcpus + in: query + description: | + CPUSetCPUs in which to allow execution (0-3, 0,1) + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: cpuperiod + in: query + description: | + CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpuquota + in: query + description: | + CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: buildargs + in: query + description: | + JSON map of string pairs denoting build-time variables. + For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `["Foo":"bar"]`. + + For example, buildargs={"Foo":"bar"}. + + Note(s): + * This should not be used to pass secrets. + * The value of buildargs should be URI component encoded before being passed to the API. + + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: shmsize + in: query + description: | + ShmSize is the "size" value to use when mounting an shmfs on the container's /dev/shm directory. + Default is 64MB + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + default: 67108864 + - name: squash + in: query + description: | + Silently ignored. + Squash the resulting images layers into a single layer + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: labels + in: query + description: | + JSON map of key, value pairs to set as labels on the new image + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: networkmode + in: query + description: | + Sets the networking mode for the run commands during build. + Supported standard values are: + * `bridge` limited to containers within a single host, port mapping required for external access + * `host` no isolation between host and containers on this network + * `none` disable all networking for this container + * container: share networking with given container + ---All other values are assumed to be a custom network's name + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + default: bridge + - name: platform + in: query + description: | + Platform format os[/arch[/variant]] + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: target + in: query + description: | + Target build stage + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: outputs + in: query + description: | + output configuration TBD + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: OK (As of version 1.xx) + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /commit: + post: + tags: + - containers (compat) + summary: New Image + description: Create a new image from a container + operationId: commitContainer + parameters: + - name: container + in: query + description: the name or ID of a container + required: false + style: form + explode: true + schema: + type: string + - name: repo + in: query + description: the repository name for the created image + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: tag name for the created image + required: false + style: form + explode: true + schema: + type: string + - name: comment + in: query + description: commit message + required: false + style: form + explode: true + schema: + type: string + - name: author + in: query + description: author of the image + required: false + style: form + explode: true + schema: + type: string + - name: pause + in: query + description: pause the container before committing it + required: false + style: form + explode: true + schema: + type: boolean + - name: changes + in: query + description: instructions to apply while committing in Dockerfile format + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: no error + content: {} + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}: + delete: + tags: + - containers (compat) + summary: Remove a container + operationId: removeContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: If the container is running, kill it before removing it. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: v + in: query + description: Remove the volumes associated with the container. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: link + in: query + description: not supported + required: false + style: form + explode: true + schema: + type: boolean + responses: + "204": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/archive: + get: + tags: + - containers (compat) + summary: Get files from a container + description: Get a tar archive of files from a container + operationId: getArchive + parameters: + - name: name + in: path + description: container name or id + required: true + style: simple + explode: false + schema: + type: string + - name: path + in: query + description: Path to a directory in the container to extract + required: true + style: form + explode: true + schema: + type: string + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + put: + tags: + - containers (compat) + summary: Put files into a container + description: Put a tar archive of files into a container + operationId: putArchive + parameters: + - name: name + in: path + description: container name or id + required: true + style: simple + explode: false + schema: + type: string + - name: path + in: query + description: Path to a directory in the container to extract + required: true + style: form + explode: true + schema: + type: string + - name: noOverwriteDirNonDir + in: query + description: if unpacking the given content would cause an existing directory + to be replaced with a non-directory and vice versa (1 or true) + required: false + style: form + explode: true + schema: + type: string + - name: copyUIDGID + in: query + description: copy UID/GID maps to the dest file or di (1 or true) + required: false + style: form + explode: true + schema: + type: string + requestBody: + description: tarfile of files to copy into the container + content: + application/json: + schema: + type: string + application/x-tar: + schema: + type: string + required: false + responses: + "200": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "403": + description: the container rootfs is read-only + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: request + /containers/{name}/attach: + post: + tags: + - containers (compat) + summary: Attach to a container + description: Hijacks the connection to forward the container's standard streams + to the client. + operationId: attachContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: detachKeys + in: query + description: keys to use for detaching from the container + required: false + style: form + explode: true + schema: + type: string + - name: logs + in: query + description: Stream all logs from the container across the connection. Happens + before streaming attach (if requested). At least one of logs or stream must + be set + required: false + style: form + explode: true + schema: + type: boolean + - name: stream + in: query + description: Attach to the container. If unset, and logs is set, only the + container's logs will be sent. At least one of stream or logs must be set + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: stdout + in: query + description: Attach to container STDOUT + required: false + style: form + explode: true + schema: + type: boolean + - name: stderr + in: query + description: Attach to container STDERR + required: false + style: form + explode: true + schema: + type: boolean + - name: stdin + in: query + description: Attach to container STDIN + required: false + style: form + explode: true + schema: + type: boolean + responses: + "101": + description: No error, connection has been hijacked for transporting streams. + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/exec: + post: + tags: + - exec (compat) + summary: Create an exec instance + description: Create an exec session to run a command inside a running container. + Exec sessions will be automatically removed 5 minutes after they exit. + operationId: createExec + parameters: + - name: name + in: path + description: name of container + required: true + style: simple + explode: false + schema: + type: string + requestBody: + description: Attributes for create + content: + application/json: + schema: + $ref: '#/components/schemas/body' + application/x-tar: + schema: + $ref: '#/components/schemas/body_1' + required: false + responses: + "201": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: container is paused + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: control + /containers/{name}/export: + get: + tags: + - containers (compat) + summary: Export a container + description: Export the contents of a container as a tarball. + operationId: exportContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: tarball is returned in body + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/json: + get: + tags: + - containers (compat) + summary: Inspect container + description: Return low-level information about a container. + operationId: getContainer + parameters: + - name: name + in: path + description: the name or id of the container + required: true + style: simple + explode: false + schema: + type: string + - name: size + in: query + description: include the size of the container + required: false + style: form + explode: true + schema: + type: boolean + default: false + responses: + "200": + description: Inspect container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_1' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/kill: + post: + tags: + - containers (compat) + summary: Kill container + description: Signal to send to the container as an integer or string (e.g. SIGINT) + operationId: killContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: signal + in: query + description: signal to be sent to container + required: false + style: form + explode: true + schema: + type: string + default: SIGKILL + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/logs: + get: + tags: + - containers (compat) + summary: Get container logs + description: Get stdout and stderr logs from a container. + operationId: logsFromContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: follow + in: query + description: Keep connection after returning logs. + required: false + style: form + explode: true + schema: + type: boolean + - name: stdout + in: query + description: Return logs from stdout + required: false + style: form + explode: true + schema: + type: boolean + - name: stderr + in: query + description: Return logs from stderr + required: false + style: form + explode: true + schema: + type: boolean + - name: since + in: query + description: Only return logs since this time, as a UNIX timestamp + required: false + style: form + explode: true + schema: + type: string + - name: until + in: query + description: Only return logs before this time, as a UNIX timestamp + required: false + style: form + explode: true + schema: + type: string + - name: timestamps + in: query + description: Add timestamps to every log line + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: tail + in: query + description: Only return this number of log lines from the end of the logs + required: false + style: form + explode: true + schema: + type: string + default: all + responses: + "200": + description: logs returned as a stream in response body. + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/pause: + post: + tags: + - containers (compat) + summary: Pause container + description: Use the cgroups freezer to suspend all processes in a container. + operationId: pauseContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/resize: + post: + tags: + - containers (compat) + summary: Resize a container's TTY + description: Resize the terminal attached to a container (for use with Attach). + operationId: resizeContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: h + in: query + description: Height to set for the terminal, in characters + required: false + style: form + explode: true + schema: + type: integer + - name: w + in: query + description: Width to set for the terminal, in characters + required: false + style: form + explode: true + schema: + type: integer + responses: + "200": + description: Success + content: + application/json: + schema: + type: object + x-content-type: application/json + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/restart: + post: + tags: + - containers (compat) + summary: Restart container + operationId: restartContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: t + in: query + description: timeout before sending kill signal to container + required: false + style: form + explode: true + schema: + type: integer + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/start: + post: + tags: + - containers (compat) + summary: Start a container + operationId: startContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: detachKeys + in: query + description: 'Override the key sequence for detaching a container. Format + is a single character [a-Z] or ctrl- where is one of: a-z, + @, ^, [, , or _.' + required: false + style: form + explode: true + schema: + type: string + default: ctrl-p,ctrl-q + responses: + "204": + description: no error + content: {} + "304": + description: Container already started + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/stats: + get: + tags: + - containers (compat) + summary: Get stats for a container + description: This returns a live stream of a container’s resource usage statistics. + operationId: statsContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: stream + in: query + description: Stream the output + required: false + style: form + explode: true + schema: + type: boolean + default: true + responses: + "200": + description: OK + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/stop: + post: + tags: + - containers (compat) + summary: Stop a container + description: Stop a container + operationId: stopContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: t + in: query + description: number of seconds to wait before killing container + required: false + style: form + explode: true + schema: + type: integer + responses: + "204": + description: no error + content: {} + "304": + description: Container already stopped + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/top: + get: + tags: + - containers (compat) + summary: List processes running inside a container + operationId: topContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: ps_args + in: query + description: arguments to pass to ps such as aux. Requires ps(1) to be installed + in the container if no ps(1) compatible AIX descriptors are used. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: List processes in container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_2' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/unpause: + post: + tags: + - containers (compat) + summary: Unpause container + description: Resume a paused container + operationId: unpauseContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/{name}/wait: + post: + tags: + - containers (compat) + summary: Wait on a container + description: Block until a container stops or given condition is met. + operationId: waitContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: condition + in: query + description: | + wait until container is to a given condition. default is stopped. valid conditions are: + - configured + - created + - exited + - paused + - running + - stopped + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Wait container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_3' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/create: + post: + tags: + - containers (compat) + summary: Create a container + operationId: createContainer + parameters: + - name: name + in: query + description: container name + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: Create container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_201' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/json: + get: + tags: + - containers (compat) + summary: List containers + description: Returns a list of containers + operationId: listContainers + parameters: + - name: all + in: query + description: Return all containers. By default, only running containers are + shown + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: limit + in: query + description: Return this number of most recently created containers, including + non-running ones. + required: false + style: form + explode: true + schema: + type: integer + - name: size + in: query + description: Return the size of container as fields SizeRw and SizeRootFs. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: filters + in: query + description: | + Returns a list of containers. + - ancestor=([:], , or ) + - before=( or ) + - expose=([/]|/[]) + - exited= containers with exit code of + - health=(starting|healthy|unhealthy|none) + - id= a container's ID + - is-task=(true|false) + - label=key or label="key=value" of a container label + - name= a container's name + - network=( or ) + - publish=([/]|/[]) + - since=( or ) + - status=(created|restarting|running|removing|paused|exited|dead) + - volume=( or ) + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: List Containers + content: + application/json: + schema: + type: object + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /containers/prune: + post: + tags: + - containers (compat) + summary: Delete stopped containers + description: Remove containers not in use + operationId: pruneContainers + parameters: + - name: filters + in: query + description: | + Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: + - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. + - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Prune containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ContainersPruneReport' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /events: + get: + tags: + - system (compat) + summary: Get events + description: Returns events filtered on query parameters + operationId: getEvents + parameters: + - name: since + in: query + description: start streaming events from this time + required: false + style: form + explode: true + schema: + type: string + - name: until + in: query + description: stop streaming events later than this + required: false + style: form + explode: true + schema: + type: string + - name: filters + in: query + description: JSON encoded map[string][]string of constraints + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: returns a string of json data describing an event + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /exec/{id}/json: + get: + tags: + - exec (compat) + summary: Inspect an exec instance + description: Return low-level information about an exec instance. + operationId: inspectExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /exec/{id}/resize: + post: + tags: + - exec (compat) + summary: Resize an exec instance + description: | + Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + operationId: resizeExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + - name: h + in: query + description: Height of the TTY session in characters + required: false + style: form + explode: true + schema: + type: integer + - name: w + in: query + description: Width of the TTY session in characters + required: false + style: form + explode: true + schema: + type: integer + responses: + "201": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /exec/{id}/start: + post: + tags: + - exec (compat) + summary: Start an exec instance + description: Starts a previously set up exec instance. If detach is true, this + endpoint returns immediately after starting the command. Otherwise, it sets + up an interactive session with the command. + operationId: startExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + requestBody: + description: Attributes for start + content: + application/json: + schema: + $ref: '#/components/schemas/body_2' + application/x-tar: + schema: + $ref: '#/components/schemas/body_3' + required: false + responses: + "200": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: container is not running + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: control + /images/{name:.*}: + delete: + tags: + - images (compat) + summary: Remove Image + description: Delete an image from local storage + operationId: removeImage + parameters: + - name: name:.* + in: path + description: name or ID of image to delete + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: remove the image even if used by containers or has other tags + required: false + style: form + explode: true + schema: + type: boolean + - name: noprune + in: query + description: not supported. will be logged as an invalid parameter if enabled + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Delete response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/{name:.*}/get: + get: + tags: + - images (compat) + summary: Export an image + description: Export an image in tarball format + operationId: exportImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/{name:.*}/history: + get: + tags: + - images (compat) + summary: History of an image + description: Return parent layers of an image. + operationId: imageHistory + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: History response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_4' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/{name:.*}/json: + get: + tags: + - images (compat) + summary: Inspect an image + description: Return low-level information about an image. + operationId: inspectImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Inspect response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_5' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/{name:.*}/push: + post: + tags: + - images (compat) + summary: Push Image + description: Push an image to a container registry + operationId: pushImage + parameters: + - name: name:.* + in: path + description: Name of image to push. + required: true + style: simple + explode: false + schema: + type: string + - name: tag + in: query + description: The tag to associate with the image on the registry. + required: false + style: form + explode: true + schema: + type: string + - name: X-Registry-Auth + in: header + description: A base64-encoded auth configuration. + required: false + style: simple + explode: false + schema: + type: string + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/{name:.*}/tag: + post: + tags: + - images (compat) + summary: Tag an image + description: Tag an image so that it becomes part of a repository. + operationId: tagImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: repo + in: query + description: the repository to tag in + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: the name of the new tag + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/create: + post: + tags: + - images (compat) + summary: Create an image + description: Create an image by either pulling it from a registry or importing + it. + operationId: createImage + parameters: + - name: fromImage + in: query + description: needs description + required: false + style: form + explode: true + schema: + type: string + - name: fromSrc + in: query + description: needs description + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: needs description + required: false + style: form + explode: true + schema: + type: string + - name: X-Registry-Auth + in: header + description: A base64-encoded auth configuration. + required: false + style: simple + explode: false + schema: + type: string + requestBody: + description: Image content if fromSrc parameter was used + content: + application/json: + schema: + type: string + application/x-tar: + schema: + type: string + required: false + responses: + "200": + description: Success + content: + application/json: + schema: + type: object + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: request + /images/json: + get: + tags: + - images (compat) + summary: List Images + description: Returns a list of images on the server. Note that it uses a different, + smaller representation of an image than inspecting a single image. + operationId: listImages + parameters: + - name: all + in: query + description: Show all images. Only images from a final layer (no children) + are shown by default. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: filters + in: query + description: | + A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + - `before`=(`[:]`, `` or ``) + - `dangling=true` + - `label=key` or `label="key=value"` of an image label + - `reference`=(`[:]`) + - `since`=(`[:]`, `` or ``) + required: false + style: form + explode: true + schema: + type: string + - name: digests + in: query + description: Not supported + required: false + style: form + explode: true + schema: + type: boolean + default: false + responses: + "200": + description: Image summary + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageSummary' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/load: + post: + tags: + - images (compat) + summary: Import image + description: Load a set of images and tags into a repository. + operationId: importImage + parameters: + - name: quiet + in: query + description: not supported + required: false + style: form + explode: true + schema: + type: boolean + requestBody: + description: tarball of container image + content: + application/json: + schema: + type: string + application/x-tar: + schema: + type: string + required: false + responses: + "200": + description: no error + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: request + /images/prune: + post: + tags: + - images (compat) + summary: Prune unused images + description: Remove images from local storage that are not being used by a container + operationId: pruneImages + parameters: + - name: filters + in: query + description: | + filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: + - `dangling=` When set to `true` (or `1`), prune only + unused *and* untagged images. When set to `false` + (or `0`), all unused images are pruned. + - `until=` Prune images created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. + - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Delete response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /images/search: + get: + tags: + - images (compat) + summary: Search images + description: Search registries for an image + operationId: searchImages + parameters: + - name: term + in: query + description: term to search + required: false + style: form + explode: true + schema: + type: string + - name: limit + in: query + description: maximum number of results + required: false + style: form + explode: true + schema: + type: integer + - name: filters + in: query + description: | + A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + - `is-automated=(true|false)` + - `is-official=(true|false)` + - `stars=` Matches images that has at least 'number' stars. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Search results + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_6' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /info: + get: + tags: + - system (compat) + summary: Get info + description: Returns information on the system and libpod configuration + operationId: getInfo + responses: + "200": + description: to be determined + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/_ping: + get: + tags: + - system (compat) + - system + summary: Ping service + description: | + Return protocol information in response headers. + `HEAD /libpod/_ping` is also supported. + `/_ping` is available for compatibility with other engines. + The '_ping' endpoints are not versioned. + operationId: libpodPingGet + responses: + "200": + description: Success + headers: + Docker-Experimental: + description: If the server is running with experimental mode enabled, + always true + style: simple + explode: false + schema: + type: boolean + Cache-Control: + description: always no-cache + style: simple + explode: false + schema: + type: string + Libpod-API-Version: + description: | + Max Podman API Version the server supports. + Available if service is backed by Podman, therefore may be used to + determine if talking to Podman engine or another engine + style: simple + explode: false + schema: + type: string + BuildKit-Version: + description: Default version of docker image builder + style: simple + explode: false + schema: + type: string + Pragma: + description: always no-cache + style: simple + explode: false + schema: + type: string + Libpod-Buildha-Version: + description: | + Default version of libpod image builder. + Available if service is backed by Podman, therefore may be used to + determine if talking to Podman engine or another engine + style: simple + explode: false + schema: + type: string + API-Version: + description: Max compatibility API Version the server supports + style: simple + explode: false + schema: + type: string + content: + text/plain: + schema: + type: string + description: OK + example: OK + x-content-type: text/plain + "500": + description: Internal server error + content: + text/plain: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/build: + post: + tags: + - images + summary: Create image + description: Build an image from the given Dockerfile(s) + operationId: libpodBuildImage + parameters: + - name: dockerfile + in: query + description: | + Path within the build context to the `Dockerfile`. + This is ignored if remote is specified and points to an external `Dockerfile`. + required: false + style: form + explode: true + schema: + type: string + default: Dockerfile + - name: t + in: query + description: A name and optional tag to apply to the image in the `name:tag` + format. If you omit the tag the default latest value is assumed. You can + provide several t parameters. + required: false + style: form + explode: true + schema: + type: string + default: latest + - name: extrahosts + in: query + description: | + TBD Extra hosts to add to /etc/hosts + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: remote + in: query + description: | + A Git repository URI or HTTP/HTTPS context URI. + If the URI points to a single text file, the file’s contents are placed + into a file called Dockerfile and the image is built from that file. If + the URI points to a tarball, the file is downloaded by the daemon and the + contents therein used as the context for the build. If the URI points to a + tarball and the dockerfile parameter is also specified, there must be a file + with the corresponding path inside the tarball. + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: q + in: query + description: | + Suppress verbose build output + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: nocache + in: query + description: | + Do not use the cache when building the image + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: cachefrom + in: query + description: | + JSON array of images used to build cache resolution + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: pull + in: query + description: | + Attempt to pull the image even if an older image exists locally + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: rm + in: query + description: | + Remove intermediate containers after a successful build + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: forcerm + in: query + description: | + Always remove intermediate containers, even upon failure + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: memory + in: query + description: | + Memory is the upper limit (in bytes) on how much memory running containers can use + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: memswap + in: query + description: | + MemorySwap limits the amount of memory and swap together + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpushares + in: query + description: | + CPUShares (relative weight + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpusetcpus + in: query + description: | + CPUSetCPUs in which to allow execution (0-3, 0,1) + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: cpuperiod + in: query + description: | + CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: cpuquota + in: query + description: | + CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + - name: buildargs + in: query + description: | + JSON map of string pairs denoting build-time variables. + For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `["Foo":"bar"]`. + + For example, buildargs={"Foo":"bar"}. + + Note(s): + * This should not be used to pass secrets. + * The value of buildargs should be URI component encoded before being passed to the API. + + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: shmsize + in: query + description: | + ShmSize is the "size" value to use when mounting an shmfs on the container's /dev/shm directory. + Default is 64MB + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: integer + default: 67108864 + - name: squash + in: query + description: | + Silently ignored. + Squash the resulting images layers into a single layer + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: labels + in: query + description: | + JSON map of key, value pairs to set as labels on the new image + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: networkmode + in: query + description: | + Sets the networking mode for the run commands during build. + Supported standard values are: + * `bridge` limited to containers within a single host, port mapping required for external access + * `host` no isolation between host and containers on this network + * `none` disable all networking for this container + * container: share networking with given container + ---All other values are assumed to be a custom network's name + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + default: bridge + - name: platform + in: query + description: | + Platform format os[/arch[/variant]] + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: target + in: query + description: | + Target build stage + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: outputs + in: query + description: | + output configuration TBD + (As of version 1.xx) + required: false + style: form + explode: true + schema: + type: string + - name: httpproxy + in: query + description: | + Inject http proxy environment variables into container + (As of version 2.0.0) + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: OK (As of version 1.xx) + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/commit: + post: + tags: + - containers + summary: Commit + description: Create a new image from a container + operationId: libpodCommitContainer + parameters: + - name: container + in: query + description: the name or ID of a container + required: true + style: form + explode: true + schema: + type: string + - name: repo + in: query + description: the repository name for the created image + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: tag name for the created image + required: false + style: form + explode: true + schema: + type: string + - name: comment + in: query + description: commit message + required: false + style: form + explode: true + schema: + type: string + - name: author + in: query + description: author of the image + required: false + style: form + explode: true + schema: + type: string + - name: pause + in: query + description: pause the container before committing it + required: false + style: form + explode: true + schema: + type: boolean + - name: changes + in: query + description: instructions to apply while committing in Dockerfile format (i.e. + "CMD=/bin/foo") + required: false + style: form + explode: false + schema: + type: array + items: + type: string + - name: format + in: query + description: format of the image manifest and metadata (default "oci") + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: no error + content: {} + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name:.*}/healthcheck: + get: + tags: + - containers + summary: Run a container's healthcheck + description: Execute the defined healthcheck and return information about the + results + operationId: libpodRunHealthCheck + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Healthcheck + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_7' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: container has no healthcheck or is not running + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}: + delete: + tags: + - containers + summary: Delete container + description: Delete container + operationId: libpodRemoveContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: need something + required: false + style: form + explode: true + schema: + type: boolean + - name: v + in: query + description: delete volumes + required: false + style: form + explode: true + schema: + type: boolean + responses: + "204": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/attach: + post: + tags: + - containers + summary: Attach to a container + description: Hijacks the connection to forward the container's standard streams + to the client. + operationId: libpodAttachContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: detachKeys + in: query + description: keys to use for detaching from the container + required: false + style: form + explode: true + schema: + type: string + - name: logs + in: query + description: Stream all logs from the container across the connection. Happens + before streaming attach (if requested). At least one of logs or stream must + be set + required: false + style: form + explode: true + schema: + type: boolean + - name: stream + in: query + description: Attach to the container. If unset, and logs is set, only the + container's logs will be sent. At least one of stream or logs must be set + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: stdout + in: query + description: Attach to container STDOUT + required: false + style: form + explode: true + schema: + type: boolean + - name: stderr + in: query + description: Attach to container STDERR + required: false + style: form + explode: true + schema: + type: boolean + - name: stdin + in: query + description: Attach to container STDIN + required: false + style: form + explode: true + schema: + type: boolean + responses: + "101": + description: No error, connection has been hijacked for transporting streams. + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/changes: + get: + tags: + - containers + - containers (compat) + summary: Report on changes to container's filesystem; adds, deletes or modifications. + description: | + Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of: + + 0: Modified + 1: Added + 2: Deleted + operationId: changesContainer + parameters: + - name: name + in: path + description: the name or id of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Array of Changes + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + text/plain: + schema: + $ref: '#/components/schemas/inline_response_400' + text/html: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + text/plain: + schema: + $ref: '#/components/schemas/inline_response_400' + text/html: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/checkpoint: + post: + tags: + - containers + summary: Checkpoint a container + operationId: libpodCheckpointContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: keep + in: query + description: keep all temporary checkpoint files + required: false + style: form + explode: true + schema: + type: boolean + - name: leaveRunning + in: query + description: leave the container running after writing checkpoint to disk + required: false + style: form + explode: true + schema: + type: boolean + - name: tcpEstablished + in: query + description: checkpoint a container with established TCP connections + required: false + style: form + explode: true + schema: + type: boolean + - name: export + in: query + description: export the checkpoint image to a tar.gz + required: false + style: form + explode: true + schema: + type: boolean + - name: ignoreRootFS + in: query + description: do not include root file-system changes when exporting + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: tarball is returned in body if exported + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/copy: + get: + tags: + - containers (compat) + summary: Copy files from a container + description: Copy a tar archive of files from a container + operationId: libpodGetArchive + parameters: + - name: name + in: path + description: container name or id + required: true + style: simple + explode: false + schema: + type: string + - name: path + in: query + description: Path to a directory in the container to extract + required: true + style: form + explode: true + schema: + type: string + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + post: + tags: + - containers + summary: Copy files into a container + description: Copy a tar archive of files into a container + operationId: libpodPutArchive + parameters: + - name: name + in: path + description: container name or id + required: true + style: simple + explode: false + schema: + type: string + - name: path + in: query + description: Path to a directory in the container to extract + required: true + style: form + explode: true + schema: + type: string + - name: pause + in: query + description: pause the container while copying (defaults to true) + required: false + style: form + explode: true + schema: + type: boolean + default: true + requestBody: + description: tarfile of files to copy into the container + content: + application/json: + schema: + type: string + application/x-tar: + schema: + type: string + required: false + responses: + "200": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "403": + description: the container rootfs is read-only + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: request + /libpod/containers/{name}/exec: + post: + tags: + - exec + summary: Create an exec instance + description: Create an exec session to run a command inside a running container. + Exec sessions will be automatically removed 5 minutes after they exit. + operationId: libpodCreateExec + parameters: + - name: name + in: path + description: name of container + required: true + style: simple + explode: false + schema: + type: string + requestBody: + description: Attributes for create + content: + application/json: + schema: + $ref: '#/components/schemas/body_4' + application/x-tar: + schema: + $ref: '#/components/schemas/body_5' + required: false + responses: + "201": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: container is paused + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: control + /libpod/containers/{name}/exists: + get: + tags: + - containers + summary: Check if container exists + description: Quick way to determine if a container exists by name or ID + operationId: libpodContainerExists + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: container exists + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/export: + get: + tags: + - containers + summary: Export a container + description: Export the contents of a container as a tarball. + operationId: libpodExportContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: tarball is returned in body + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/init: + post: + tags: + - containers + summary: Initialize a container + description: Performs all tasks necessary for initializing the container but + does not start the container. + operationId: libpodInitContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "304": + description: container already initialized + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/json: + get: + tags: + - containers + summary: Inspect container + description: Return low-level information about a container. + operationId: libpodGetContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: size + in: query + description: display filesystem usage + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Inspect container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_8' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/kill: + post: + tags: + - containers + summary: Kill container + description: send a signal to a container, defaults to killing the container + operationId: libpodKillContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: signal + in: query + description: signal to be sent to container, either by integer or SIG_ name + required: false + style: form + explode: true + schema: + type: string + default: TERM + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/logs: + get: + tags: + - containers + summary: Get container logs + description: Get stdout and stderr logs from a container. + operationId: libpodLogsFromContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: follow + in: query + description: Keep connection after returning logs. + required: false + style: form + explode: true + schema: + type: boolean + - name: stdout + in: query + description: Return logs from stdout + required: false + style: form + explode: true + schema: + type: boolean + - name: stderr + in: query + description: Return logs from stderr + required: false + style: form + explode: true + schema: + type: boolean + - name: since + in: query + description: Only return logs since this time, as a UNIX timestamp + required: false + style: form + explode: true + schema: + type: string + - name: until + in: query + description: Only return logs before this time, as a UNIX timestamp + required: false + style: form + explode: true + schema: + type: string + - name: timestamps + in: query + description: Add timestamps to every log line + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: tail + in: query + description: Only return this number of log lines from the end of the logs + required: false + style: form + explode: true + schema: + type: string + default: all + responses: + "200": + description: logs returned as a stream in response body. + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/mount: + post: + tags: + - containers + summary: Mount a container + description: Mount a container to the filesystem + operationId: libpodMountContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: mounted container + content: + application/json: + schema: + type: string + description: id + example: /var/lib/containers/storage/overlay/f3f693bd88872a1e3193f4ebb925f4c282e8e73aadb8ab3e7492754dda3a02a4/merged + x-content-type: application/json + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/pause: + post: + tags: + - containers + summary: Pause a container + description: Use the cgroups freezer to suspend all processes in a container. + operationId: libpodPauseContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/resize: + post: + tags: + - containers + summary: Resize a container's TTY + description: Resize the terminal attached to a container (for use with Attach). + operationId: libpodResizeContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: h + in: query + description: Height to set for the terminal, in characters + required: false + style: form + explode: true + schema: + type: integer + - name: w + in: query + description: Width to set for the terminal, in characters + required: false + style: form + explode: true + schema: + type: integer + responses: + "200": + description: Success + content: + application/json: + schema: + type: object + x-content-type: application/json + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/restart: + post: + tags: + - containers + summary: Restart a container + operationId: libpodRestartContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: t + in: query + description: timeout before sending kill signal to container + required: false + style: form + explode: true + schema: + type: integer + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/restore: + post: + tags: + - containers + summary: Restore a container + description: Restore a container from a checkpoint. + operationId: libpodRestoreContainer + parameters: + - name: name + in: path + description: the name or id of the container + required: true + style: simple + explode: false + schema: + type: string + - name: name + in: query + description: the name of the container when restored from a tar. can only + be used with import + required: false + style: form + explode: true + schema: + type: string + - name: keep + in: query + description: keep all temporary checkpoint files + required: false + style: form + explode: true + schema: + type: boolean + - name: leaveRunning + in: query + description: leave the container running after writing checkpoint to disk + required: false + style: form + explode: true + schema: + type: boolean + - name: tcpEstablished + in: query + description: checkpoint a container with established TCP connections + required: false + style: form + explode: true + schema: + type: boolean + - name: import + in: query + description: import the restore from a checkpoint tar.gz + required: false + style: form + explode: true + schema: + type: boolean + - name: ignoreRootFS + in: query + description: do not include root file-system changes when exporting + required: false + style: form + explode: true + schema: + type: boolean + - name: ignoreStaticIP + in: query + description: ignore IP address if set statically + required: false + style: form + explode: true + schema: + type: boolean + - name: ignoreStaticMAC + in: query + description: ignore MAC address if set statically + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: tarball is returned in body if exported + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/start: + post: + tags: + - containers + summary: Start a container + operationId: libpodStartContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: detachKeys + in: query + description: 'Override the key sequence for detaching a container. Format + is a single character [a-Z] or ctrl- where is one of: a-z, + @, ^, [, , or _.' + required: false + style: form + explode: true + schema: + type: string + default: ctrl-p,ctrl-q + responses: + "204": + description: no error + content: {} + "304": + description: Container already started + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/stats: + get: + tags: + - containers + summary: Get stats for a container + description: DEPRECATED. This endpoint will be removed with the next major release. + Please use /libpod/containers/stats instead. + operationId: libpodStatsContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: stream + in: query + description: Stream the output + required: false + style: form + explode: true + schema: + type: boolean + default: true + responses: + "200": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/stop: + post: + tags: + - containers + summary: Stop a container + operationId: libpodStopContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: t + in: query + description: number of seconds to wait before killing container + required: false + style: form + explode: true + schema: + type: integer + responses: + "204": + description: no error + content: {} + "304": + description: Container already stopped + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/top: + get: + tags: + - containers + summary: List processes + description: List processes running inside a container + operationId: libpodTopContainer + parameters: + - name: name + in: path + description: | + Name of container to query for processes + (As of version 1.xx) + required: true + style: simple + explode: false + schema: + type: string + - name: stream + in: query + description: Stream the output + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: ps_args + in: query + description: arguments to pass to ps such as aux. Requires ps(1) to be installed + in the container if no ps(1) compatible AIX descriptors are used. + required: false + style: form + explode: true + schema: + type: string + default: -ef + responses: + "200": + description: List processes in container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_2' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/unmount: + post: + tags: + - containers + summary: Unmount a container + description: Unmount a container from the filesystem + operationId: libpodUnmountContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: ok + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/unpause: + post: + tags: + - containers + summary: Unpause Container + operationId: libpodUnpauseContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/{name}/wait: + post: + tags: + - containers + summary: Wait on a container + description: Wait on a container to met a given condition + operationId: libpodWaitContainer + parameters: + - name: name + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: condition + in: query + description: | + wait until container is to a given condition. default is stopped. valid conditions are: + - configured + - created + - exited + - paused + - running + - stopped + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Wait container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_3' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/create: + post: + tags: + - containers + summary: Create a container + operationId: libpodCreateContainer + requestBody: + description: attributes for creating a container + content: + application/json: + schema: + $ref: '#/components/schemas/SpecGenerator' + application/x-tar: + schema: + $ref: '#/components/schemas/SpecGenerator' + required: false + responses: + "201": + description: Create container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_201' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /libpod/containers/json: + get: + tags: + - containers + summary: List containers + description: Returns a list of containers + operationId: libpodListContainers + parameters: + - name: all + in: query + description: Return all containers. By default, only running containers are + shown + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: limit + in: query + description: Return this number of most recently created containers, including + non-running ones. + required: false + style: form + explode: true + schema: + type: integer + - name: pod + in: query + description: Ignored. Previously included details on pod name and ID that + are currently included by default. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: size + in: query + description: Return the size of container as fields SizeRw and SizeRootFs. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: sync + in: query + description: Sync container state with OCI runtime + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: filters + in: query + description: | + A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters: + - `ancestor`=(`[:]`, ``, or ``) + - `before`=(`` or ``) + - `expose`=(`[/]` or `/[]`) + - `exited=` containers with exit code of `` + - `health`=(`starting`, `healthy`, `unhealthy` or `none`) + - `id=` a container's ID + - `is-task`=(`true` or `false`) + - `label`=(`key` or `"key=value"`) of an container label + - `name=` a container's name + - `network`=(`` or ``) + - `publish`=(`[/]` or `/[]`) + - `since`=(`` or ``) + - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`) + - `volume`=(`` or ``) + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: List Containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ListContainer' + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/prune: + post: + tags: + - containers + summary: Delete stopped containers + description: Remove containers not in use + operationId: libpodPruneContainers + parameters: + - name: filters + in: query + description: | + Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: + - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. + - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Prune containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LibpodContainersPruneReport' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/showmounted: + get: + tags: + - containers + summary: Show mounted containers + description: Lists all mounted containers mount points + operationId: libpodShowMountedContainers + responses: + "200": + description: mounted containers + content: + application/json: + schema: + type: object + additionalProperties: + type: string + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/containers/stats: + get: + tags: + - containers + summary: Get stats for one or more containers + description: Return a live stream of resource usage statistics of one or more + container. If no container is specified, the statistics of all containers + are returned. + operationId: libpodStatsContainers + parameters: + - name: containers + in: query + description: names or IDs of containers + required: false + style: form + explode: false + schema: + type: array + items: + type: string + - name: stream + in: query + description: Stream the output + required: false + style: form + explode: true + schema: + type: boolean + default: true + responses: + "200": + description: no error + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/events: + get: + tags: + - system + summary: Get events + description: Returns events filtered on query parameters + operationId: libpodGetEvents + parameters: + - name: since + in: query + description: start streaming events from this time + required: false + style: form + explode: true + schema: + type: string + - name: until + in: query + description: stop streaming events later than this + required: false + style: form + explode: true + schema: + type: string + - name: filters + in: query + description: JSON encoded map[string][]string of constraints + required: false + style: form + explode: true + schema: + type: string + - name: stream + in: query + description: when false, do not follow events + required: false + style: form + explode: true + schema: + type: boolean + default: true + responses: + "200": + description: returns a string of json data describing an event + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/exec/{id}/json: + get: + tags: + - exec + summary: Inspect an exec instance + description: Return low-level information about an exec instance. + operationId: libpodInspectExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/exec/{id}/resize: + post: + tags: + - exec + summary: Resize an exec instance + description: | + Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + operationId: libpodResizeExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + - name: h + in: query + description: Height of the TTY session in characters + required: false + style: form + explode: true + schema: + type: integer + - name: w + in: query + description: Width of the TTY session in characters + required: false + style: form + explode: true + schema: + type: integer + responses: + "201": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/exec/{id}/start: + post: + tags: + - exec + summary: Start an exec instance + description: Starts a previously set up exec instance. If detach is true, this + endpoint returns immediately after starting the command. Otherwise, it sets + up an interactive session with the command. + operationId: libpodStartExec + parameters: + - name: id + in: path + description: Exec instance ID + required: true + style: simple + explode: false + schema: + type: string + requestBody: + description: Attributes for start + content: + application/json: + schema: + $ref: '#/components/schemas/body_6' + application/x-tar: + schema: + $ref: '#/components/schemas/body_7' + required: false + responses: + "200": + description: no error + content: {} + "404": + description: No such exec instance + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: container is not running. + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: control + /libpod/generate/{name:.*}/kube: + get: + tags: + - containers + - pods + summary: Generate a Kubernetes YAML file. + description: Generate Kubernetes YAML based on a pod or container. + operationId: libpodGenerateKube + parameters: + - name: name:.* + in: path + description: Name or ID of the container or pod. + required: true + style: simple + explode: false + schema: + type: string + - name: service + in: query + description: Generate YAML for a Kubernetes service object. + required: false + style: form + explode: true + schema: + type: boolean + default: false + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/generate/{name:.*}/systemd: + get: + tags: + - containers + - pods + summary: Generate Systemd Units + description: Generate Systemd Units based on a pod or container. + operationId: libpodGenerateSystemd + parameters: + - name: name:.* + in: path + description: Name or ID of the container or pod. + required: true + style: simple + explode: false + schema: + type: string + - name: useName + in: query + description: Use container/pod names instead of IDs. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: new + in: query + description: Create a new container instead of starting an existing one. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: time + in: query + description: Stop timeout override. + required: false + style: form + explode: true + schema: + type: integer + default: 10 + - name: restartPolicy + in: query + description: Systemd restart-policy. + required: false + style: form + explode: true + schema: + type: string + default: on-failure + enum: + - "no" + - on-success + - on-failure + - on-abnormal + - on-watchdog + - on-abort + - always + - name: containerPrefix + in: query + description: Systemd unit name prefix for containers. + required: false + style: form + explode: true + schema: + type: string + default: container + - name: podPrefix + in: query + description: Systemd unit name prefix for pods. + required: false + style: form + explode: true + schema: + type: string + default: pod + - name: separator + in: query + description: Systemd unit name separator between name/id and prefix. + required: false + style: form + explode: true + schema: + type: string + default: '-' + responses: + "200": + description: no error + content: + application/json: + schema: + type: object + additionalProperties: + type: string + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}: + delete: + tags: + - images + summary: Remove an image from the local storage. + description: Remove an image from the local storage. + operationId: libpodRemoveImage + parameters: + - name: name:.* + in: path + description: name or ID of image to remove + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: remove the image even if used by containers or has other tags + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Delete response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/exists: + get: + tags: + - images + summary: Image exists + description: Check if image exists in local store + operationId: libpodImageExists + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: image exists + content: {} + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/get: + get: + tags: + - images + summary: Export an image + description: Export an image + operationId: libpodExportImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: format + in: query + description: format for exported image + required: false + style: form + explode: true + schema: + type: string + - name: compress + in: query + description: use compression on image + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/history: + get: + tags: + - images + summary: History of an image + description: Return parent layers of an image. + operationId: libpodImageHistory + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: History response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_4' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/json: + get: + tags: + - images + summary: Inspect an image + description: Obtain low-level information about an image + operationId: libpodInspectImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Inspect image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_9' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/push: + post: + tags: + - images + summary: Push Image + description: Push an image to a container registry + operationId: libpodPushImage + parameters: + - name: name:.* + in: path + description: Name of image to push. + required: true + style: simple + explode: false + schema: + type: string + - name: destination + in: query + description: Allows for pushing the image to a different destintation than + the image refers to. + required: false + style: form + explode: true + schema: + type: string + - name: tlsVerify + in: query + description: Require TLS verification. + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: X-Registry-Auth + in: header + description: A base64-encoded auth configuration. + required: false + style: simple + explode: false + schema: + type: string + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/tag: + post: + tags: + - images + summary: Tag an image + description: Tag an image so that it becomes part of a repository. + operationId: libpodTagImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: repo + in: query + description: the repository to tag in + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: the name of the new tag + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/tree: + get: + tags: + - images + summary: Image tree + description: Retrieve the image tree for the provided image name or ID + operationId: libpodImageTree + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: whatrequires + in: query + description: show all child images and layers of the specified image + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Image tree response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_10' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name:.*}/untag: + post: + tags: + - images + summary: Untag an image + description: Untag an image. If not repo and tag are specified, all tags are + removed from the image. + operationId: libpodUntagImage + parameters: + - name: name:.* + in: path + description: the name or ID of the container + required: true + style: simple + explode: false + schema: + type: string + - name: repo + in: query + description: the repository to untag + required: false + style: form + explode: true + schema: + type: string + - name: tag + in: query + description: the name of the tag to untag + required: false + style: form + explode: true + schema: + type: string + responses: + "201": + description: no error + content: {} + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/{name}/changes: + get: + tags: + - images + summary: Report on changes to images's filesystem; adds, deletes or modifications. + description: | + Returns which files in a images's filesystem have been added, deleted, or modified. The Kind of modification can be one of: + + 0: Modified + 1: Added + 2: Deleted + operationId: libpodChangesImages + parameters: + - name: name + in: path + description: the name or id of the container + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Array of Changes + content: {} + "404": + description: No such container + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + text/plain: + schema: + $ref: '#/components/schemas/inline_response_400' + text/html: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + text/plain: + schema: + $ref: '#/components/schemas/inline_response_400' + text/html: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/export: + get: + tags: + - images + summary: Export multiple images + description: Export multiple images into a single object. Only `docker-archive` + is currently supported. + operationId: libpodExportImages + parameters: + - name: format + in: query + description: format for exported image (only docker-archive is supported) + required: false + style: form + explode: true + schema: + type: string + - name: references + in: query + description: references to images to export + required: false + style: form + explode: false + schema: + type: array + items: + type: string + - name: compress + in: query + description: use compression on image + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: no error + content: + application/json: + schema: + type: string + format: binary + x-content-type: application/json + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/import: + post: + tags: + - images + summary: Import image + description: Import a previously exported tarball as an image. + operationId: libpodImagesImport + parameters: + - name: changes + in: query + description: 'Apply the following possible instructions to the created image: + CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR. JSON + encoded string' + required: false + style: form + explode: false + schema: + type: array + items: + type: string + - name: message + in: query + description: Set commit message for imported image + required: false + style: form + explode: true + schema: + type: string + - name: reference + in: query + description: Optional Name[:TAG] for the image + required: false + style: form + explode: true + schema: + type: string + - name: url + in: query + description: Load image from the specified URL + required: false + style: form + explode: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/body_8' + application/x-tar: + schema: + $ref: '#/components/schemas/body_9' + required: true + responses: + "200": + description: Import response + content: + application/json: + schema: + $ref: '#/components/schemas/ImageImportReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/json: + get: + tags: + - images + summary: List Images + description: Returns a list of images on the server + operationId: libpodListImages + parameters: + - name: all + in: query + description: Show all images. Only images from a final layer (no children) + are shown by default. + required: false + style: form + explode: true + schema: + type: boolean + default: false + - name: filters + in: query + description: | + A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + - `before`=(`[:]`, `` or ``) + - `dangling=true` + - `label=key` or `label="key=value"` of an image label + - `reference`=(`[:]`) + - `id`=(``) + - `since`=(`[:]`, `` or ``) + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Image summary + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageSummary' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/load: + post: + tags: + - images + summary: Load image + description: Load an image (oci-archive or docker-archive) stream. + operationId: libpodImagesLoad + parameters: + - name: reference + in: query + description: Optional Name[:TAG] for the image + required: false + style: form + explode: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/body_10' + application/x-tar: + schema: + $ref: '#/components/schemas/body_11' + required: true + responses: + "200": + description: Load response + content: + application/json: + schema: + $ref: '#/components/schemas/ImageLoadReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/prune: + post: + tags: + - images + summary: Prune unused images + description: Remove images that are not being used by a container + operationId: libpodPruneImages + parameters: + - name: filters + in: query + description: | + filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: + - `dangling=` When set to `true` (or `1`), prune only + unused *and* untagged images. When set to `false` + (or `0`), all unused images are pruned. + - `until=` Prune images created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. + - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Delete response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/pull: + post: + tags: + - images + summary: Pull images + description: Pull one or more images from a container registry. + operationId: libpodImagesPull + parameters: + - name: reference + in: query + description: Mandatory reference to the image (e.g., quay.io/image/name:tag) + required: false + style: form + explode: true + schema: + type: string + - name: credentials + in: query + description: username:password for the registry + required: false + style: form + explode: true + schema: + type: string + - name: overrideArch + in: query + description: Pull image for the specified architecture. + required: false + style: form + explode: true + schema: + type: string + - name: overrideOS + in: query + description: Pull image for the specified operating system. + required: false + style: form + explode: true + schema: + type: string + - name: overrideVariant + in: query + description: Pull image for the specified variant. + required: false + style: form + explode: true + schema: + type: string + - name: tlsVerify + in: query + description: Require TLS verification. + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: allTags + in: query + description: Pull all tagged images in the repository. + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Pull response + content: + application/json: + schema: + $ref: '#/components/schemas/LibpodImagesPullReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/remove: + delete: + tags: + - images + summary: Remove one or more images from the storage. + description: Remove one or more images from the storage. + operationId: libpodImagesRemove + parameters: + - name: images + in: query + description: Images IDs or names to remove. + required: false + style: form + explode: false + schema: + type: array + items: + type: string + - name: all + in: query + description: Remove all images. + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: force + in: query + description: Force image removal (including containers using the images). + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Remove response + content: + application/json: + schema: + $ref: '#/components/schemas/LibpodImagesRemoveReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/images/search: + get: + tags: + - images + summary: Search images + description: Search registries for images + operationId: libpodSearchImages + parameters: + - name: term + in: query + description: term to search + required: false + style: form + explode: true + schema: + type: string + - name: limit + in: query + description: maximum number of results + required: false + style: form + explode: true + schema: + type: integer + - name: noTrunc + in: query + description: do not truncate any of the result strings + required: false + style: form + explode: true + schema: + type: boolean + - name: filters + in: query + description: | + A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + - `is-automated=(true|false)` + - `is-official=(true|false)` + - `stars=` Matches images that has at least 'number' stars. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Search results + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_6' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/info: + get: + tags: + - system + summary: Get info + description: Returns information on the system and libpod configuration + operationId: libpodGetInfo + responses: + "200": + description: Info + content: + application/json: + schema: + $ref: '#/components/schemas/Info' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/manifests/{name:.*}: + delete: + tags: + - manifests + summary: Remove + description: Remove an image from a manifest list + operationId: RemoveManifest + parameters: + - name: name:.* + in: path + description: the image associated with the manifest + required: true + style: simple + explode: false + schema: + type: string + - name: digest + in: query + description: image digest to be removed + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + $ref: '#/definitions/IDResponse' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such manifest + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/manifests/{name:.*}/add: + post: + tags: + - manifests + description: Add an image to a manifest list + operationId: AddManifest + parameters: + - name: name:.* + in: path + description: the name or ID of the manifest + required: true + style: simple + explode: false + schema: + type: string + requestBody: + description: options for creating a manifest + content: + application/json: + schema: + $ref: '#/components/schemas/ManifestAddOpts' + application/x-tar: + schema: + $ref: '#/components/schemas/ManifestAddOpts' + required: false + responses: + "200": + $ref: '#/definitions/IDResponse' + "404": + description: No such manifest + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: options + /libpod/manifests/{name:.*}/json: + get: + tags: + - manifests + summary: Inspect + description: Display a manifest list + operationId: Inspect + parameters: + - name: name:.* + in: path + description: the name or ID of the manifest + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Inspect Manifest + content: + application/json: + schema: + $ref: '#/components/schemas/List' + "404": + description: No such manifest + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/manifests/{name}/push: + post: + tags: + - manifests + summary: Push + description: Push a manifest list or image index to a registry + operationId: PushManifest + parameters: + - name: name + in: path + description: the name or ID of the manifest + required: true + style: simple + explode: false + schema: + type: string + - name: destination + in: query + description: the destination for the manifest + required: true + style: form + explode: true + schema: + type: string + - name: all + in: query + description: push all images + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + $ref: '#/definitions/IDResponse' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such manifest + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/manifests/create: + post: + tags: + - manifests + summary: Create + description: Create a manifest list + operationId: Create + parameters: + - name: name + in: query + description: manifest list name + required: true + style: form + explode: true + schema: + type: string + - name: image + in: query + description: name of the image + required: false + style: form + explode: true + schema: + type: string + - name: all + in: query + description: add all contents if given list + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + $ref: '#/definitions/IDResponse' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such image + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/networks/{name}: + delete: + tags: + - networks + summary: Remove a network + description: Remove a CNI configured network + operationId: libpodRemoveNetwork + parameters: + - name: name + in: path + description: the name of the network + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: remove containers associated with network + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Network rm + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkRmReport' + "404": + description: No such network + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/networks/{name}/json: + get: + tags: + - networks + summary: Inspect a network + description: Display low level configuration for a CNI network + operationId: libpodInspectNetwork + parameters: + - name: name + in: path + description: the name of the network + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Network inspect + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkInspectReport' + x-content-type: application/json + "404": + description: No such network + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/networks/create: + post: + tags: + - networks + summary: Create network + description: Create a new CNI network configuration + operationId: libpodCreateNetwork + parameters: + - name: name + in: query + description: optional name for new network + required: false + style: form + explode: true + schema: + type: string + requestBody: + description: attributes for creating a container + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreateOptions' + application/x-tar: + schema: + $ref: '#/components/schemas/NetworkCreateOptions' + required: false + responses: + "200": + description: Network create + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreateReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /libpod/networks/json: + get: + tags: + - networks + summary: List networks + description: Display summary of network configurations + operationId: libpodListNetwork + parameters: + - name: filter + in: query + description: Provide filter values (e.g. 'name=podman') + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Network list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkListReport' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/play/kube: + post: + tags: + - containers + - pods + summary: Play a Kubernetes YAML file. + description: Create and run pods based on a Kubernetes YAML file (pod or service + kind). + operationId: libpodPlayKube + parameters: + - name: network + in: query + description: Connect the pod to this network. + required: false + style: form + explode: true + schema: + type: string + - name: tlsVerify + in: query + description: Require HTTPS and verify signatures when contacting registries. + required: false + style: form + explode: true + schema: + type: boolean + default: true + requestBody: + description: Kubernetes YAML file. + content: + application/json: + schema: + type: string + application/x-tar: + schema: + type: string + required: false + responses: + "200": + description: PlayKube response + content: + application/json: + schema: + $ref: '#/components/schemas/PlayKubeReport' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: request + /libpod/pods/{name}: + delete: + tags: + - pods + summary: Remove pod + operationId: removePod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: force removal of a running pod by first stopping all containers, + then removing all containers in the pod + required: false + style: form + explode: true + schema: + type: boolean + responses: + "200": + description: Rm pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodRmReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/exists: + get: + tags: + - pods + summary: Pod exists + description: Check if a pod exists by name or ID + operationId: podExists + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: pod exists + content: {} + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/json: + get: + tags: + - pods + summary: Inspect pod + operationId: inspectPod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Inspect pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_11' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/kill: + post: + tags: + - pods + summary: Kill a pod + operationId: killPod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + - name: signal + in: query + description: signal to be sent to pod + required: false + style: form + explode: true + schema: + type: string + default: SIGKILL + responses: + "200": + description: Kill Pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodKillReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Conflict error in operation + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/pause: + post: + tags: + - pods + summary: Pause a pod + description: Pause a pod + operationId: pausePod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Pause pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodPauseReport' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/restart: + post: + tags: + - pods + summary: Restart a pod + operationId: restartPod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Restart pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodRestartReport' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/start: + post: + tags: + - pods + summary: Start a pod + operationId: startPod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Start pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodStartReport' + "304": + description: Pod already started + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/stop: + post: + tags: + - pods + summary: Stop a pod + operationId: stopPod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + - name: t + in: query + description: timeout + required: false + style: form + explode: true + schema: + type: integer + responses: + "200": + description: Stop pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodStopReport' + "304": + description: Pod already stopped + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/top: + get: + tags: + - pods + summary: List processes + description: List processes running inside a pod + operationId: topPod + parameters: + - name: name + in: path + description: | + Name of pod to query for processes + required: true + style: simple + explode: false + schema: + type: string + - name: stream + in: query + description: Stream the output + required: false + style: form + explode: true + schema: + type: boolean + default: true + - name: ps_args + in: query + description: arguments to pass to ps such as aux. Requires ps(1) to be installed + in the container if no ps(1) compatible AIX descriptors are used. + required: false + style: form + explode: true + schema: + type: string + default: -ef + responses: + "200": + description: List processes in pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_2' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/{name}/unpause: + post: + tags: + - pods + summary: Unpause a pod + operationId: unpausePod + parameters: + - name: name + in: path + description: the name or ID of the pod + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Unpause pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodUnpauseReport' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/create: + post: + tags: + - pods + summary: Create a pod + operationId: CreatePod + requestBody: + description: attributes for creating a pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodSpecGenerator' + application/x-tar: + schema: + $ref: '#/components/schemas/PodSpecGenerator' + required: false + responses: + "200": + $ref: '#/definitions/IdResponse' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /libpod/pods/json: + get: + tags: + - pods + summary: List pods + operationId: ListPods + parameters: + - name: filters + in: query + description: needs description and plumbing for filters + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: List pods + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ListPodsReport' + x-content-type: application/json + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/prune: + post: + tags: + - pods + summary: Prune unused pods + operationId: PrunePods + responses: + "200": + description: Prune pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodPruneReport' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: pod already exists + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/pods/stats: + get: + tags: + - pods + summary: Get stats for one or more pods + description: Display a live stream of resource usage statistics for the containers + in one or more pods + operationId: statsPod + parameters: + - name: all + in: query + description: Provide statistics for all running pods. + required: false + style: form + explode: true + schema: + type: boolean + - name: namesOrIDs + in: query + description: Names or IDs of pods. + required: false + style: form + explode: false + schema: + type: array + items: + type: string + responses: + "200": + description: List processes in pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_2' + "404": + description: No such pod + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/system/df: + get: + tags: + - system + summary: Show disk usage + description: Return information about disk usage for containers, images, and + volumes + operationId: df + responses: + "200": + description: Disk usage + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_12' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/system/prune: + post: + tags: + - system + summary: Prune unused data + operationId: pruneSystem + responses: + "200": + description: Prune report + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_13' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/version: + get: + tags: + - system + summary: Component Version information + operationId: SystemVersion + responses: + "200": + description: Version + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_14' + /libpod/volumes/{name}: + delete: + tags: + - volumes + summary: Remove volume + operationId: libpodRemoveVolume + parameters: + - name: name + in: path + description: the name or ID of the volume + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: force removal + required: false + style: form + explode: true + schema: + type: boolean + responses: + "204": + description: no error + content: {} + "404": + description: No such volume + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Volume is in use and cannot be removed + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/volumes/{name}/json: + get: + tags: + - volumes + summary: Inspect volume + operationId: libpodInspectVolume + parameters: + - name: name + in: path + description: the name or ID of the volume + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Volume create response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_15' + "404": + description: No such volume + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/volumes/create: + post: + tags: + - volumes + summary: Create a volume + operationId: libpodCreateVolume + requestBody: + description: attributes for creating a container + content: + application/json: + schema: + $ref: '#/components/schemas/VolumeCreate' + application/x-tar: + schema: + $ref: '#/components/schemas/VolumeCreate' + required: false + responses: + "201": + description: Volume create response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_15' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /libpod/volumes/json: + get: + tags: + - volumes + summary: List volumes + description: Returns a list of volumes + operationId: libpodListVolumes + parameters: + - name: filters + in: query + description: | + JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: + - driver= Matches volumes based on their driver. + - label= or label=: Matches volumes based on the presence of a label alone or a label and a value. + - name= Matches all of volume name. + - opt= Matches a storage driver options + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Volume list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Volume' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /libpod/volumes/prune: + post: + tags: + - volumes + summary: Prune volumes + operationId: libpodPruneVolumes + responses: + "200": + description: Volume prune response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /networks: + get: + tags: + - networks (compat) + summary: List networks + description: Display summary of network configurations + operationId: compatListNetwork + parameters: + - name: filters + in: query + description: JSON encoded value of the filters (a map[string][]string) to + process on the networks list. Only the name filter is supported. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Network list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkResource' + x-content-type: application/json + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /networks/{name}: + get: + tags: + - networks (compat) + summary: Inspect a network + description: Display low level configuration network + operationId: compatInspectNetwork + parameters: + - name: name + in: path + description: the name of the network + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: Network inspect + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkResource' + "404": + description: No such network + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + delete: + tags: + - networks (compat) + summary: Remove a network + description: Remove a network + operationId: compatRemoveNetwork + parameters: + - name: name + in: path + description: the name of the network + required: true + style: simple + explode: false + schema: + type: string + responses: + "204": + description: no error + content: {} + "404": + description: No such network + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /networks/create: + post: + tags: + - networks (compat) + summary: Create network + description: Create a network configuration + operationId: compatCreateNetwork + requestBody: + description: attributes for creating a container + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreateRequest' + application/x-tar: + schema: + $ref: '#/components/schemas/NetworkCreateRequest' + required: false + responses: + "200": + description: Network create + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_16' + "400": + description: Bad parameter in request + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /version: + get: + tags: + - system (compat) + summary: Component Version information + operationId: CompatSystemVersion + responses: + "200": + description: Version + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_14' + /volumes: + get: + tags: + - volumes (compat) + summary: List volumes + description: Returns a list of volume + operationId: listVolumes + parameters: + - name: filters + in: query + description: | + JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: + - driver= Matches volumes based on their driver. + - label= or label=: Matches volumes based on the presence of a label alone or a label and a value. + - name= Matches all of volume name. + + Note: + The boolean `dangling` filter is not yet implemented for this endpoint. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Volume list response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_17' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /volumes/{name}: + get: + tags: + - volumes (compat) + summary: Inspect volume + operationId: inspectVolume + parameters: + - name: name + in: path + description: the name or ID of the volume + required: true + style: simple + explode: false + schema: + type: string + responses: + "200": + description: This response definition is used for both the create and inspect + endpoints + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_18' + "404": + description: No such volume + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + delete: + tags: + - volumes (compat) + summary: Remove volume + operationId: removeVolume + parameters: + - name: name + in: path + description: the name or ID of the volume + required: true + style: simple + explode: false + schema: + type: string + - name: force + in: query + description: | + Force removal of the volume. This actually only causes errors due + to the names volume not being found to be suppressed, which is the + behaviour Docker implements. + required: false + style: form + explode: true + schema: + type: boolean + responses: + "204": + description: no error + content: {} + "404": + description: No such volume + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + "409": + description: Volume is in use and cannot be removed + content: {} + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + /volumes/create: + post: + tags: + - volumes (compat) + summary: Create a volume + operationId: createVolume + requestBody: + description: | + attributes for creating a container. + Note: If a volume by the same name exists, a 201 response with that volume's information will be generated. + content: + application/json: + schema: + $ref: '#/components/schemas/DockerVolumeCreate' + application/x-tar: + schema: + $ref: '#/components/schemas/DockerVolumeCreate' + required: false + responses: + "201": + description: This response definition is used for both the create and inspect + endpoints + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_18' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + x-codegen-request-body-name: create + /volumes/prune: + post: + tags: + - volumes (compat) + summary: Prune volumes + operationId: pruneVolumes + parameters: + - name: filters + in: query + description: | + JSON encoded value of filters (a map[string][]string) to match volumes against before pruning. + + Note: No filters are currently supported and any filters specified will cause an error response. + required: false + style: form + explode: true + schema: + type: string + responses: + "200": + description: Volume prune response + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_19' + "500": + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' +components: + schemas: + Address: + type: object + properties: + Addr: + type: string + PrefixLen: + type: integer + format: int64 + description: Address represents an IP address + example: + PrefixLen: 3 + Addr: Addr + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + AuthenticateOKBody: + required: + - IdentityToken + - Status + type: object + properties: + IdentityToken: + type: string + description: An opaque token used to authenticate a user after a successful + login + Status: + type: string + description: The status of the authentication + description: AuthenticateOKBody authenticate o k body + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/registry + AutoUserNsOptions: + title: AutoUserNsOptions defines how to automatically create a user namespace. + type: object + properties: + AdditionalGIDMappings: + type: array + description: |- + AdditionalGIDMappings specified additional GID mappings to include in + the generated user namespace. + items: + $ref: '#/components/schemas/IDMap' + AdditionalUIDMappings: + type: array + description: |- + AdditionalUIDMappings specified additional UID mappings to include in + the generated user namespace. + items: + $ref: '#/components/schemas/IDMap' + GroupFile: + type: string + description: GroupFile to use if the container uses a volume. + InitialSize: + type: integer + description: |- + InitialSize defines the minimum size for the user namespace. + The created user namespace will have at least this size. + format: uint32 + PasswdFile: + type: string + description: PasswdFile to use if the container uses a volume. + Size: + type: integer + description: |- + Size defines the size for the user namespace. If it is set to a + value bigger than 0, the user namespace will have exactly this size. + If it is not set, some heuristics will be used to find its size. + format: uint32 + x-go-package: github.com/containers/podman/vendor/github.com/containers/storage + CgroupConfig: + type: object + properties: + CgroupMode: + $ref: '#/components/schemas/CgroupMode' + CgroupParent: + type: string + Cgroupns: + type: string + Cgroups: + type: string + description: CgroupConfig configures the cgroup namespace for the container + x-go-package: github.com/containers/podman/pkg/spec + CgroupMode: + title: CgroupMode represents cgroup mode in the container. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + CgroupSpec: + title: CgroupSpec represents the cgroup to use for the container. + type: string + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + CgroupnsMode: + type: string + description: CgroupnsMode represents the cgroup namespace mode of the container + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + Change: + title: Change represents a change, it wraps the change type and path. + type: object + properties: + Kind: + $ref: '#/components/schemas/ChangeType' + Path: + type: string + description: |- + It describes changes of the files in the path respect to the + parent layers. The change could be modify, add, delete. + This is used for layer diff. + x-go-package: github.com/containers/podman/vendor/github.com/containers/storage/pkg/archive + ChangeType: + title: ChangeType represents the change type. + type: integer + format: int64 + x-go-package: github.com/containers/podman/vendor/github.com/containers/storage/pkg/archive + Config: + title: Config contains the configuration data about a container. + type: object + properties: + ArgsEscaped: + type: boolean + AttachStderr: + type: boolean + AttachStdin: + type: boolean + AttachStdout: + type: boolean + Cmd: + $ref: '#/components/schemas/StrSlice' + Domainname: + type: string + Entrypoint: + $ref: '#/components/schemas/StrSlice' + Env: + type: array + items: + type: string + ExposedPorts: + $ref: '#/components/schemas/PortSet' + Healthcheck: + $ref: '#/components/schemas/HealthConfig' + Hostname: + type: string + Image: + type: string + Labels: + type: object + additionalProperties: + type: string + MacAddress: + type: string + NetworkDisabled: + type: boolean + OnBuild: + type: array + items: + type: string + OpenStdin: + type: boolean + Shell: + $ref: '#/components/schemas/StrSlice' + StdinOnce: + type: boolean + StopSignal: + type: string + StopTimeout: + type: integer + format: int64 + Tty: + type: boolean + User: + type: string + Volumes: + type: object + additionalProperties: + type: object + properties: {} + example: {} + WorkingDir: + type: string + description: |- + It should hold only portable information about the container. + Here, "portable" means "independent from the host we are running on". + Non-portable information *should* appear in HostConfig. + All fields added to this struct must be marked `omitempty` to keep getting + predictable hashes from the old `v1Compatibility` configuration. + example: + User: User + OpenStdin: true + Env: + - Env + - Env + Image: Image + StdinOnce: true + AttachStdout: true + Shell: null + Volumes: + key: {} + AttachStdin: true + Domainname: Domainname + Tty: true + Cmd: + - Cmd + - Cmd + StopTimeout: 1 + StopSignal: StopSignal + Entrypoint: null + AttachStderr: true + ArgsEscaped: true + Hostname: Hostname + Labels: + key: Labels + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + MacAddress: MacAddress + NetworkDisabled: true + ExposedPorts: + key: {} + WorkingDir: WorkingDir + OnBuild: + - OnBuild + - OnBuild + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ConfigReference: + type: object + properties: + Network: + type: string + description: ConfigReference specifies the source which provides a network's + configuration + example: + Network: Network + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + ConmonInfo: + type: object + properties: + package: + type: string + x-go-name: Package + path: + type: string + x-go-name: Path + version: + type: string + x-go-name: Version + description: ConmonInfo describes the conmon executable being used + example: + path: path + package: package + version: version + x-go-package: github.com/containers/podman/libpod/define + ContainerBasicConfig: + title: ContainerBasicConfig contains the basic parts of a container. + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + description: |- + Annotations are key-value options passed into the container runtime + that can be used to trigger special behavior. + Optional. + x-go-name: Annotations + command: + type: array + description: |- + Command is the container's command. + If not given and Image is specified, this will be populated by the + image's configuration. + Optional. + items: + type: string + x-go-name: Command + conmon_pid_file: + type: string + description: |- + ConmonPidFile is a path at which a PID file for Conmon will be + placed. + If not given, a default location will be used. + Optional. + x-go-name: ConmonPidFile + containerCreateCommand: + type: array + description: |- + ContainerCreateCommand is the command that was used to create this + container. + This will be shown in the output of Inspect() on the container, and + may also be used by some tools that wish to recreate the container + (e.g. `podman generate systemd --new`). + Optional. + items: + type: string + x-go-name: ContainerCreateCommand + entrypoint: + type: array + description: |- + Entrypoint is the container's entrypoint. + If not given and Image is specified, this will be populated by the + image's configuration. + Optional. + items: + type: string + x-go-name: Entrypoint + env: + type: object + additionalProperties: + type: string + description: |- + Env is a set of environment variables that will be set in the + container. + Optional. + x-go-name: Env + env_host: + type: boolean + description: |- + EnvHost indicates that the host environment should be added to container + Optional. + x-go-name: EnvHost + hostname: + type: string + description: |- + Hostname is the container's hostname. If not set, the hostname will + not be modified (if UtsNS is not private) or will be set to the + container ID (if UtsNS is private). + Conflicts with UtsNS if UtsNS is not set to private. + Optional. + x-go-name: Hostname + httpproxy: + type: boolean + description: |- + EnvHTTPProxy indicates that the http host proxy environment variables + should be added to container + Optional. + x-go-name: HTTPProxy + labels: + type: object + additionalProperties: + type: string + description: |- + Labels are key-value pairs that are used to add metadata to + containers. + Optional. + x-go-name: Labels + log_configuration: + $ref: '#/components/schemas/LogConfig' + name: + type: string + description: |- + Name is the name the container will be given. + If no name is provided, one will be randomly generated. + Optional. + x-go-name: Name + namespace: + type: string + description: |- + Namespace is the libpod namespace the container will be placed in. + Optional. + x-go-name: Namespace + oci_runtime: + type: string + description: |- + OCIRuntime is the name of the OCI runtime that will be used to create + the container. + If not specified, the default will be used. + Optional. + x-go-name: OCIRuntime + pidns: + $ref: '#/components/schemas/Namespace' + pod: + type: string + description: |- + Pod is the ID of the pod the container will join. + Optional. + x-go-name: Pod + raw_image_name: + type: string + description: |- + RawImageName is the user-specified and unprocessed input referring + to a local or a remote image. + x-go-name: RawImageName + remove: + type: boolean + description: |- + Remove indicates if the container should be removed once it has been started + and exits + x-go-name: Remove + restart_policy: + type: string + description: |- + RestartPolicy is the container's restart policy - an action which + will be taken when the container exits. + If not given, the default policy, which does nothing, will be used. + Optional. + x-go-name: RestartPolicy + restart_tries: + type: integer + description: |- + RestartRetries is the number of attempts that will be made to restart + the container. + Only available when RestartPolicy is set to "on-failure". + Optional. + format: uint64 + x-go-name: RestartRetries + sdnotifyMode: + type: string + description: |- + Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through + "container" - let the OCI runtime deal with it, advertise conmon's MAINPID + "conmon-only" - advertise conmon's MAINPID, send READY when started, don't pass to OCI + "ignore" - unset NOTIFY_SOCKET + x-go-name: SdNotifyMode + stdin: + type: boolean + description: Stdin is whether the container will keep its STDIN open. + x-go-name: Stdin + stop_signal: + $ref: '#/components/schemas/Signal' + stop_timeout: + type: integer + description: |- + StopTimeout is a timeout between the container's stop signal being + sent and SIGKILL being sent. + If not provided, the default will be used. + If 0 is used, stop signal will not be sent, and SIGKILL will be sent + instead. + Optional. + format: uint64 + x-go-name: StopTimeout + sysctl: + type: object + additionalProperties: + type: string + description: Sysctl sets kernel parameters for the container + x-go-name: Sysctl + systemd: + type: string + description: |- + Systemd is whether the container will be started in systemd mode. + Valid options are "true", "false", and "always". + "true" enables this mode only if the binary run in the container is + sbin/init or systemd. "always" unconditionally enables systemd mode. + "false" unconditionally disables systemd mode. + If enabled, mounts and stop signal will be modified. + If set to "always" or set to "true" and conditionally triggered, + conflicts with StopSignal. + If not specified, "false" will be assumed. + Optional. + x-go-name: Systemd + terminal: + type: boolean + description: |- + Terminal is whether the container will create a PTY. + Optional. + x-go-name: Terminal + timezone: + type: string + description: |- + Timezone is the timezone inside the container. + Local means it has the same timezone as the host machine + x-go-name: Timezone + utsns: + $ref: '#/components/schemas/Namespace' + x-go-package: github.com/containers/podman/pkg/specgen + ContainerCgroupConfig: + type: object + properties: + cgroup_parent: + type: string + description: |- + CgroupParent is the container's CGroup parent. + If not set, the default for the current cgroup driver will be used. + Optional. + x-go-name: CgroupParent + cgroupns: + $ref: '#/components/schemas/Namespace' + cgroups_mode: + type: string + description: |- + CgroupsMode sets a policy for how cgroups will be created in the + container, including the ability to disable creation entirely. + x-go-name: CgroupsMode + description: |- + ContainerCgroupConfig contains configuration information about a container's + cgroups. + x-go-package: github.com/containers/podman/pkg/specgen + ContainerChangeResponseItem: + required: + - Kind + - Path + type: object + properties: + Kind: + type: integer + description: Kind of change + format: uint8 + Path: + type: string + description: Path to file that has changed + description: ContainerChangeResponseItem change item in response to ContainerChanges + operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainerCreateCreatedBody: + required: + - Id + - Warnings + type: object + properties: + Id: + type: string + description: The ID of the created container + x-go-name: ID + Warnings: + type: array + description: Warnings encountered when creating the container + items: + type: string + description: ContainerCreateCreatedBody OK response to ContainerCreate operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainerHealthCheckConfig: + type: object + properties: + healthconfig: + $ref: '#/components/schemas/Schema2HealthConfig' + description: |- + ContainerHealthCheckConfig describes a container healthcheck with attributes + like command, retries, interval, start period, and timeout. + x-go-package: github.com/containers/podman/pkg/specgen + ContainerNamedVolume: + type: object + properties: + dest: + type: string + description: Dest is the mount's destination + x-go-name: Dest + options: + type: array + description: Options are fstab style mount options + items: + type: string + x-go-name: Options + volumeName: + type: string + description: |- + Name is the name of the volume to mount in. + Must resolve to a valid volume present in this Podman. + x-go-name: Name + description: |- + ContainerNamedVolume is a named volume that will be mounted into the + container. Each named volume is a libpod Volume present in the state. + x-go-package: github.com/containers/podman/libpod + ContainerNetworkConfig: + type: object + properties: + cni_networks: + type: array + description: |- + CNINetworks is a list of CNI networks to join the container to. + If this list is empty, the default CNI network will be joined + instead. If at least one entry is present, we will not join the + default network (unless it is part of this list). + Only available if NetNS is set to bridge. + Optional. + items: + type: string + x-go-name: CNINetworks + dns_option: + type: array + description: |- + DNSOptions is a set of DNS options that will be used in the + container's resolv.conf, replacing the host's DNS options which are + used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + type: string + x-go-name: DNSOptions + dns_search: + type: array + description: |- + DNSSearch is a set of DNS search domains that will be used in the + container's resolv.conf, replacing the host's DNS search domains + which are used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + type: string + x-go-name: DNSSearch + dns_server: + type: array + description: |- + DNSServers is a set of DNS servers that will be used in the + container's resolv.conf, replacing the host's DNS Servers which are + used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + $ref: '#/components/schemas/IP' + x-go-name: DNSServers + expose: + type: object + description: |- + Expose is a number of ports that will be forwarded to the container + if PublishExposedPorts is set. + Expose is a map of uint16 (port number) to a string representing + protocol. Allowed protocols are "tcp", "udp", and "sctp", or some + combination of the three separated by commas. + If protocol is set to "" we will assume TCP. + Only available if NetNS is set to Bridge or Slirp, and + PublishExposedPorts is set. + Optional. + x-go-name: Expose + hostadd: + type: array + description: |- + HostAdd is a set of hosts which will be added to the container's + etc/hosts file. + Conflicts with UseImageHosts. + Optional. + items: + type: string + x-go-name: HostAdd + netns: + $ref: '#/components/schemas/Namespace' + network_options: + type: object + additionalProperties: + type: array + items: + type: string + description: |- + NetworkOptions are additional options for each network + Optional. + x-go-name: NetworkOptions + portmappings: + type: array + description: |- + PortBindings is a set of ports to map into the container. + Only available if NetNS is set to bridge or slirp. + Optional. + items: + $ref: '#/components/schemas/PortMapping' + x-go-name: PortMappings + publish_image_ports: + type: boolean + description: |- + PublishExposedPorts will publish ports specified in the image to + random unused ports (guaranteed to be above 1024) on the host. + This is based on ports set in Expose below, and any ports specified + by the Image (if one is given). + Only available if NetNS is set to Bridge or Slirp. + x-go-name: PublishExposedPorts + static_ip: + $ref: '#/components/schemas/IP' + static_ipv6: + $ref: '#/components/schemas/IP' + static_mac: + $ref: '#/components/schemas/HardwareAddr' + use_image_hosts: + type: boolean + description: |- + UseImageHosts indicates that /etc/hosts should not be managed by + Podman, and instead sourced from the image. + Conflicts with HostAdd. + x-go-name: UseImageHosts + use_image_resolve_conf: + type: boolean + description: |- + UseImageResolvConf indicates that resolv.conf should not be managed + by Podman, but instead sourced from the image. + Conflicts with DNSServer, DNSSearch, DNSOption. + x-go-name: UseImageResolvConf + description: |- + ContainerNetworkConfig contains information on a container's network + configuration. + x-go-package: github.com/containers/podman/pkg/specgen + ContainerNode: + type: object + properties: + Addr: + type: string + Cpus: + type: integer + format: int64 + ID: + type: string + IP: + type: string + x-go-name: IPAddress + Labels: + type: object + additionalProperties: + type: string + Memory: + type: integer + format: int64 + Name: + type: string + description: |- + ContainerNode stores information about the node that a container + is running on. It's only used by the Docker Swarm standalone API + example: + Memory: 0 + IP: IP + Labels: + key: Labels + Cpus: 7 + ID: ID + Addr: Addr + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + ContainerResourceConfig: + title: ContainerResourceConfig contains information on container resource limits. + type: object + properties: + oom_score_adj: + type: integer + description: |- + OOMScoreAdj adjusts the score used by the OOM killer to determine + processes to kill for the container's process. + Optional. + format: int64 + x-go-name: OOMScoreAdj + r_limits: + type: array + description: |- + Rlimits are POSIX rlimits to apply to the container. + Optional. + items: + $ref: '#/components/schemas/POSIXRlimit' + x-go-name: Rlimits + resource_limits: + $ref: '#/components/schemas/LinuxResources' + throttleReadBpsDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO read rate limit per cgroup per device, bytes per second + x-go-name: ThrottleReadBpsDevice + throttleReadIOPSDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO read rate limit per cgroup per device, IO per second + x-go-name: ThrottleReadIOPSDevice + throttleWriteBpsDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO write rate limit per cgroup per device, bytes per second + x-go-name: ThrottleWriteBpsDevice + throttleWriteIOPSDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO write rate limit per cgroup per device, IO per second + x-go-name: ThrottleWriteIOPSDevice + unified: + type: object + additionalProperties: + type: string + description: |- + CgroupConf are key-value options passed into the container runtime + that are used to configure cgroup v2. + Optional. + x-go-name: CgroupConf + weightDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxWeightDevice' + description: Weight per cgroup per device, can override BlkioWeight + x-go-name: WeightDevice + x-go-package: github.com/containers/podman/pkg/specgen + ContainerSecurityConfig: + type: object + properties: + apparmor_profile: + type: string + description: |- + ApparmorProfile is the name of the Apparmor profile the container + will use. + Optional. + x-go-name: ApparmorProfile + cap_add: + type: array + description: |- + CapAdd are capabilities which will be added to the container. + Conflicts with Privileged. + Optional. + items: + type: string + x-go-name: CapAdd + cap_drop: + type: array + description: |- + CapDrop are capabilities which will be removed from the container. + Conflicts with Privileged. + Optional. + items: + type: string + x-go-name: CapDrop + groups: + type: array + description: |- + Groups are a list of supplemental groups the container's user will + be granted access to. + Optional. + items: + type: string + x-go-name: Groups + idmappings: + $ref: '#/components/schemas/IDMappingOptions' + no_new_privileges: + type: boolean + description: |- + NoNewPrivileges is whether the container will set the no new + privileges flag on create, which disables gaining additional + privileges (e.g. via setuid) in the container. + x-go-name: NoNewPrivileges + privileged: + type: boolean + description: |- + Privileged is whether the container is privileged. + Privileged does the following: + Adds all devices on the system to the container. + Adds all capabilities to the container. + Disables Seccomp, SELinux, and Apparmor confinement. + (Though SELinux can be manually re-enabled). + TODO: this conflicts with things. + TODO: this does more. + x-go-name: Privileged + procfs_opts: + type: array + description: ProcOpts are the options used for the proc mount. + items: + type: string + x-go-name: ProcOpts + read_only_filesystem: + type: boolean + description: |- + ReadOnlyFilesystem indicates that everything will be mounted + as read-only + x-go-name: ReadOnlyFilesystem + seccomp_policy: + type: string + description: |- + SeccompPolicy determines which seccomp profile gets applied + the container. valid values: empty,default,image + x-go-name: SeccompPolicy + seccomp_profile_path: + type: string + description: |- + SeccompProfilePath is the path to a JSON file containing the + container's Seccomp profile. + If not specified, no Seccomp profile will be used. + Optional. + x-go-name: SeccompProfilePath + selinux_opts: + type: array + description: |- + SelinuxProcessLabel is the process label the container will use. + If SELinux is enabled and this is not specified, a label will be + automatically generated if not specified. + Optional. + items: + type: string + x-go-name: SelinuxOpts + umask: + type: string + description: Umask is the umask the init process of the container will be + run with. + x-go-name: Umask + user: + type: string + description: |- + User is the user the container will be run as. + Can be given as a UID or a username; if a username, it will be + resolved within the container, using the container's /etc/passwd. + If unset, the container will be run as root. + Optional. + x-go-name: User + userns: + $ref: '#/components/schemas/Namespace' + description: |- + ContainerSecurityConfig is a container's security features, including + SELinux, Apparmor, and Seccomp. + x-go-package: github.com/containers/podman/pkg/specgen + ContainerSize: + type: object + properties: + rootFsSize: + type: integer + format: int64 + x-go-name: RootFsSize + rwSize: + type: integer + format: int64 + x-go-name: RwSize + description: |- + ContainerSize holds the size of the container's root filesystem and top + read-write layer. + example: + rootFsSize: 9 + rwSize: 3 + x-go-package: github.com/containers/podman/pkg/ps/define + ContainerState: + type: object + properties: + Dead: + type: boolean + Error: + type: string + ExitCode: + type: integer + format: int64 + FinishedAt: + type: string + Health: + $ref: '#/components/schemas/Health' + OOMKilled: + type: boolean + Paused: + type: boolean + Pid: + type: integer + format: int64 + Restarting: + type: boolean + Running: + type: boolean + StartedAt: + type: string + Status: + type: string + description: |- + ContainerState stores container's running state + it's part of ContainerJSONBase and will return by "inspect" command + example: + Status: Status + Restarting: true + Dead: true + Health: + Status: Status + Log: + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + FailingStreak: 8 + ExitCode: 4 + Running: true + Error: Error + FinishedAt: FinishedAt + OOMKilled: true + Pid: 3 + StartedAt: StartedAt + Paused: true + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + ContainerStorageConfig: + type: object + properties: + devices: + type: array + description: |- + Devices are devices that will be added to the container. + Optional. + items: + $ref: '#/components/schemas/LinuxDevice' + x-go-name: Devices + image: + type: string + description: |- + Image is the image the container will be based on. The image will be + used as the container's root filesystem, and its environment vars, + volumes, and other configuration will be applied to the container. + Conflicts with Rootfs. + At least one of Image or Rootfs must be specified. + x-go-name: Image + image_volume_mode: + type: string + description: |- + ImageVolumeMode indicates how image volumes will be created. + Supported modes are "ignore" (do not create), "tmpfs" (create as + tmpfs), and "anonymous" (create as anonymous volumes). + The default if unset is anonymous. + Optional. + x-go-name: ImageVolumeMode + init: + type: boolean + description: |- + Init specifies that an init binary will be mounted into the + container, and will be used as PID1. + x-go-name: Init + init_path: + type: string + description: |- + InitPath specifies the path to the init binary that will be added if + Init is specified above. If not specified, the default set in the + Libpod config will be used. Ignored if Init above is not set. + Optional. + x-go-name: InitPath + ipcns: + $ref: '#/components/schemas/Namespace' + mounts: + type: array + description: |- + Mounts are mounts that will be added to the container. + These will supersede Image Volumes and VolumesFrom volumes where + there are conflicts. + Optional. + items: + $ref: '#/components/schemas/Mount' + x-go-name: Mounts + overlay_volumes: + type: array + description: |- + Overlay volumes are named volumes that will be added to the container. + Optional. + items: + $ref: '#/components/schemas/OverlayVolume' + x-go-name: OverlayVolumes + rootfs: + type: string + description: |- + Rootfs is the path to a directory that will be used as the + container's root filesystem. No modification will be made to the + directory, it will be directly mounted into the container as root. + Conflicts with Image. + At least one of Image or Rootfs must be specified. + x-go-name: Rootfs + rootfs_propagation: + type: string + description: |- + RootfsPropagation is the rootfs propagation mode for the container. + If not set, the default of rslave will be used. + Optional. + x-go-name: RootfsPropagation + shm_size: + type: integer + description: |- + ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. + Conflicts with ShmSize if IpcNS is not private. + Optional. + format: int64 + x-go-name: ShmSize + volumes: + type: array + description: |- + Volumes are named volumes that will be added to the container. + These will supersede Image Volumes and VolumesFrom volumes where + there are conflicts. + Optional. + items: + $ref: '#/components/schemas/NamedVolume' + x-go-name: Volumes + volumes_from: + type: array + description: |- + VolumesFrom is a set of containers whose volumes will be added to + this container. The name or ID of the container must be provided, and + may optionally be followed by a : and then one or more + comma-separated options. Valid options are 'ro', 'rw', and 'z'. + Options will be used for all volumes sourced from the container. + items: + type: string + x-go-name: VolumesFrom + work_dir: + type: string + description: |- + WorkDir is the container's working directory. + If unset, the default, /, will be used. + Optional. + x-go-name: WorkDir + description: |- + ContainerStorageConfig contains information on the storage configuration of a + container. + x-go-package: github.com/containers/podman/pkg/specgen + ContainerStore: + type: object + properties: + number: + type: integer + format: int64 + x-go-name: Number + paused: + type: integer + format: int64 + x-go-name: Paused + running: + type: integer + format: int64 + x-go-name: Running + stopped: + type: integer + format: int64 + x-go-name: Stopped + description: |- + ContainerStore describes the quantity of containers in the + store by status + example: + running: 4 + number: 3 + paused: 2 + stopped: 7 + x-go-package: github.com/containers/podman/libpod/define + ContainerTopOKBody: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + description: ContainerTopOKBody OK response to ContainerTop operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainerUpdateOKBody: + required: + - Warnings + type: object + properties: + Warnings: + type: array + description: warnings + items: + type: string + description: ContainerUpdateOKBody OK response to ContainerUpdate operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainerWaitOKBody: + required: + - Error + - StatusCode + type: object + properties: + Error: + $ref: '#/components/schemas/ContainerWaitOKBodyError' + StatusCode: + type: integer + description: Exit code of the container + format: int64 + description: ContainerWaitOKBody OK response to ContainerWait operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainerWaitOKBodyError: + type: object + properties: + Message: + type: string + description: Details of an error + description: ContainerWaitOKBodyError container waiting error, if any + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + ContainersPruneReport: + type: object + properties: + ContainersDeleted: + type: array + items: + type: string + SpaceReclaimed: + type: integer + format: uint64 + example: + SpaceReclaimed: 0 + ContainersDeleted: + - ContainersDeleted + - ContainersDeleted + x-go-package: github.com/containers/podman/pkg/api/handlers + CreateConfig: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + Args: + type: array + items: + type: string + BuiltinImgVolumes: + type: object + additionalProperties: + type: object + properties: {} + Cgroup: + $ref: '#/components/schemas/CgroupConfig' + CidFile: + type: string + Command: + type: array + items: + type: string + ConmonPidFile: + type: string + Detach: + type: boolean + Devices: + type: array + items: + type: string + Entrypoint: + type: array + items: + type: string + Env: + type: object + additionalProperties: + type: string + HealthCheck: + $ref: '#/components/schemas/Schema2HealthConfig' + Image: + type: string + ImageID: + type: string + ImageVolumeType: + type: string + Init: + type: boolean + InitPath: + type: string + Interactive: + type: boolean + Ipc: + $ref: '#/components/schemas/IpcConfig' + Labels: + type: object + additionalProperties: + type: string + LogDriver: + type: string + LogDriverOpt: + type: array + items: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/Mount' + MountsFlag: + type: array + items: + type: string + Name: + type: string + NamedVolumes: + type: array + items: + $ref: '#/components/schemas/ContainerNamedVolume' + Network: + $ref: '#/components/schemas/NetworkConfig' + Pid: + $ref: '#/components/schemas/PidConfig' + Pod: + type: string + PodmanPath: + type: string + Quiet: + type: boolean + RawImageName: + type: string + Resources: + $ref: '#/components/schemas/CreateResourceConfig' + RestartPolicy: + type: string + Rm: + type: boolean + Rmi: + type: boolean + Rootfs: + type: string + Security: + $ref: '#/components/schemas/SecurityConfig' + StopSignal: + $ref: '#/components/schemas/Signal' + StopTimeout: + type: integer + format: uint64 + Syslog: + type: boolean + Systemd: + type: boolean + Tmpfs: + type: array + items: + type: string + Tty: + type: boolean + User: + $ref: '#/components/schemas/UserConfig' + UserCommand: + type: array + items: + type: string + Uts: + $ref: '#/components/schemas/UtsConfig' + Volumes: + type: array + items: + type: string + VolumesFrom: + type: array + items: + type: string + WorkDir: + type: string + description: CreateConfig is a pre OCI spec structure. It represents user input + from varlink or the CLI + x-go-package: github.com/containers/podman/pkg/spec + CreateResourceConfig: + type: object + properties: + BlkioWeight: + type: integer + format: uint16 + BlkioWeightDevice: + type: array + items: + type: string + CPUPeriod: + type: integer + format: uint64 + CPUQuota: + type: integer + format: int64 + CPURtPeriod: + type: integer + format: uint64 + CPURtRuntime: + type: integer + format: int64 + CPUShares: + type: integer + format: uint64 + CPUs: + type: number + format: double + CPUsetCPUs: + type: string + CPUsetMems: + type: string + CgroupConf: + type: object + additionalProperties: + type: string + DeviceCgroupRules: + type: array + items: + type: string + DeviceReadBps: + type: array + items: + type: string + DeviceReadIOps: + type: array + items: + type: string + DeviceWriteBps: + type: array + items: + type: string + DeviceWriteIOps: + type: array + items: + type: string + DisableOomKiller: + type: boolean + KernelMemory: + type: integer + format: int64 + Memory: + type: integer + format: int64 + MemoryReservation: + type: integer + format: int64 + MemorySwap: + type: integer + format: int64 + MemorySwappiness: + type: integer + format: int64 + OomScoreAdj: + type: integer + format: int64 + PidsLimit: + type: integer + format: int64 + ShmSize: + type: integer + format: int64 + Ulimit: + type: array + items: + type: string + description: |- + CreateResourceConfig represents resource elements in CreateConfig + structures + x-go-package: github.com/containers/podman/pkg/spec + Data: + type: object + properties: + Data: + type: object + additionalProperties: + type: string + Name: + type: string + description: Data handles the data for a storage driver + example: + Data: + key: Data + Name: Name + x-go-package: github.com/containers/podman/libpod/driver + DeviceMapping: + title: DeviceMapping represents the device mapping between the host and the + container. + type: object + properties: + CgroupPermissions: + type: string + PathInContainer: + type: string + PathOnHost: + type: string + example: + CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + DeviceRequest: + title: DeviceRequest represents a request for devices from a device driver. + type: object + properties: + Capabilities: + type: array + items: + type: array + items: + type: string + Count: + type: integer + format: int64 + DeviceIDs: + type: array + items: + type: string + Driver: + type: string + Options: + type: object + additionalProperties: + type: string + description: Used by GPU device drivers. + example: + DeviceIDs: + - DeviceIDs + - DeviceIDs + Options: + key: Options + Capabilities: + - - Capabilities + - Capabilities + - - Capabilities + - Capabilities + Driver: Driver + Count: 1 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + Digest: + title: |- + Digest allows simple protection of hex formatted digest strings, prefixed + by their algorithm. Strings of type Digest have some guarantee of being in + the correct format and it provides quick access to the components of a + digest string. + type: string + description: |- + The following is an example of the contents of Digest types: + + sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc + + This allows to abstract the digest behind this type and work only in those + terms. + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/go-digest + DistributionInfo: + type: object + properties: + distribution: + type: string + x-go-name: Distribution + version: + type: string + x-go-name: Version + description: |- + DistributionInfo describes the host distribution + for libpod + example: + distribution: distribution + version: version + x-go-package: github.com/containers/podman/libpod/define + DockerVolumeCreate: + $ref: '#/components/schemas/VolumeCreateBody' + Duration: + type: integer + description: |- + A Duration represents the elapsed time between two instants + as an int64 nanosecond count. The representation limits the + largest representable duration to approximately 290 years. + format: int64 + x-go-package: time + EndpointIPAMConfig: + type: object + properties: + IPv4Address: + type: string + IPv6Address: + type: string + LinkLocalIPs: + type: array + items: + type: string + description: EndpointIPAMConfig represents IPAM configurations for the endpoint + example: + LinkLocalIPs: + - LinkLocalIPs + - LinkLocalIPs + IPv6Address: IPv6Address + IPv4Address: IPv4Address + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + EndpointResource: + type: object + properties: + EndpointID: + type: string + IPv4Address: + type: string + IPv6Address: + type: string + MacAddress: + type: string + Name: + type: string + description: EndpointResource contains network resources allocated and used + for a container in a network + example: + EndpointID: EndpointID + IPv6Address: IPv6Address + MacAddress: MacAddress + IPv4Address: IPv4Address + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + EndpointSettings: + type: object + properties: + Aliases: + type: array + items: + type: string + DriverOpts: + type: object + additionalProperties: + type: string + EndpointID: + type: string + Gateway: + type: string + GlobalIPv6Address: + type: string + GlobalIPv6PrefixLen: + type: integer + format: int64 + IPAMConfig: + $ref: '#/components/schemas/EndpointIPAMConfig' + IPAddress: + type: string + IPPrefixLen: + type: integer + format: int64 + IPv6Gateway: + type: string + Links: + type: array + items: + type: string + MacAddress: + type: string + NetworkID: + type: string + description: Operational data + description: EndpointSettings stores the network endpoint details + example: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 6 + IPPrefixLen: 3 + Aliases: + - Aliases + - Aliases + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + LinkLocalIPs: + - LinkLocalIPs + - LinkLocalIPs + IPv6Address: IPv6Address + IPv4Address: IPv4Address + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + IPv6Gateway: IPv6Gateway + IPAddress: IPAddress + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + ErrorResponse: + title: ErrorResponse Represents an error. + required: + - message + type: object + properties: + message: + type: string + description: The error message. + x-go-name: Message + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + FileMode: + title: A FileMode represents a file's mode and permission bits. + type: integer + description: |- + The bits have the same definition on all systems, so that + information about files can be moved from one system + to another portably. Not all bits apply to all systems. + The only required bit is ModeDir for directories. + format: uint32 + x-go-package: os + GraphDriverData: + title: GraphDriverData Information about a container's graph driver. + required: + - Data + - Name + type: object + properties: + Data: + type: object + additionalProperties: + type: string + description: data + Name: + type: string + description: name + example: + Data: + key: Data + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + HardwareAddr: + title: A HardwareAddr represents a physical hardware address. + type: array + items: + type: integer + format: uint8 + x-go-package: net + x-schema-name: HardwareAddr + Health: + type: object + properties: + FailingStreak: + type: integer + format: int64 + Log: + type: array + items: + $ref: '#/components/schemas/HealthcheckResult' + Status: + type: string + description: Health stores information about the container's healthcheck results + example: + Status: Status + Log: + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + FailingStreak: 8 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + HealthCheckLog: + type: object + properties: + End: + type: string + description: End time as a string + ExitCode: + type: integer + description: Exitcode is 0 or 1 + format: int64 + Output: + type: string + description: Output is the stdout/stderr from the healthcheck command + Start: + type: string + description: Start time as string + description: HealthCheckLog describes the results of a single healthcheck + example: + Start: Start + ExitCode: 6 + Output: Output + End: End + x-go-package: github.com/containers/podman/libpod/define + HealthCheckResults: + type: object + properties: + FailingStreak: + type: integer + description: FailingStreak is the number of consecutive failed healthchecks + format: int64 + Log: + type: array + description: Log describes healthcheck attempts and results + items: + $ref: '#/components/schemas/HealthCheckLog' + Status: + type: string + description: Status healthy or unhealthy + description: HealthCheckResults describes the results/logs from a healthcheck + example: + Status: Status + Log: + - Start: Start + ExitCode: 6 + Output: Output + End: End + - Start: Start + ExitCode: 6 + Output: Output + End: End + FailingStreak: 6 + x-go-package: github.com/containers/podman/libpod/define + HealthConfig: + title: HealthConfig holds configuration settings for the HEALTHCHECK feature. + type: object + properties: + Interval: + $ref: '#/components/schemas/Duration' + Retries: + type: integer + description: |- + Retries is the number of consecutive failures needed to consider a container as unhealthy. + Zero means inherit. + format: int64 + StartPeriod: + $ref: '#/components/schemas/Duration' + Test: + type: array + description: |- + Test is the test to perform to check that the container is healthy. + An empty slice means to inherit the default. + The options are: + {} : inherit healthcheck + {"NONE"} : disable healthcheck + {"CMD", args...} : exec arguments directly + {"CMD-SHELL", command} : run command with system's default shell + items: + type: string + Timeout: + $ref: '#/components/schemas/Duration' + example: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + HealthcheckResult: + type: object + properties: + End: + type: string + format: date-time + ExitCode: + type: integer + format: int64 + Output: + type: string + Start: + type: string + format: date-time + description: HealthcheckResult stores information about a single run of a healthcheck + probe + example: + Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + History: + title: History describes the history of a layer. + type: object + properties: + author: + type: string + description: Author is the author of the build point. + x-go-name: Author + comment: + type: string + description: Comment is a custom message set when creating the layer. + x-go-name: Comment + created: + type: string + description: Created is the combined date and time at which the layer was + created, formatted as defined by RFC 3339, section 5.6. + format: date-time + x-go-name: Created + created_by: + type: string + description: CreatedBy is the command which created the layer. + x-go-name: CreatedBy + empty_layer: + type: boolean + description: EmptyLayer is used to mark if the history item created a filesystem + diff. + x-go-name: EmptyLayer + example: + author: author + created: 2000-01-23T04:56:07.000+00:00 + empty_layer: true + comment: comment + created_by: created_by + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/image-spec/specs-go/v1 + HistoryResponseItem: + required: + - Comment + - Created + - CreatedBy + - Id + - Size + - Tags + type: object + properties: + Comment: + type: string + description: comment + Created: + type: integer + description: created + format: int64 + CreatedBy: + type: string + description: created by + Id: + type: string + description: Id + x-go-name: ID + Size: + type: integer + description: size + format: int64 + Tags: + type: array + description: tags + items: + type: string + description: HistoryResponseItem individual image layer information in response + to ImageHistory operation + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/image + HostConfig: + title: HostConfig the non-portable Config structure of a container. + type: object + properties: + AutoRemove: + type: boolean + Binds: + type: array + description: Applicable to all platforms + items: + type: string + BlkioDeviceReadBps: + type: array + items: + $ref: '#/components/schemas/ThrottleDevice' + BlkioDeviceReadIOps: + type: array + items: + $ref: '#/components/schemas/ThrottleDevice' + BlkioDeviceWriteBps: + type: array + items: + $ref: '#/components/schemas/ThrottleDevice' + BlkioDeviceWriteIOps: + type: array + items: + $ref: '#/components/schemas/ThrottleDevice' + BlkioWeight: + type: integer + format: uint16 + BlkioWeightDevice: + type: array + items: + $ref: '#/components/schemas/WeightDevice' + CapAdd: + $ref: '#/components/schemas/StrSlice' + CapDrop: + $ref: '#/components/schemas/StrSlice' + Cgroup: + $ref: '#/components/schemas/CgroupSpec' + CgroupParent: + type: string + description: Applicable to UNIX platforms + CgroupnsMode: + $ref: '#/components/schemas/CgroupnsMode' + ConsoleSize: + type: array + description: Applicable to Windows + items: + type: integer + format: uint64 + ContainerIDFile: + type: string + CpuCount: + type: integer + description: Applicable to Windows + format: int64 + x-go-name: CPUCount + CpuPercent: + type: integer + format: int64 + x-go-name: CPUPercent + CpuPeriod: + type: integer + format: int64 + x-go-name: CPUPeriod + CpuQuota: + type: integer + format: int64 + x-go-name: CPUQuota + CpuRealtimePeriod: + type: integer + format: int64 + x-go-name: CPURealtimePeriod + CpuRealtimeRuntime: + type: integer + format: int64 + x-go-name: CPURealtimeRuntime + CpuShares: + type: integer + description: Applicable to all platforms + format: int64 + x-go-name: CPUShares + CpusetCpus: + type: string + CpusetMems: + type: string + DeviceCgroupRules: + type: array + items: + type: string + DeviceRequests: + type: array + items: + $ref: '#/components/schemas/DeviceRequest' + Devices: + type: array + items: + $ref: '#/components/schemas/DeviceMapping' + Dns: + type: array + items: + type: string + x-go-name: DNS + DnsOptions: + type: array + items: + type: string + x-go-name: DNSOptions + DnsSearch: + type: array + items: + type: string + x-go-name: DNSSearch + ExtraHosts: + type: array + items: + type: string + GroupAdd: + type: array + items: + type: string + IOMaximumBandwidth: + type: integer + format: uint64 + IOMaximumIOps: + type: integer + format: uint64 + Init: + type: boolean + description: Run a custom init inside the container, if null, use the daemon's + configured settings + IpcMode: + $ref: '#/components/schemas/IpcMode' + Isolation: + $ref: '#/components/schemas/Isolation' + KernelMemory: + type: integer + format: int64 + KernelMemoryTCP: + type: integer + format: int64 + Links: + type: array + items: + type: string + LogConfig: + $ref: '#/components/schemas/LogConfig' + MaskedPaths: + type: array + description: MaskedPaths is the list of paths to be masked inside the container + (this overrides the default set of paths) + items: + type: string + Memory: + type: integer + format: int64 + MemoryReservation: + type: integer + format: int64 + MemorySwap: + type: integer + format: int64 + MemorySwappiness: + type: integer + format: int64 + Mounts: + type: array + description: Mounts specs used by the container + items: + $ref: '#/components/schemas/Mount' + NanoCpus: + type: integer + format: int64 + x-go-name: NanoCPUs + NetworkMode: + $ref: '#/components/schemas/NetworkMode' + OomKillDisable: + type: boolean + OomScoreAdj: + type: integer + format: int64 + PidMode: + $ref: '#/components/schemas/PidMode' + PidsLimit: + type: integer + format: int64 + PortBindings: + $ref: '#/components/schemas/PortMap' + Privileged: + type: boolean + PublishAllPorts: + type: boolean + ReadonlyPaths: + type: array + description: ReadonlyPaths is the list of paths to be set as read-only inside + the container (this overrides the default set of paths) + items: + type: string + ReadonlyRootfs: + type: boolean + RestartPolicy: + $ref: '#/components/schemas/RestartPolicy' + Runtime: + type: string + SecurityOpt: + type: array + items: + type: string + ShmSize: + type: integer + format: int64 + StorageOpt: + type: object + additionalProperties: + type: string + Sysctls: + type: object + additionalProperties: + type: string + Tmpfs: + type: object + additionalProperties: + type: string + UTSMode: + $ref: '#/components/schemas/UTSMode' + Ulimits: + type: array + items: + $ref: '#/components/schemas/Ulimit' + UsernsMode: + $ref: '#/components/schemas/UsernsMode' + VolumeDriver: + type: string + VolumesFrom: + type: array + items: + type: string + description: |- + Here, "non-portable" means "dependent of the host we are running on". + Portable information *should* appear in Config. + example: + ReadonlyRootfs: true + StorageOpt: + key: StorageOpt + BlkioWeightDevice: + - Path: Path + Weight: 2 + - Path: Path + Weight: 2 + DnsOptions: + - DnsOptions + - DnsOptions + Memory: 5 + CpuPeriod: 2 + Dns: + - Dns + - Dns + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + VolumesFrom: + - VolumesFrom + - VolumesFrom + MaskedPaths: + - MaskedPaths + - MaskedPaths + Devices: + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + MemorySwappiness: 6 + BlkioWeight: 5 + CgroupnsMode: CgroupnsMode + Init: true + Runtime: Runtime + DeviceCgroupRules: + - DeviceCgroupRules + - DeviceCgroupRules + UsernsMode: UsernsMode + Ulimits: + - Hard: 1 + Soft: 2 + Name: Name + - Hard: 1 + Soft: 2 + Name: Name + CpusetCpus: CpusetCpus + MemoryReservation: 9 + Mounts: + - destination: destination + options: + - options + - options + source: source + type: type + - destination: destination + options: + - options + - options + source: source + type: type + ExtraHosts: + - ExtraHosts + - ExtraHosts + BlkioDeviceWriteIOps: + - null + - null + ReadonlyPaths: + - ReadonlyPaths + - ReadonlyPaths + UTSMode: UTSMode + Cgroup: Cgroup + CpuQuota: 4 + CpuRealtimeRuntime: 1 + DnsSearch: + - DnsSearch + - DnsSearch + CpuShares: 1 + ContainerIDFile: ContainerIDFile + OomScoreAdj: 9 + KernelMemory: 1 + LogConfig: + path: path + driver: driver + options: + key: options + DeviceRequests: + - DeviceIDs: + - DeviceIDs + - DeviceIDs + Options: + key: Options + Capabilities: + - - Capabilities + - Capabilities + - - Capabilities + - Capabilities + Driver: Driver + Count: 1 + - DeviceIDs: + - DeviceIDs + - DeviceIDs + Options: + key: Options + Capabilities: + - - Capabilities + - Capabilities + - - Capabilities + - Capabilities + Driver: Driver + Count: 1 + OomKillDisable: true + IOMaximumBandwidth: 6 + Privileged: true + Sysctls: + key: Sysctls + GroupAdd: + - GroupAdd + - GroupAdd + AutoRemove: true + KernelMemoryTCP: 4 + CpuPercent: 3 + ConsoleSize: + - 7 + - 7 + IOMaximumIOps: 7 + CapAdd: null + VolumeDriver: VolumeDriver + CapDrop: null + CpuCount: 9 + PublishAllPorts: true + Tmpfs: + key: Tmpfs + CpuRealtimePeriod: 7 + IpcMode: IpcMode + Binds: + - Binds + - Binds + CpusetMems: CpusetMems + BlkioDeviceWriteBps: + - null + - null + RestartPolicy: + MaximumRetryCount: 3 + Name: Name + NetworkMode: NetworkMode + PidMode: PidMode + BlkioDeviceReadBps: + - Path: Path + Rate: 5 + - Path: Path + Rate: 5 + CgroupParent: CgroupParent + NanoCpus: 8 + MemorySwap: 9 + Isolation: Isolation + Links: + - Links + - Links + PidsLimit: 6 + BlkioDeviceReadIOps: + - null + - null + SecurityOpt: + - SecurityOpt + - SecurityOpt + ShmSize: 6 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + HostInfo: + type: object + properties: + arch: + type: string + x-go-name: Arch + buildahVersion: + type: string + x-go-name: BuildahVersion + cgroupManager: + type: string + x-go-name: CgroupManager + cgroupVersion: + type: string + x-go-name: CGroupsVersion + conmon: + $ref: '#/components/schemas/ConmonInfo' + cpus: + type: integer + format: int64 + x-go-name: CPUs + distribution: + $ref: '#/components/schemas/DistributionInfo' + eventLogger: + type: string + x-go-name: EventLogger + hostname: + type: string + x-go-name: Hostname + idMappings: + $ref: '#/components/schemas/IDMappings' + kernel: + type: string + x-go-name: Kernel + linkmode: + type: string + x-go-name: Linkmode + memFree: + type: integer + format: int64 + x-go-name: MemFree + memTotal: + type: integer + format: int64 + x-go-name: MemTotal + ociRuntime: + $ref: '#/components/schemas/OCIRuntimeInfo' + os: + type: string + x-go-name: OS + remoteSocket: + $ref: '#/components/schemas/RemoteSocket' + rootless: + type: boolean + x-go-name: Rootless + runtimeInfo: + type: object + additionalProperties: + type: object + properties: {} + example: {} + x-go-name: RuntimeInfo + slirp4netns: + $ref: '#/components/schemas/SlirpInfo' + swapFree: + type: integer + format: int64 + x-go-name: SwapFree + swapTotal: + type: integer + format: int64 + x-go-name: SwapTotal + uptime: + type: string + x-go-name: Uptime + description: HostInfo describes the libpod host + example: + swapFree: 7 + memFree: 5 + rootless: true + buildahVersion: buildahVersion + linkmode: linkmode + os: os + cpus: 0 + kernel: kernel + memTotal: 2 + swapTotal: 9 + remoteSocket: + path: path + exists: true + distribution: + distribution: distribution + version: version + idMappings: + uidmap: + - null + - null + gidmap: + - size: 5 + container_id: 6 + host_id: 1 + - size: 5 + container_id: 6 + host_id: 1 + eventLogger: eventLogger + uptime: uptime + cgroupVersion: cgroupVersion + cgroupManager: cgroupManager + hostname: hostname + conmon: + path: path + package: package + version: version + ociRuntime: + path: path + package: package + name: name + version: version + arch: arch + runtimeInfo: + key: {} + slirp4netns: + package: package + version: version + executable: executable + x-go-package: github.com/containers/podman/libpod/define + IDMap: + type: object + properties: + container_id: + type: integer + format: int64 + x-go-name: ContainerID + host_id: + type: integer + format: int64 + x-go-name: HostID + size: + type: integer + format: int64 + x-go-name: Size + description: |- + IDMap contains a single entry for user namespace range remapping. An array + of IDMap entries represents the structure that will be provided to the Linux + kernel for creating a user namespace. + example: + size: 5 + container_id: 6 + host_id: 1 + x-go-package: github.com/containers/podman/vendor/github.com/containers/storage/pkg/idtools + IDMappingOptions: + type: object + properties: + AutoUserNs: + type: boolean + AutoUserNsOpts: + $ref: '#/components/schemas/AutoUserNsOptions' + GIDMap: + type: array + items: + $ref: '#/components/schemas/IDMap' + HostGIDMapping: + type: boolean + HostUIDMapping: + type: boolean + description: |- + UIDMap and GIDMap are used for setting up a layer's root filesystem + for use inside of a user namespace where ID mapping is being used. + If HostUIDMapping/HostGIDMapping is true, no mapping of the + respective type will be used. Otherwise, if UIDMap and/or GIDMap + contain at least one mapping, one or both will be used. By default, + if neither of those conditions apply, if the layer has a parent + layer, the parent layer's mapping will be used, and if it does not + have a parent layer, the mapping which was passed to the Store + object when it was initialized will be used. + UIDMap: + type: array + items: + $ref: '#/components/schemas/IDMap' + description: |- + IDMappingOptions are used for specifying how ID mapping should be set up for + a layer or container. + x-go-package: github.com/containers/podman/vendor/github.com/containers/storage + IDMappings: + type: object + properties: + gidmap: + type: array + items: + $ref: '#/components/schemas/IDMap' + x-go-name: GIDMap + uidmap: + type: array + items: + $ref: '#/components/schemas/IDMap' + x-go-name: UIDMap + description: IDMappings describe the GID and UID mappings + example: + uidmap: + - null + - null + gidmap: + - size: 5 + container_id: 6 + host_id: 1 + - size: 5 + container_id: 6 + host_id: 1 + x-go-package: github.com/containers/podman/libpod/define + IDResponse: + type: object + properties: + Id: + type: string + description: ID + x-go-name: ID + x-go-package: github.com/containers/podman/pkg/api/handlers + IP: + title: |- + An IP is a single IP address, a slice of bytes. + Functions in this package accept either 4-byte (IPv4) + or 16-byte (IPv6) slices as input. + type: array + description: |- + Note that in this documentation, referring to an + IP address as an IPv4 address or an IPv6 address + is a semantic property of the address, not just the + length of the byte slice: a 16-byte slice can still + be an IPv4 address. + items: + type: integer + format: uint8 + x-go-package: net + x-schema-name: IP + IPAM: + type: object + properties: + Config: + type: array + items: + $ref: '#/components/schemas/IPAMConfig' + Driver: + type: string + Options: + type: object + additionalProperties: + type: string + description: IPAM represents IP Address Management + example: + Options: + key: Options + Config: + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + Driver: Driver + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + IPAMConfig: + type: object + properties: + AuxiliaryAddresses: + type: object + additionalProperties: + type: string + x-go-name: AuxAddress + Gateway: + type: string + IPRange: + type: string + Subnet: + type: string + description: IPAMConfig represents IPAM configurations + example: + AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + IPMask: + title: |- + An IPMask is a bitmask that can be used to manipulate + IP addresses for IP addressing and routing. + type: array + description: See type IPNet and func ParseCIDR for details. + items: + type: integer + format: uint8 + x-go-package: net + x-schema-name: IPMask + IPNet: + title: An IPNet represents an IP network. + type: object + properties: + IP: + $ref: '#/components/schemas/IP' + Mask: + $ref: '#/components/schemas/IPMask' + x-go-package: net + IdResponse: + required: + - Id + type: object + properties: + Id: + type: string + description: The id of the newly created object. + x-go-name: ID + description: IDResponse Response to an API call that returns just an Id + x-go-name: IDResponse + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + ImageConfig: + title: ImageConfig defines the execution parameters which should be used as + a base when running a container using an image. + type: object + properties: + Cmd: + type: array + description: Cmd defines the default arguments to the entrypoint of the + container. + items: + type: string + Entrypoint: + type: array + description: Entrypoint defines a list of arguments to use as the command + to execute when the container starts. + items: + type: string + Env: + type: array + description: Env is a list of environment variables to be used in a container. + items: + type: string + ExposedPorts: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: ExposedPorts a set of ports to expose from a container running + this image. + Labels: + type: object + additionalProperties: + type: string + description: Labels contains arbitrary metadata for the container. + StopSignal: + type: string + description: StopSignal contains the system call signal that will be sent + to the container to exit. + User: + type: string + description: User defines the username or UID which the process in the container + should run as. + Volumes: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: Volumes is a set of directories describing where the process + is likely write data specific to a container instance. + WorkingDir: + type: string + description: WorkingDir sets the current working directory of the entrypoint + process in the container. + example: + WorkingDir: WorkingDir + StopSignal: StopSignal + User: User + Volumes: + key: {} + Entrypoint: + - Entrypoint + - Entrypoint + Labels: + key: Labels + Cmd: + - Cmd + - Cmd + Env: + - Env + - Env + ExposedPorts: + key: {} + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/image-spec/specs-go/v1 + ImageDeleteResponse: + type: object + properties: + deleted: + type: string + x-go-name: Deleted + untagged: + type: array + items: + type: string + x-go-name: Untagged + description: |- + ImageDeleteResponse is the response for removing an image from storage and containers + what was untagged vs actually removed + example: + deleted: deleted + untagged: + - untagged + - untagged + x-go-package: github.com/containers/podman/libpod/image + ImageDeleteResponseItem: + type: object + properties: + Deleted: + type: string + description: The image ID of an image that was deleted + Untagged: + type: string + description: The image ID of an image that was untagged + description: ImageDeleteResponseItem image delete response item + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + ImageImportReport: + type: object + properties: + Id: + type: string + example: + Id: Id + x-go-package: github.com/containers/podman/pkg/domain/entities + ImageLayer: + type: object + x-go-package: github.com/containers/podman/pkg/api/handlers + ImageLoadReport: + type: object + properties: + Names: + type: array + items: + type: string + example: + Names: + - Names + - Names + x-go-package: github.com/containers/podman/pkg/domain/entities + ImageMetadata: + type: object + properties: + LastTagTime: + type: string + format: date-time + description: ImageMetadata contains engine-local data about the image + example: + LastTagTime: 2000-01-23T04:56:07.000+00:00 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + ImageStore: + type: object + properties: + number: + type: integer + format: int64 + x-go-name: Number + description: |- + ImageStore describes the image store. Right now only the number + of images present + example: + number: 1 + x-go-package: github.com/containers/podman/libpod/define + ImageSummary: + required: + - Containers + - Created + - Id + - Labels + - ParentId + - RepoDigests + - RepoTags + - SharedSize + - Size + - VirtualSize + type: object + properties: + Containers: + type: integer + description: containers + format: int64 + Created: + type: integer + description: created + format: int64 + Id: + type: string + description: Id + x-go-name: ID + Labels: + type: object + additionalProperties: + type: string + description: labels + ParentId: + type: string + description: parent Id + x-go-name: ParentID + RepoDigests: + type: array + description: repo digests + items: + type: string + RepoTags: + type: array + description: repo tags + items: + type: string + SharedSize: + type: integer + description: shared size + format: int64 + Size: + type: integer + description: size + format: int64 + VirtualSize: + type: integer + description: virtual size + format: int64 + description: ImageSummary image summary + example: + ParentId: ParentId + RepoDigests: + - RepoDigests + - RepoDigests + SharedSize: 1 + VirtualSize: 5 + RepoTags: + - RepoTags + - RepoTags + Size: 5 + Containers: 0 + Labels: + key: Labels + Id: Id + Created: 6 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + Info: + type: object + properties: + host: + $ref: '#/components/schemas/HostInfo' + registries: + type: object + additionalProperties: + type: object + properties: {} + example: {} + x-go-name: Registries + store: + $ref: '#/components/schemas/StoreInfo' + version: + $ref: '#/components/schemas/Version' + description: |- + Info is the overall struct that describes the host system + running libpod/podman + example: + host: + swapFree: 7 + memFree: 5 + rootless: true + buildahVersion: buildahVersion + linkmode: linkmode + os: os + cpus: 0 + kernel: kernel + memTotal: 2 + swapTotal: 9 + remoteSocket: + path: path + exists: true + distribution: + distribution: distribution + version: version + idMappings: + uidmap: + - null + - null + gidmap: + - size: 5 + container_id: 6 + host_id: 1 + - size: 5 + container_id: 6 + host_id: 1 + eventLogger: eventLogger + uptime: uptime + cgroupVersion: cgroupVersion + cgroupManager: cgroupManager + hostname: hostname + conmon: + path: path + package: package + version: version + ociRuntime: + path: path + package: package + name: name + version: version + arch: arch + runtimeInfo: + key: {} + slirp4netns: + package: package + version: version + executable: executable + registries: + key: {} + store: + graphStatus: + key: graphStatus + configFile: configFile + containerStore: + running: 4 + number: 3 + paused: 2 + stopped: 7 + graphRoot: graphRoot + graphDriverName: graphDriverName + volumePath: volumePath + graphOptions: + key: {} + imageStore: + number: 1 + runRoot: runRoot + version: + GitCommit: GitCommit + APIVersion: APIVersion + Version: Version + Built: 1 + OsArch: OsArch + BuiltTime: BuiltTime + GoVersion: GoVersion + x-go-package: github.com/containers/podman/libpod/define + InspectAdditionalNetwork: + type: object + properties: + AdditionalMACAddresses: + type: array + description: |- + AdditionalMacAddresses is a set of additional MAC Addresses beyond + the first. CNI may configure more than one interface for a single + network, which can cause this. + items: + type: string + x-go-name: AdditionalMacAddresses + DriverOpts: + type: object + additionalProperties: + type: string + description: |- + DriverOpts is presently unused and maintained exclusively for + compatibility. + EndpointID: + type: string + description: EndpointID is unused, maintained exclusively for compatibility. + Gateway: + type: string + description: Gateway is the IP address of the gateway this network will + use. + GlobalIPv6Address: + type: string + description: GlobalIPv6Address is the global-scope IPv6 Address for this + network. + GlobalIPv6PrefixLen: + type: integer + description: GlobalIPv6PrefixLen is the length of the subnet mask of this + network. + format: int64 + IPAMConfig: + type: object + additionalProperties: + type: string + description: |- + IPAMConfig is presently unused and maintained exclusively for + compatibility. + IPAddress: + type: string + description: IPAddress is the IP address for this network. + IPPrefixLen: + type: integer + description: IPPrefixLen is the length of the subnet mask of this network. + format: int64 + IPv6Gateway: + type: string + description: IPv6Gateway is the IPv6 gateway this network will use. + Links: + type: array + description: |- + Links is presently unused and maintained exclusively for + compatibility. + items: + type: string + MacAddress: + type: string + description: MacAddress is the MAC address for the interface in this network. + NetworkID: + type: string + description: Name of the network we're connecting to. + SecondaryIPAddresses: + type: array + description: |- + SecondaryIPAddresses is a list of extra IP Addresses that the + container has been assigned in this network. + items: + type: string + SecondaryIPv6Addresses: + type: array + description: |- + SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the + container has been assigned in this networ. + items: + type: string + description: |- + InspectAdditionalNetwork holds information about non-default CNI networks the + container has been connected to. + As with InspectNetworkSettings, many fields are unused and maintained only + for compatibility with Docker. + example: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 5 + IPPrefixLen: 6 + AdditionalMACAddresses: + - AdditionalMACAddresses + - AdditionalMACAddresses + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + key: IPAMConfig + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + SecondaryIPv6Addresses: + - SecondaryIPv6Addresses + - SecondaryIPv6Addresses + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - SecondaryIPAddresses + - SecondaryIPAddresses + IPAddress: IPAddress + x-go-package: github.com/containers/podman/libpod/define + InspectBlkioThrottleDevice: + type: object + properties: + Path: + type: string + description: Path is the path to the device this applies to. + Rate: + type: integer + description: |- + Rate is the maximum rate. It is in either bytes per second or iops + per second, determined by where it is used - documentation will + indicate which is appropriate. + format: uint64 + description: |- + InspectBlkioThrottleDevice holds information about a speed cap for a device + node. This cap applies to a specific operation (read, write, etc) on the given + node. + example: + Path: Path + Rate: 5 + x-go-package: github.com/containers/podman/libpod/define + InspectBlkioWeightDevice: + type: object + properties: + Path: + type: string + description: Path is the path to the device this applies to. + Weight: + type: integer + description: |- + Weight is the relative weight the scheduler will use when scheduling + I/O. + format: uint16 + description: |- + InspectBlkioWeightDevice holds information about the relative weight + of an individual device node. Weights are used in the I/O scheduler to give + relative priority to some accesses. + example: + Path: Path + Weight: 2 + x-go-package: github.com/containers/podman/libpod/define + InspectContainerConfig: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + description: Container annotations + AttachStderr: + type: boolean + description: Unused, at present + AttachStdin: + type: boolean + description: Unused, at present + AttachStdout: + type: boolean + description: Unused, at present + Cmd: + type: array + description: Container command + items: + type: string + CreateCommand: + type: array + description: |- + CreateCommand is the full command plus arguments of the process the + container has been created with. + items: + type: string + Domainname: + type: string + description: Container domain name - unused at present + x-go-name: DomainName + Entrypoint: + type: string + description: Container entrypoint + Env: + type: array + description: Container environment variables + items: + type: string + Healthcheck: + $ref: '#/components/schemas/Schema2HealthConfig' + Hostname: + type: string + description: Container hostname + Image: + type: string + description: Container image + Labels: + type: object + additionalProperties: + type: string + description: Container labels + OnBuild: + type: string + description: On-build arguments - presently unused. More of Buildah's domain. + OpenStdin: + type: boolean + description: Whether the container leaves STDIN open + StdinOnce: + type: boolean + description: |- + Whether STDIN is only left open once. + Presently not supported by Podman, unused. + StopSignal: + type: integer + description: Container stop signal + format: uint64 + SystemdMode: + type: boolean + description: |- + SystemdMode is whether the container is running in systemd mode. In + systemd mode, the container configuration is customized to optimize + running systemd in the container. + Timezone: + type: string + description: |- + Timezone is the timezone inside the container. + Local means it has the same timezone as the host machine + Tty: + type: boolean + description: Whether the container creates a TTY + Umask: + type: string + description: Umask is the umask inside the container. + User: + type: string + description: User the container was launched with + Volumes: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: Unused, at present. I've never seen this field populated. + WorkingDir: + type: string + description: Container working directory + description: |- + InspectContainerConfig holds further data about how a container was initially + configured. + example: + Timezone: Timezone + Umask: Umask + StopSignal: 1 + CreateCommand: + - CreateCommand + - CreateCommand + User: User + Entrypoint: Entrypoint + AttachStderr: true + SystemdMode: true + Hostname: Hostname + Labels: + key: Labels + OpenStdin: true + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + Env: + - Env + - Env + Image: Image + StdinOnce: true + AttachStdout: true + WorkingDir: WorkingDir + Annotations: + key: Annotations + Volumes: + key: {} + OnBuild: OnBuild + AttachStdin: true + Domainname: Domainname + Tty: true + Cmd: + - Cmd + - Cmd + x-go-package: github.com/containers/podman/libpod/define + InspectContainerHostConfig: + type: object + properties: + AutoRemove: + type: boolean + description: |- + AutoRemove is whether the container will be automatically removed on + exiting. + It is not handled directly within libpod and is stored in an + annotation. + Binds: + type: array + description: |- + Binds contains an array of user-added mounts. + Both volume mounts and named volumes are included. + Tmpfs mounts are NOT included. + In 'docker inspect' this is separated into 'Binds' and 'Mounts' based + on how a mount was added. We do not make this distinction and do not + include a Mounts field in inspect. + Format: :[:] + items: + type: string + BlkioDeviceReadBps: + type: array + description: |- + BlkioDeviceReadBps is an array of I/O throttle parameters for + individual device nodes. + This specifically sets read rate cap in bytes per second for device + nodes. + As with BlkioWeightDevice, we pull the path from /sys/dev, and we + don't guarantee the path will be identical to the original (though + the node will be). + items: + $ref: '#/components/schemas/InspectBlkioThrottleDevice' + BlkioDeviceReadIOps: + type: array + description: |- + BlkioDeviceReadIOps is an array of I/O throttle parameters for + individual device nodes. + This specifically sets the read rate cap in iops per second for + device nodes. + As with BlkioWeightDevice, we pull the path from /sys/dev, and we + don't guarantee the path will be identical to the original (though + the node will be). + items: + $ref: '#/components/schemas/InspectBlkioThrottleDevice' + BlkioDeviceWriteBps: + type: array + description: |- + BlkioDeviceWriteBps is an array of I/O throttle parameters for + individual device nodes. + this specifically sets write rate cap in bytes per second for device + nodes. + as with BlkioWeightDevice, we pull the path from /sys/dev, and we + don't guarantee the path will be identical to the original (though + the node will be). + items: + $ref: '#/components/schemas/InspectBlkioThrottleDevice' + BlkioDeviceWriteIOps: + type: array + description: |- + BlkioDeviceWriteIOps is an array of I/O throttle parameters for + individual device nodes. + This specifically sets the write rate cap in iops per second for + device nodes. + As with BlkioWeightDevice, we pull the path from /sys/dev, and we + don't guarantee the path will be identical to the original (though + the node will be). + items: + $ref: '#/components/schemas/InspectBlkioThrottleDevice' + BlkioWeight: + type: integer + description: |- + BlkioWeight indicates the I/O resources allocated to the container. + It is a relative weight in the scheduler for assigning I/O time + versus other CGroups. + format: uint16 + BlkioWeightDevice: + type: array + description: |- + BlkioWeightDevice is an array of I/O resource priorities for + individual device nodes. + Unfortunately, the spec only stores the device's Major/Minor numbers + and not the path, which is used here. + Fortunately, the kernel provides an interface for retrieving the path + of a given node by major:minor at /sys/dev/. However, the exact path + in use may not be what was used in the original CLI invocation - + though it is guaranteed that the device node will be the same, and + using the given path will be functionally identical. + items: + $ref: '#/components/schemas/InspectBlkioWeightDevice' + CapAdd: + type: array + description: |- + CapAdd is a list of capabilities added to the container. + It is not directly stored by Libpod, and instead computed from the + capabilities listed in the container's spec, compared against a set + of default capabilities. + items: + type: string + CapDrop: + type: array + description: |- + CapDrop is a list of capabilities removed from the container. + It is not directly stored by libpod, and instead computed from the + capabilities listed in the container's spec, compared against a set + of default capabilities. + items: + type: string + Cgroup: + type: string + description: |- + Cgroup contains the container's cgroup. It is presently not + populated. + TODO. + CgroupConf: + type: object + additionalProperties: + type: string + description: CgroupConf is the configuration for cgroup v2. + CgroupMode: + type: string + description: |- + CgroupMode is the configuration of the container's cgroup namespace. + Populated as follows: + private - a cgroup namespace has been created + host - No cgroup namespace created + container: - Using another container's cgroup namespace + ns: - A path to a cgroup namespace has been specified + CgroupParent: + type: string + description: |- + CgroupParent is the CGroup parent of the container. + Only set if not default. + Cgroups: + type: string + description: |- + Cgroups contains the container's CGroup mode. + Allowed values are "default" (container is creating CGroups) and + "disabled" (container is not creating CGroups). + This is Libpod-specific and not included in `docker inspect`. + ConsoleSize: + type: array + description: |- + ConsoleSize is an array of 2 integers showing the size of the + container's console. + It is only set if the container is creating a terminal. + TODO. + items: + type: integer + format: uint64 + ContainerIDFile: + type: string + description: |- + ContainerIDFile is a file created during container creation to hold + the ID of the created container. + This is not handled within libpod and is stored in an annotation. + CpuCount: + type: integer + description: CpuCount is Windows-only and not presently implemented. + format: uint64 + CpuPercent: + type: integer + description: CpuPercent is Windows-only and not presently implemented. + format: uint64 + CpuPeriod: + type: integer + description: |- + CpuPeriod is the length of a CPU period in microseconds. + It relates directly to CpuQuota. + format: uint64 + CpuQuota: + type: integer + description: |- + CpuPeriod is the amount of time (in microseconds) that a container + can use the CPU in every CpuPeriod. + format: int64 + CpuRealtimePeriod: + type: integer + description: |- + CpuRealtimePeriod is the length of time (in microseconds) of the CPU + realtime period. If set to 0, no time will be allocated to realtime + tasks. + format: uint64 + CpuRealtimeRuntime: + type: integer + description: |- + CpuRealtimeRuntime is the length of time (in microseconds) allocated + for realtime tasks within every CpuRealtimePeriod. + format: int64 + CpuShares: + type: integer + description: |- + CpuShares indicates the CPU resources allocated to the container. + It is a relative weight in the scheduler for assigning CPU time + versus other CGroups. + format: uint64 + CpusetCpus: + type: string + description: |- + CpusetCpus is the is the set of CPUs that the container will execute + on. Formatted as `0-3` or `0,2`. Default (if unset) is all CPUs. + CpusetMems: + type: string + description: |- + CpusetMems is the set of memory nodes the container will use. + Formatted as `0-3` or `0,2`. Default (if unset) is all memory nodes. + Devices: + type: array + description: |- + Devices is a list of device nodes that will be added to the + container. + These are stored in the OCI spec only as type, major, minor while we + display the host path. We convert this with /sys/dev, but we cannot + guarantee that the host path will be identical - only that the actual + device will be. + items: + $ref: '#/components/schemas/InspectDevice' + DiskQuota: + type: integer + description: |- + DiskQuota is the maximum amount of disk space the container may use + (in bytes). + Presently not populated. + TODO. + format: uint64 + Dns: + type: array + description: |- + Dns is a list of DNS nameservers that will be added to the + container's resolv.conf + items: + type: string + DnsOptions: + type: array + description: |- + DnsOptions is a list of DNS options that will be set in the + container's resolv.conf + items: + type: string + DnsSearch: + type: array + description: |- + DnsSearch is a list of DNS search domains that will be set in the + container's resolv.conf + items: + type: string + ExtraHosts: + type: array + description: |- + ExtraHosts contains hosts that will be aded to the container's + etc/hosts. + items: + type: string + GroupAdd: + type: array + description: |- + GroupAdd contains groups that the user inside the container will be + added to. + items: + type: string + IOMaximumBandwidth: + type: integer + description: IOMaximumBandwidth is Windows-only and not presently implemented. + format: uint64 + IOMaximumIOps: + type: integer + description: IOMaximumIOps is Windows-only and not presently implemented. + format: uint64 + Init: + type: boolean + description: Init indicates whether the container has an init mounted into + it. + IpcMode: + type: string + description: |- + IpcMode represents the configuration of the container's IPC + namespace. + Populated as follows: + "" (empty string) - Default, an IPC namespace will be created + host - No IPC namespace created + container: - Using another container's IPC namespace + ns: - A path to an IPC namespace has been specified + Isolation: + type: string + description: |- + Isolation is presently unused and provided solely for Docker + compatibility. + KernelMemory: + type: integer + description: |- + KernelMemory is the maximum amount of memory the kernel will devote + to the container. + format: int64 + Links: + type: array + description: Links is unused, and provided purely for Docker compatibility. + items: + type: string + LogConfig: + $ref: '#/components/schemas/InspectLogConfig' + Memory: + type: integer + description: |- + Memory indicates the memory resources allocated to the container. + This is the limit (in bytes) of RAM the container may use. + format: int64 + MemoryReservation: + type: integer + description: |- + MemoryReservation is the reservation (soft limit) of memory available + to the container. Soft limits are warnings only and can be exceeded. + format: int64 + MemorySwap: + type: integer + description: |- + MemorySwap is the total limit for all memory available to the + container, including swap. 0 indicates that there is no limit to the + amount of memory available. + format: int64 + MemorySwappiness: + type: integer + description: |- + MemorySwappiness is the willingness of the kernel to page container + memory to swap. It is an integer from 0 to 100, with low numbers + being more likely to be put into swap. + 1, the default, will not set swappiness and use the system defaults. + format: int64 + NanoCpus: + type: integer + description: |- + NanoCpus indicates number of CPUs allocated to the container. + It is an integer where one full CPU is indicated by 1000000000 (one + billion). + Thus, 2.5 CPUs (fractional portions of CPUs are allowed) would be + 2500000000 (2.5 billion). + In 'docker inspect' this is set exclusively of two further options in + the output (CpuPeriod and CpuQuota) which are both used to implement + this functionality. + We can't distinguish here, so if CpuQuota is set to the default of + 100000, we will set both CpuQuota, CpuPeriod, and NanoCpus. If + CpuQuota is not the default, we will not set NanoCpus. + format: int64 + NetworkMode: + type: string + description: |- + NetworkMode is the configuration of the container's network + namespace. + Populated as follows: + default - A network namespace is being created and configured via CNI + none - A network namespace is being created, not configured via CNI + host - No network namespace created + container: - Using another container's network namespace + ns: - A path to a network namespace has been specified + OomKillDisable: + type: boolean + description: |- + OomKillDisable indicates whether the kernel OOM killer is disabled + for the container. + OomScoreAdj: + type: integer + description: |- + OOMScoreAdj is an adjustment that will be made to the container's OOM + score. + format: int64 + PidMode: + type: string + description: |- + PidMode represents the configuration of the container's PID + namespace. + Populated as follows: + "" (empty string) - Default, a PID namespace will be created + host - No PID namespace created + container: - Using another container's PID namespace + ns: - A path to a PID namespace has been specified + PidsLimit: + type: integer + description: |- + PidsLimit is the maximum number of PIDs what may be created within + the container. 0, the default, indicates no limit. + format: int64 + PortBindings: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InspectHostPort' + description: |- + PortBindings contains the container's port bindings. + It is formatted as map[string][]InspectHostPort. + The string key here is formatted as / + and represents the container port. A single container port may be + bound to multiple host ports (on different IPs). + Privileged: + type: boolean + description: |- + Privileged indicates whether the container is running with elevated + privileges. + This has a very specific meaning in the Docker sense, so it's very + difficult to decode from the spec and config, and so is stored as an + annotation. + PublishAllPorts: + type: boolean + description: |- + PublishAllPorts indicates whether image ports are being published. + This is not directly stored in libpod and is saved as an annotation. + ReadonlyRootfs: + type: boolean + description: ReadonlyRootfs is whether the container will be mounted read-only. + RestartPolicy: + $ref: '#/components/schemas/InspectRestartPolicy' + Runtime: + type: string + description: |- + Runtime is provided purely for Docker compatibility. + It is set unconditionally to "oci" as Podman does not presently + support non-OCI runtimes. + SecurityOpt: + type: array + description: |- + SecurityOpt is a list of security-related options that are set in the + container. + items: + type: string + ShmSize: + type: integer + description: ShmSize is the size of the container's SHM device. + format: int64 + Tmpfs: + type: object + additionalProperties: + type: string + description: |- + Tmpfs is a list of tmpfs filesystems that will be mounted into the + container. + It is a map of destination path to options for the mount. + UTSMode: + type: string + description: |- + UTSMode represents the configuration of the container's UID + namespace. + Populated as follows: + "" (empty string) - Default, a UTS namespace will be created + host - no UTS namespace created + container: - Using another container's UTS namespace + ns: - A path to a UTS namespace has been specified + Ulimits: + type: array + description: Ulimits is a set of ulimits that will be set within the container. + items: + $ref: '#/components/schemas/InspectUlimit' + UsernsMode: + type: string + description: |- + UsernsMode represents the configuration of the container's user + namespace. + When running rootless, a user namespace is created outside of libpod + to allow some privileged operations. This will not be reflected here. + Populated as follows: + "" (empty string) - No user namespace will be created + private - The container will be run in a user namespace + container: - Using another container's user namespace + ns: - A path to a user namespace has been specified + TODO Rootless has an additional 'keep-id' option, presently not + reflected here. + VolumeDriver: + type: string + description: |- + VolumeDriver is presently unused and is retained for Docker + compatibility. + VolumesFrom: + type: array + description: |- + VolumesFrom is a list of containers which this container uses volumes + from. This is not handled directly within libpod and is stored in an + annotation. + It is formatted as an array of container names and IDs. + items: + type: string + description: |- + InspectContainerHostConfig holds information used when the container was + created. + It's very much a Docker-specific struct, retained (mostly) as-is for + compatibility. We fill individual fields as best as we can, inferring as much + as possible from the spec and container config. + Some things cannot be inferred. These will be populated by spec annotations + (if available). + Field names are fixed for compatibility and cannot be changed. + As such, silence lint warnings about them. + nolint + example: + ReadonlyRootfs: true + DiskQuota: 1 + BlkioWeightDevice: + - Path: Path + Weight: 2 + - Path: Path + Weight: 2 + DnsOptions: + - DnsOptions + - DnsOptions + Memory: 4 + CpuPeriod: 2 + Dns: + - Dns + - Dns + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + VolumesFrom: + - VolumesFrom + - VolumesFrom + Devices: + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + MemorySwappiness: 9 + BlkioWeight: 5 + CgroupMode: CgroupMode + Init: true + Runtime: Runtime + UsernsMode: UsernsMode + Ulimits: + - Hard: 6 + Soft: 1 + Name: Name + - Hard: 6 + Soft: 1 + Name: Name + CpusetCpus: CpusetCpus + MemoryReservation: 5 + ExtraHosts: + - ExtraHosts + - ExtraHosts + BlkioDeviceWriteIOps: + - null + - null + Cgroups: Cgroups + UTSMode: UTSMode + Cgroup: Cgroup + CpuQuota: 4 + CpuRealtimeRuntime: 1 + DnsSearch: + - DnsSearch + - DnsSearch + CgroupConf: + key: CgroupConf + CpuShares: 1 + ContainerIDFile: ContainerIDFile + OomScoreAdj: 8 + KernelMemory: 1 + LogConfig: + Type: Type + Config: + key: Config + OomKillDisable: true + IOMaximumBandwidth: 6 + Privileged: true + GroupAdd: + - GroupAdd + - GroupAdd + AutoRemove: true + CpuPercent: 3 + ConsoleSize: + - 7 + - 7 + IOMaximumIOps: 7 + CapAdd: + - CapAdd + - CapAdd + VolumeDriver: VolumeDriver + CapDrop: + - CapDrop + - CapDrop + CpuCount: 9 + PublishAllPorts: true + Tmpfs: + key: Tmpfs + CpuRealtimePeriod: 7 + IpcMode: IpcMode + Binds: + - Binds + - Binds + CpusetMems: CpusetMems + BlkioDeviceWriteBps: + - null + - null + RestartPolicy: + MaximumRetryCount: 6 + Name: Name + NetworkMode: NetworkMode + PidMode: PidMode + BlkioDeviceReadBps: + - Path: Path + Rate: 5 + - Path: Path + Rate: 5 + CgroupParent: CgroupParent + NanoCpus: 6 + MemorySwap: 9 + Isolation: Isolation + Links: + - Links + - Links + PidsLimit: 9 + BlkioDeviceReadIOps: + - null + - null + SecurityOpt: + - SecurityOpt + - SecurityOpt + ShmSize: 3 + x-go-package: github.com/containers/podman/libpod/define + InspectContainerState: + type: object + properties: + ConmonPid: + type: integer + format: int64 + Dead: + type: boolean + Error: + type: string + ExitCode: + type: integer + format: int32 + FinishedAt: + type: string + format: date-time + Healthcheck: + $ref: '#/components/schemas/HealthCheckResults' + OOMKilled: + type: boolean + OciVersion: + type: string + Paused: + type: boolean + Pid: + type: integer + format: int64 + Restarting: + type: boolean + Running: + type: boolean + StartedAt: + type: string + format: date-time + Status: + type: string + description: |- + InspectContainerState provides a detailed record of a container's current + state. It is returned as part of InspectContainerData. + As with InspectContainerData, many portions of this struct are matched to + Docker, but here we see more fields that are unused (nonsensical in the + context of Libpod). + example: + Status: Status + Dead: true + ExitCode: 7 + ConmonPid: 0 + Error: Error + OciVersion: OciVersion + Pid: 0 + Healthcheck: + Status: Status + Log: + - Start: Start + ExitCode: 6 + Output: Output + End: End + - Start: Start + ExitCode: 6 + Output: Output + End: End + FailingStreak: 6 + Restarting: true + Running: true + FinishedAt: 2000-01-23T04:56:07.000+00:00 + OOMKilled: true + StartedAt: 2000-01-23T04:56:07.000+00:00 + Paused: true + x-go-package: github.com/containers/podman/libpod/define + InspectDevice: + title: InspectDevice is a single device that will be mounted into the container. + type: object + properties: + CgroupPermissions: + type: string + description: |- + CgroupPermissions is the permissions of the mounted device. + Presently not populated. + TODO. + PathInContainer: + type: string + description: PathInContainer is the path of the device within the container. + PathOnHost: + type: string + description: PathOnHost is the path of the device on the host. + example: + CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + x-go-package: github.com/containers/podman/libpod/define + InspectHostPort: + type: object + properties: + HostIp: + type: string + description: |- + IP on the host we are bound to. "" if not specified (binding to all + IPs). + x-go-name: HostIP + HostPort: + type: string + description: |- + Port on the host we are bound to. No special formatting - just an + integer stuffed into a string. + description: |- + InspectHostPort provides information on a port on the host that a container's + port is bound to. + example: + HostIp: HostIp + HostPort: HostPort + x-go-package: github.com/containers/podman/libpod/define + InspectLogConfig: + type: object + properties: + Config: + type: object + additionalProperties: + type: string + Type: + type: string + description: |- + InspectLogConfig holds information about a container's configured log driver + and is presently unused. It is retained for Docker compatibility. + example: + Type: Type + Config: + key: Config + x-go-package: github.com/containers/podman/libpod/define + InspectMount: + type: object + properties: + Destination: + type: string + description: |- + The destination directory for the volume. Specified as a path within + the container, as it would be passed into the OCI runtime. + Driver: + type: string + description: The driver used for the named volume. Empty for bind mounts. + Mode: + type: string + description: |- + Contains SELinux :z/:Z mount options. Unclear what, if anything, else + goes in here. + Name: + type: string + description: The name of the volume. Empty for bind mounts. + Options: + type: array + description: |- + All remaining mount options. Additional data, not present in the + original output. + items: + type: string + Propagation: + type: string + description: |- + Mount propagation for the mount. Can be empty if not specified, but + is always printed - no omitempty. + RW: + type: boolean + description: Whether the volume is read-write + Source: + type: string + description: The source directory for the volume. + Type: + type: string + description: |- + Whether the mount is a volume or bind mount. Allowed values are + "volume" and "bind". + description: |- + InspectMount provides a record of a single mount in a container. It contains + fields for both named and normal volumes. Only user-specified volumes will be + included, and tmpfs volumes are not included even if the user specified them. + example: + Destination: Destination + Options: + - Options + - Options + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + x-go-package: github.com/containers/podman/libpod/define + InspectNetworkSettings: + type: object + properties: + AdditionalMACAddresses: + type: array + description: |- + AdditionalMacAddresses is a set of additional MAC Addresses beyond + the first. CNI may configure more than one interface for a single + network, which can cause this. + items: + type: string + x-go-name: AdditionalMacAddresses + Bridge: + type: string + EndpointID: + type: string + description: EndpointID is unused, maintained exclusively for compatibility. + Gateway: + type: string + description: Gateway is the IP address of the gateway this network will + use. + GlobalIPv6Address: + type: string + description: GlobalIPv6Address is the global-scope IPv6 Address for this + network. + GlobalIPv6PrefixLen: + type: integer + description: GlobalIPv6PrefixLen is the length of the subnet mask of this + network. + format: int64 + HairpinMode: + type: boolean + IPAddress: + type: string + description: IPAddress is the IP address for this network. + IPPrefixLen: + type: integer + description: IPPrefixLen is the length of the subnet mask of this network. + format: int64 + IPv6Gateway: + type: string + description: IPv6Gateway is the IPv6 gateway this network will use. + LinkLocalIPv6Address: + type: string + LinkLocalIPv6PrefixLen: + type: integer + format: int64 + MacAddress: + type: string + description: MacAddress is the MAC address for the interface in this network. + Networks: + type: object + additionalProperties: + $ref: '#/components/schemas/InspectAdditionalNetwork' + description: |- + Networks contains information on non-default CNI networks this + container has joined. + It is a map of network name to network information. + Ports: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InspectHostPort' + SandboxID: + type: string + SandboxKey: + type: string + SecondaryIPAddresses: + type: array + description: |- + SecondaryIPAddresses is a list of extra IP Addresses that the + container has been assigned in this network. + items: + type: string + SecondaryIPv6Addresses: + type: array + description: |- + SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the + container has been assigned in this networ. + items: + type: string + description: |- + InspectNetworkSettings holds information about the network settings of the + container. + Many fields are maintained only for compatibility with `docker inspect` and + are unused within Libpod. + example: + HairpinMode: true + Networks: + key: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 5 + IPPrefixLen: 6 + AdditionalMACAddresses: + - AdditionalMACAddresses + - AdditionalMACAddresses + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + key: IPAMConfig + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + SecondaryIPv6Addresses: + - SecondaryIPv6Addresses + - SecondaryIPv6Addresses + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - SecondaryIPAddresses + - SecondaryIPAddresses + IPAddress: IPAddress + SandboxKey: SandboxKey + GlobalIPv6Address: GlobalIPv6Address + Ports: + key: + - null + - null + GlobalIPv6PrefixLen: 2 + IPPrefixLen: 6 + AdditionalMACAddresses: + - AdditionalMACAddresses + - AdditionalMACAddresses + MacAddress: MacAddress + SandboxID: SandboxID + LinkLocalIPv6Address: LinkLocalIPv6Address + LinkLocalIPv6PrefixLen: 6 + Gateway: Gateway + EndpointID: EndpointID + SecondaryIPv6Addresses: + - SecondaryIPv6Addresses + - SecondaryIPv6Addresses + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - SecondaryIPAddresses + - SecondaryIPAddresses + IPAddress: IPAddress + Bridge: Bridge + x-go-package: github.com/containers/podman/libpod/define + InspectPodContainerInfo: + title: InspectPodContainerInfo contains information on a container in a pod. + type: object + properties: + Id: + type: string + description: ID is the ID of the container. + x-go-name: ID + Name: + type: string + description: Name is the name of the container. + State: + type: string + description: State is the current status of the container. + example: + State: State + Id: Id + Name: Name + x-go-package: github.com/containers/podman/libpod/define + InspectPodInfraConfig: + type: object + properties: + DNSOption: + type: array + description: |- + DNSOption is a set of DNS options that will be used by the infra + container's resolv.conf and shared with the remainder of the pod. + items: + type: string + DNSSearch: + type: array + description: |- + DNSSearch is a set of DNS search domains that will be used by the + infra container's resolv.conf and shared with the remainder of the + pod. + items: + type: string + DNSServer: + type: array + description: |- + DNSServer is a set of DNS Servers that will be used by the infra + container's resolv.conf and shared with the remainder of the pod. + items: + type: string + HostAdd: + type: array + description: |- + HostAdd adds a number of hosts to the infra container's resolv.conf + which will be shared with the rest of the pod. + items: + type: string + HostNetwork: + type: boolean + description: |- + HostNetwork is whether the infra container (and thus the whole pod) + will use the host's network and not create a network namespace. + NetworkOptions: + type: object + additionalProperties: + type: array + items: + type: string + description: NetworkOptions are additional options for each network + Networks: + type: array + description: Networks is a list of CNI networks the pod will join. + items: + type: string + NoManageHosts: + type: boolean + description: |- + NoManageHosts indicates that the pod will not manage /etc/hosts and + instead each container will handle their own. + NoManageResolvConf: + type: boolean + description: |- + NoManageResolvConf indicates that the pod will not manage resolv.conf + and instead each container will handle their own. + PortBindings: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InspectHostPort' + description: |- + PortBindings are ports that will be forwarded to the infra container + and then shared with the pod. + StaticIP: + $ref: '#/components/schemas/IP' + StaticMAC: + $ref: '#/components/schemas/HardwareAddr' + description: |- + InspectPodInfraConfig contains the configuration of the pod's infra + container. + example: + NetworkOptions: + key: + - NetworkOptions + - NetworkOptions + Networks: + - Networks + - Networks + DNSOption: + - DNSOption + - DNSOption + NoManageHosts: true + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + DNSServer: + - DNSServer + - DNSServer + StaticIP: + - 0 + - 0 + DNSSearch: + - DNSSearch + - DNSSearch + HostNetwork: true + HostAdd: + - HostAdd + - HostAdd + NoManageResolvConf: true + StaticMAC: + - 6 + - 6 + x-go-package: github.com/containers/podman/libpod/define + InspectRestartPolicy: + title: InspectRestartPolicy holds information about the container's restart + policy. + type: object + properties: + MaximumRetryCount: + type: integer + description: |- + MaximumRetryCount is the maximum number of retries allowed if the + "on-failure" restart policy is in use. Not used if "on-failure" is + not set. + format: uint64 + Name: + type: string + description: |- + Name contains the container's restart policy. + Allowable values are "no" or "" (take no action), + "on-failure" (restart on non-zero exit code, with an optional max + retry count), and "always" (always restart on container stop, unless + explicitly requested by API). + Note that this is NOT actually a name of any sort - the poor naming + is for Docker compatibility. + example: + MaximumRetryCount: 6 + Name: Name + x-go-package: github.com/containers/podman/libpod/define + InspectUlimit: + title: InspectUlimit is a ulimit that will be applied to the container. + type: object + properties: + Hard: + type: integer + description: Hard is the hard limit that will be applied. + format: uint64 + Name: + type: string + description: Name is the name (type) of the ulimit. + Soft: + type: integer + description: Soft is the soft limit that will be applied. + format: uint64 + example: + Hard: 6 + Soft: 1 + Name: Name + x-go-package: github.com/containers/podman/libpod/define + IpcConfig: + type: object + properties: + IpcMode: + $ref: '#/components/schemas/IpcMode' + description: IpcConfig configures the ipc namespace for the container + x-go-package: github.com/containers/podman/pkg/spec + IpcMode: + title: IpcMode represents the container ipc stack. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + Isolation: + type: string + description: |- + Isolation represents the isolation technology of a container. The supported + values are platform specific + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + LibpodContainersPruneReport: + type: object + properties: + error: + type: string + x-go-name: PruneError + id: + type: string + x-go-name: ID + space: + type: integer + format: int64 + x-go-name: SpaceReclaimed + example: + id: id + error: error + space: 0 + x-go-package: github.com/containers/podman/pkg/api/handlers + LibpodImagesPullReport: + type: object + properties: + error: + type: string + description: Error contains text of errors from c/image + x-go-name: Error + id: + type: string + description: ID contains image id (retained for backwards compatibility) + x-go-name: ID + images: + type: array + description: Images contains the ID's of the images pulled + items: + type: string + x-go-name: Images + stream: + type: string + description: Stream used to provide output from c/image + x-go-name: Stream + example: + images: + - images + - images + stream: stream + id: id + error: error + x-go-package: github.com/containers/podman/pkg/api/handlers + LibpodImagesRemoveReport: + type: object + properties: + Deleted: + type: array + description: Deleted images. + items: + type: string + Errors: + type: array + description: Image removal requires is to return data and an error. + items: + type: string + ExitCode: + type: integer + description: |- + ExitCode describes the exit codes as described in the `podman rmi` + man page. + format: int64 + Untagged: + type: array + description: Untagged images. Can be longer than Deleted. + items: + type: string + description: |- + LibpodImagesRemoveReport is the return type for image removal via the rest + api. + example: + Errors: + - Errors + - Errors + ExitCode: 0 + Deleted: + - Deleted + - Deleted + Untagged: + - Untagged + - Untagged + x-go-package: github.com/containers/podman/pkg/api/handlers + LinuxBlockIO: + type: object + properties: + leafWeight: + type: integer + description: Specifies tasks' weight in the given cgroup while competing + with the cgroup's child cgroups, CFQ scheduler only + format: uint16 + x-go-name: LeafWeight + throttleReadBpsDevice: + type: array + description: IO read rate limit per cgroup per device, bytes per second + items: + $ref: '#/components/schemas/LinuxThrottleDevice' + x-go-name: ThrottleReadBpsDevice + throttleReadIOPSDevice: + type: array + description: IO read rate limit per cgroup per device, IO per second + items: + $ref: '#/components/schemas/LinuxThrottleDevice' + x-go-name: ThrottleReadIOPSDevice + throttleWriteBpsDevice: + type: array + description: IO write rate limit per cgroup per device, bytes per second + items: + $ref: '#/components/schemas/LinuxThrottleDevice' + x-go-name: ThrottleWriteBpsDevice + throttleWriteIOPSDevice: + type: array + description: IO write rate limit per cgroup per device, IO per second + items: + $ref: '#/components/schemas/LinuxThrottleDevice' + x-go-name: ThrottleWriteIOPSDevice + weight: + type: integer + description: Specifies per cgroup weight + format: uint16 + x-go-name: Weight + weightDevice: + type: array + description: Weight per cgroup per device, can override BlkioWeight + items: + $ref: '#/components/schemas/LinuxWeightDevice' + x-go-name: WeightDevice + description: LinuxBlockIO for Linux cgroup 'blkio' resource management + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxCPU: + type: object + properties: + cpus: + type: string + description: CPUs to use within the cpuset. Default is to use any CPU available. + x-go-name: Cpus + mems: + type: string + description: List of memory nodes in the cpuset. Default is to use any available + memory node. + x-go-name: Mems + period: + type: integer + description: CPU period to be used for hardcapping (in usecs). + format: uint64 + x-go-name: Period + quota: + type: integer + description: CPU hardcap limit (in usecs). Allowed cpu time in a given period. + format: int64 + x-go-name: Quota + realtimePeriod: + type: integer + description: CPU period to be used for realtime scheduling (in usecs). + format: uint64 + x-go-name: RealtimePeriod + realtimeRuntime: + type: integer + description: How much time realtime scheduling may use (in usecs). + format: int64 + x-go-name: RealtimeRuntime + shares: + type: integer + description: CPU shares (relative weight (ratio) vs. other cgroups with + cpu shares). + format: uint64 + x-go-name: Shares + description: LinuxCPU for Linux cgroup 'cpu' resource management + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxDevice: + type: object + properties: + fileMode: + $ref: '#/components/schemas/FileMode' + gid: + type: integer + description: Gid of the device. + format: uint32 + x-go-name: GID + major: + type: integer + description: Major is the device's major number. + format: int64 + x-go-name: Major + minor: + type: integer + description: Minor is the device's minor number. + format: int64 + x-go-name: Minor + path: + type: string + description: Path to the device. + x-go-name: Path + type: + type: string + description: Device type, block, char, etc. + x-go-name: Type + uid: + type: integer + description: UID of the device. + format: uint32 + x-go-name: UID + description: LinuxDevice represents the mknod information for a Linux special + device file + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxDeviceCgroup: + type: object + properties: + access: + type: string + description: Cgroup access permissions format, rwm. + x-go-name: Access + allow: + type: boolean + description: Allow or deny + x-go-name: Allow + major: + type: integer + description: Major is the device's major number. + format: int64 + x-go-name: Major + minor: + type: integer + description: Minor is the device's minor number. + format: int64 + x-go-name: Minor + type: + type: string + description: Device type, block, char, etc. + x-go-name: Type + description: |- + LinuxDeviceCgroup represents a device rule for the devices specified to + the device controller + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxHugepageLimit: + type: object + properties: + limit: + type: integer + description: Limit is the limit of "hugepagesize" hugetlb usage + format: uint64 + x-go-name: Limit + pageSize: + type: string + description: |- + Pagesize is the hugepage size + Format: "B' (e.g. 64KB, 2MB, 1GB, etc.) + x-go-name: Pagesize + description: LinuxHugepageLimit structure corresponds to limiting kernel hugepages + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxInterfacePriority: + type: object + properties: + name: + type: string + description: Name is the name of the network interface + x-go-name: Name + priority: + type: integer + description: Priority for the interface + format: uint32 + x-go-name: Priority + description: LinuxInterfacePriority for network interfaces + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxMemory: + type: object + properties: + disableOOMKiller: + type: boolean + description: DisableOOMKiller disables the OOM killer for out of memory + conditions + x-go-name: DisableOOMKiller + kernel: + type: integer + description: Kernel memory limit (in bytes). + format: int64 + x-go-name: Kernel + kernelTCP: + type: integer + description: Kernel memory limit for tcp (in bytes) + format: int64 + x-go-name: KernelTCP + limit: + type: integer + description: Memory limit (in bytes). + format: int64 + x-go-name: Limit + reservation: + type: integer + description: Memory reservation or soft_limit (in bytes). + format: int64 + x-go-name: Reservation + swap: + type: integer + description: Total memory limit (memory + swap). + format: int64 + x-go-name: Swap + swappiness: + type: integer + description: How aggressive the kernel will swap memory pages. + format: uint64 + x-go-name: Swappiness + useHierarchy: + type: boolean + description: Enables hierarchical memory accounting + x-go-name: UseHierarchy + description: LinuxMemory for Linux cgroup 'memory' resource management + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxNetwork: + type: object + properties: + classID: + type: integer + description: Set class identifier for container's network packets + format: uint32 + x-go-name: ClassID + priorities: + type: array + description: Set priority of network traffic for container + items: + $ref: '#/components/schemas/LinuxInterfacePriority' + x-go-name: Priorities + description: LinuxNetwork identification and priority configuration + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxPids: + type: object + properties: + limit: + type: integer + description: Maximum number of PIDs. Default is "no limit". + format: int64 + x-go-name: Limit + description: LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3) + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxRdma: + type: object + properties: + hcaHandles: + type: integer + description: Maximum number of HCA handles that can be opened. Default is + "no limit". + format: uint32 + x-go-name: HcaHandles + hcaObjects: + type: integer + description: Maximum number of HCA objects that can be created. Default + is "no limit". + format: uint32 + x-go-name: HcaObjects + description: LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11) + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxResources: + type: object + properties: + blockIO: + $ref: '#/components/schemas/LinuxBlockIO' + cpu: + $ref: '#/components/schemas/LinuxCPU' + devices: + type: array + description: Devices configures the device allowlist. + items: + $ref: '#/components/schemas/LinuxDeviceCgroup' + x-go-name: Devices + hugepageLimits: + type: array + description: Hugetlb limit (in bytes) + items: + $ref: '#/components/schemas/LinuxHugepageLimit' + x-go-name: HugepageLimits + memory: + $ref: '#/components/schemas/LinuxMemory' + network: + $ref: '#/components/schemas/LinuxNetwork' + pids: + $ref: '#/components/schemas/LinuxPids' + rdma: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxRdma' + description: |- + Rdma resource restriction configuration. + Limits are a set of key value pairs that define RDMA resource limits, + where the key is device name and value is resource limits. + x-go-name: Rdma + unified: + type: object + additionalProperties: + type: string + description: Unified resources. + x-go-name: Unified + description: LinuxResources has container runtime resource constraints + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxThrottleDevice: + type: object + properties: + major: + type: integer + description: Major is the device's major number. + format: int64 + x-go-name: Major + minor: + type: integer + description: Minor is the device's minor number. + format: int64 + x-go-name: Minor + rate: + type: integer + description: Rate is the IO rate limit per cgroup per device + format: uint64 + x-go-name: Rate + description: LinuxThrottleDevice struct holds a `major:minor rate_per_second` + pair + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + LinuxWeightDevice: + type: object + properties: + leafWeight: + type: integer + description: LeafWeight is the bandwidth rate for the device while competing + with the cgroup's child cgroups, CFQ scheduler only + format: uint16 + x-go-name: LeafWeight + major: + type: integer + description: Major is the device's major number. + format: int64 + x-go-name: Major + minor: + type: integer + description: Minor is the device's minor number. + format: int64 + x-go-name: Minor + weight: + type: integer + description: Weight is the bandwidth rate for the device. + format: uint16 + x-go-name: Weight + description: LinuxWeightDevice struct holds a `major:minor weight` pair for + weightDevice + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + List: + title: List is an interface for parsing, modifying lists of image manifests. + type: object + properties: + Clone: + $ref: '#/components/schemas/List' + Instances: + type: array + description: Instances returns a list of the manifests that this list knows + of, other than its own. + items: + $ref: '#/components/schemas/Digest' + MIMEType: + type: string + description: MIMEType returns the MIME type of this particular manifest + list. + description: |- + Callers can either use this abstract interface without understanding the details of the formats, + or instantiate a specific implementation (e.g. manifest.OCI1Index) and access the public members + directly. + example: + Instances: + - Instances + - Instances + MIMEType: MIMEType + Clone: null + x-go-package: github.com/containers/podman/vendor/github.com/containers/image/v5/manifest + ListContainer: + type: object + properties: + Command: + type: array + description: Container command + items: + type: string + Created: + type: integer + description: Container creation time + format: int64 + CreatedAt: + type: string + description: Human readable container creation time. + ExitCode: + type: integer + description: If container has exited, the return code from the command + format: int32 + Exited: + type: boolean + description: If container has exited/stopped + ExitedAt: + type: integer + description: Time container exited + format: int64 + Id: + type: string + description: The unique identifier for the container + x-go-name: ID + Image: + type: string + description: Container image + ImageID: + type: string + description: Container image ID + IsInfra: + type: boolean + description: If this container is a Pod infra container + Labels: + type: object + additionalProperties: + type: string + description: Labels for container + Mounts: + type: array + description: User volume mounts + items: + type: string + Names: + type: array + description: The names assigned to the container + items: + type: string + Namespaces: + $ref: '#/components/schemas/ListContainerNamespaces' + Pid: + type: integer + description: The process id of the container + format: int64 + Pod: + type: string + description: |- + If the container is part of Pod, the Pod ID. Requires the pod + boolean to be set + PodName: + type: string + description: |- + If the container is part of Pod, the Pod name. Requires the pod + boolean to be set + Ports: + type: array + description: Port mappings + items: + $ref: '#/components/schemas/PortMapping' + Size: + $ref: '#/components/schemas/ContainerSize' + StartedAt: + type: integer + description: Time when container started + format: int64 + State: + type: string + description: State of container + Status: + type: string + description: Status is a human-readable approximation of a duration for + json output + description: Listcontainer describes a container suitable for listing + example: + Status: Status + Namespaces: + Mnt: Mnt + User: User + Uts: Uts + Pidns: Pidns + Cgroup: Cgroup + Net: Net + Ipc: Ipc + Mounts: + - Mounts + - Mounts + Pod: Pod + Size: + rootFsSize: 9 + rwSize: 3 + CreatedAt: CreatedAt + ExitCode: 6 + Ports: + - container_port: 5 + host_ip: host_ip + protocol: protocol + host_port: 2 + range: 7 + - container_port: 5 + host_ip: host_ip + protocol: protocol + host_port: 2 + range: 7 + Labels: + key: Labels + Pid: 5 + ExitedAt: 1 + Image: Image + Created: 0 + Names: + - Names + - Names + PodName: PodName + Command: + - Command + - Command + State: State + Exited: true + ImageID: ImageID + IsInfra: true + Id: Id + StartedAt: 2 + x-go-package: github.com/containers/podman/pkg/domain/entities + ListContainerNamespaces: + type: object + properties: + Cgroup: + type: string + description: Cgroup namespace + Ipc: + type: string + description: IPC namespace + x-go-name: IPC + Mnt: + type: string + description: Mount namespace + x-go-name: MNT + Net: + type: string + description: Network namespace + x-go-name: NET + Pidns: + type: string + description: PID namespace + x-go-name: PIDNS + User: + type: string + description: User namespace + Uts: + type: string + description: UTS namespace + x-go-name: UTS + description: ListContainer Namespaces contains the identifiers of the container's + Linux namespaces + example: + Mnt: Mnt + User: User + Uts: Uts + Pidns: Pidns + Cgroup: Cgroup + Net: Net + Ipc: Ipc + x-go-package: github.com/containers/podman/pkg/domain/entities + ListPodContainer: + type: object + properties: + Id: + type: string + Names: + type: string + Status: + type: string + example: + Names: Names + Status: Status + Id: Id + x-go-package: github.com/containers/podman/pkg/domain/entities + ListPodsReport: + type: object + properties: + Cgroup: + type: string + Containers: + type: array + items: + $ref: '#/components/schemas/ListPodContainer' + Created: + type: string + format: date-time + Id: + type: string + InfraId: + type: string + Labels: + type: object + additionalProperties: + type: string + Name: + type: string + Namespace: + type: string + Status: + type: string + example: + Status: Status + InfraId: InfraId + Containers: + - Names: Names + Status: Status + Id: Id + - Names: Names + Status: Status + Id: Id + Cgroup: Cgroup + Labels: + key: Labels + Id: Id + Namespace: Namespace + Created: 2000-01-23T04:56:07.000+00:00 + Name: Name + x-go-package: github.com/containers/podman/pkg/domain/entities + ListRegistriesReport: + type: object + properties: + Registries: + type: array + items: + type: string + description: |- + ListRegistriesReport is the report when querying for a sorted list of + registries which may be contacted during certain operations. + x-go-package: github.com/containers/podman/pkg/domain/entities + LogConfig: + type: object + properties: + driver: + type: string + description: |- + LogDriver is the container's log driver. + Optional. + x-go-name: Driver + options: + type: object + additionalProperties: + type: string + description: |- + A set of options to accompany the log driver. + Optional. + x-go-name: Options + path: + type: string + description: |- + LogPath is the path the container's logs will be stored at. + Only available if LogDriver is set to "json-file" or "k8s-file". + Optional. + x-go-name: Path + description: LogConfig describes the logging characteristics for a container + example: + path: path + driver: driver + options: + key: options + x-go-package: github.com/containers/podman/pkg/specgen + ManifestAddOpts: + type: object + properties: + all: + type: boolean + x-go-name: All + annotation: + type: object + additionalProperties: + type: string + x-go-name: Annotation + arch: + type: string + x-go-name: Arch + features: + type: array + items: + type: string + x-go-name: Features + images: + type: array + items: + type: string + x-go-name: Images + os: + type: string + x-go-name: OS + os_version: + type: string + x-go-name: OSVersion + variant: + type: string + x-go-name: Variant + description: Options for adding a manifest + x-go-package: github.com/containers/podman/libpod/image + Mount: + title: Mount specifies a mount for a container. + type: object + properties: + destination: + type: string + description: Destination is the absolute path where the mount will be placed + in the container. + x-go-name: Destination + options: + type: array + description: Options are fstab style mount options. + items: + type: string + x-go-name: Options + source: + type: string + description: Source specifies the source path of the mount. + x-go-name: Source + type: + type: string + description: Type specifies the mount kind. + x-go-name: Type + example: + destination: destination + options: + - options + - options + source: source + type: type + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + MountPoint: + title: MountPoint represents a mount point configuration inside the container. + type: object + properties: + Destination: + type: string + Driver: + type: string + Mode: + type: string + Name: + type: string + Propagation: + $ref: '#/components/schemas/Propagation' + RW: + type: boolean + Source: + type: string + Type: + $ref: '#/components/schemas/Type' + description: This is used for reporting the mountpoints in use by a container. + example: + Destination: Destination + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + NamedVolume: + type: object + properties: + Dest: + type: string + description: |- + Destination to mount the named volume within the container. Must be + an absolute path. Path will be created if it does not exist. + Name: + type: string + description: |- + Name is the name of the named volume to be mounted. May be empty. + If empty, a new named volume with a pseudorandomly generated name + will be mounted at the given destination. + Options: + type: array + description: Options are options that the named volume will be mounted with. + items: + type: string + description: |- + NamedVolume holds information about a named volume that will be mounted into + the container. + x-go-package: github.com/containers/podman/pkg/specgen + Namespace: + type: object + properties: + nsmode: + $ref: '#/components/schemas/NamespaceMode' + string: + type: string + x-go-name: Value + description: Namespace describes the namespace + x-go-package: github.com/containers/podman/pkg/specgen + NamespaceMode: + type: string + x-go-package: github.com/containers/podman/pkg/specgen + NetworkConfig: + type: object + properties: + DNSOpt: + type: array + items: + type: string + DNSSearch: + type: array + items: + type: string + DNSServers: + type: array + items: + type: string + ExposedPorts: + type: object + additionalProperties: + type: object + properties: {} + example: {} + HTTPProxy: + type: boolean + IP6Address: + type: string + IPAddress: + type: string + LinkLocalIP: + type: array + items: + type: string + MacAddress: + type: string + NetMode: + $ref: '#/components/schemas/NetworkMode' + Network: + type: string + NetworkAlias: + type: array + items: + type: string + PortBindings: + $ref: '#/components/schemas/PortMap' + Publish: + type: array + items: + type: string + PublishAll: + type: boolean + description: NetworkConfig configures the network namespace for the container + example: + IP6Address: IP6Address + NetMode: NetMode + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + HTTPProxy: true + MacAddress: MacAddress + ExposedPorts: + key: {} + PublishAll: true + DNSOpt: + - DNSOpt + - DNSOpt + NetworkAlias: + - NetworkAlias + - NetworkAlias + LinkLocalIP: + - LinkLocalIP + - LinkLocalIP + Network: Network + DNSSearch: + - DNSSearch + - DNSSearch + IPAddress: IPAddress + DNSServers: + - DNSServers + - DNSServers + Publish: + - Publish + - Publish + x-go-package: github.com/containers/podman/pkg/spec + NetworkCreate: + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + description: NetworkCreate is the expected body of the "create network" http + request message + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + NetworkCreateOptions: + type: object + properties: + DisableDNS: + type: boolean + Driver: + type: string + Gateway: + $ref: '#/components/schemas/IP' + Internal: + type: boolean + MacVLAN: + type: string + Range: + $ref: '#/components/schemas/IPNet' + Subnet: + $ref: '#/components/schemas/IPNet' + description: NetworkCreateOptions describes options to create a network + x-go-package: github.com/containers/podman/pkg/domain/entities + NetworkCreateReport: + type: object + properties: + Filename: + type: string + description: NetworkCreateReport describes a created network for the cli + example: + Filename: Filename + x-go-package: github.com/containers/podman/pkg/domain/entities + NetworkCreateRequest: + title: NetworkCreateRequest is the request message sent to the server for network + create call. + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Name: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + NetworkInspectReport: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: NetworkInspectReport describes the results from inspect networks + x-go-package: github.com/containers/podman/pkg/domain/entities + x-schema-name: NetworkInspectReport + NetworkListReport: + type: object + properties: + Bytes: + type: array + items: + type: integer + format: uint8 + CNIVersion: + type: string + DisableCheck: + type: boolean + Name: + type: string + Plugins: + type: array + items: + $ref: '#/components/schemas/NetworkConfig' + description: NetworkListReport describes the results from listing networks + example: + Bytes: + - 0 + - 0 + DisableCheck: true + CNIVersion: CNIVersion + Name: Name + Plugins: + - IP6Address: IP6Address + NetMode: NetMode + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + HTTPProxy: true + MacAddress: MacAddress + ExposedPorts: + key: {} + PublishAll: true + DNSOpt: + - DNSOpt + - DNSOpt + NetworkAlias: + - NetworkAlias + - NetworkAlias + LinkLocalIP: + - LinkLocalIP + - LinkLocalIP + Network: Network + DNSSearch: + - DNSSearch + - DNSSearch + IPAddress: IPAddress + DNSServers: + - DNSServers + - DNSServers + Publish: + - Publish + - Publish + - IP6Address: IP6Address + NetMode: NetMode + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + HTTPProxy: true + MacAddress: MacAddress + ExposedPorts: + key: {} + PublishAll: true + DNSOpt: + - DNSOpt + - DNSOpt + NetworkAlias: + - NetworkAlias + - NetworkAlias + LinkLocalIP: + - LinkLocalIP + - LinkLocalIP + Network: Network + DNSSearch: + - DNSSearch + - DNSSearch + IPAddress: IPAddress + DNSServers: + - DNSServers + - DNSServers + Publish: + - Publish + - Publish + x-go-package: github.com/containers/podman/pkg/domain/entities + NetworkMode: + title: NetworkMode represents the container network stack. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + NetworkResource: + type: object + properties: + Attachable: + type: boolean + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Containers: + type: object + additionalProperties: + $ref: '#/components/schemas/EndpointResource' + Created: + type: string + format: date-time + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Id: + type: string + x-go-name: ID + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Name: + type: string + Options: + type: object + additionalProperties: + type: string + Peers: + type: array + items: + $ref: '#/components/schemas/PeerInfo' + Scope: + type: string + Services: + type: object + additionalProperties: + $ref: '#/components/schemas/ServiceInfo' + description: NetworkResource is the body of the "get network" http response + message + example: + Options: + key: Options + Internal: true + Peers: + - IP: IP + Name: Name + - IP: IP + Name: Name + Containers: + key: + EndpointID: EndpointID + IPv6Address: IPv6Address + MacAddress: MacAddress + IPv4Address: IPv4Address + Name: Name + Driver: Driver + Ingress: true + Labels: + key: Labels + EnableIPv6: true + Created: 2000-01-23T04:56:07.000+00:00 + Name: Name + ConfigOnly: true + IPAM: + Options: + key: Options + Config: + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + Driver: Driver + Services: + key: + Tasks: + - EndpointID: EndpointID + EndpointIP: EndpointIP + Info: + key: Info + Name: Name + - EndpointID: EndpointID + EndpointIP: EndpointIP + Info: + key: Info + Name: Name + Ports: + - Ports + - Ports + LocalLBIndex: 0 + VIP: VIP + Scope: Scope + ConfigFrom: + Network: Network + Id: Id + Attachable: true + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + NetworkRmReport: + type: object + properties: + Err: + type: string + Name: + type: string + description: NetworkRmReport describes the results of network removal + example: + Err: Err + Name: Name + x-go-package: github.com/containers/podman/pkg/domain/entities + NetworkSettings: + type: object + properties: + Bridge: + type: string + EndpointID: + type: string + Gateway: + type: string + GlobalIPv6Address: + type: string + GlobalIPv6PrefixLen: + type: integer + format: int64 + HairpinMode: + type: boolean + IPAddress: + type: string + IPPrefixLen: + type: integer + format: int64 + IPv6Gateway: + type: string + LinkLocalIPv6Address: + type: string + LinkLocalIPv6PrefixLen: + type: integer + format: int64 + MacAddress: + type: string + Networks: + type: object + additionalProperties: + $ref: '#/components/schemas/EndpointSettings' + Ports: + $ref: '#/components/schemas/PortMap' + SandboxID: + type: string + SandboxKey: + type: string + SecondaryIPAddresses: + type: array + items: + $ref: '#/components/schemas/Address' + SecondaryIPv6Addresses: + type: array + items: + $ref: '#/components/schemas/Address' + description: NetworkSettings exposes the network settings in the api + example: + HairpinMode: true + Networks: + key: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 6 + IPPrefixLen: 3 + Aliases: + - Aliases + - Aliases + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + LinkLocalIPs: + - LinkLocalIPs + - LinkLocalIPs + IPv6Address: IPv6Address + IPv4Address: IPv4Address + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + IPv6Gateway: IPv6Gateway + IPAddress: IPAddress + SandboxKey: SandboxKey + GlobalIPv6Address: GlobalIPv6Address + Ports: null + GlobalIPv6PrefixLen: 6 + IPPrefixLen: 6 + MacAddress: MacAddress + SandboxID: SandboxID + LinkLocalIPv6Address: LinkLocalIPv6Address + LinkLocalIPv6PrefixLen: 5 + Gateway: Gateway + EndpointID: EndpointID + SecondaryIPv6Addresses: + - null + - null + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - PrefixLen: 3 + Addr: Addr + - PrefixLen: 3 + Addr: Addr + IPAddress: IPAddress + Bridge: Bridge + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + OCIRuntimeInfo: + type: object + properties: + name: + type: string + x-go-name: Name + package: + type: string + x-go-name: Package + path: + type: string + x-go-name: Path + version: + type: string + x-go-name: Version + description: |- + OCIRuntimeInfo describes the runtime (crun or runc) being + used with podman + example: + path: path + package: package + name: name + version: version + x-go-package: github.com/containers/podman/libpod/define + OverlayVolume: + type: object + properties: + destination: + type: string + description: Destination is the absolute path where the mount will be placed + in the container. + x-go-name: Destination + source: + type: string + description: Source specifies the source path of the mount. + x-go-name: Source + description: |- + OverlayVolume holds information about a overlay volume that will be mounted into + the container. + x-go-package: github.com/containers/podman/pkg/specgen + POSIXRlimit: + type: object + properties: + hard: + type: integer + description: Hard is the hard limit for the specified type + format: uint64 + x-go-name: Hard + soft: + type: integer + description: Soft is the soft limit for the specified type + format: uint64 + x-go-name: Soft + type: + type: string + description: Type of the rlimit to set + x-go-name: Type + description: POSIXRlimit type and restrictions + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + PeerInfo: + type: object + properties: + IP: + type: string + Name: + type: string + description: PeerInfo represents one peer of an overlay network + example: + IP: IP + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + PidConfig: + type: object + properties: + PidMode: + $ref: '#/components/schemas/PidMode' + description: PidConfig configures the pid namespace for the container + x-go-package: github.com/containers/podman/pkg/spec + PidMode: + title: PidMode represents the pid namespace of the container. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + PlayKubePod: + type: object + properties: + Containers: + type: array + description: Containers - the IDs of the containers running in the created + pod. + items: + type: string + ID: + type: string + description: ID - ID of the pod created as a result of play kube. + Logs: + type: array + description: Logs - non-fatal errors and log messages while processing. + items: + type: string + description: PlayKubePod represents a single pod and associated containers created + by play kube + example: + Containers: + - Containers + - Containers + ID: ID + Logs: + - Logs + - Logs + x-go-package: github.com/containers/podman/pkg/domain/entities + PlayKubeReport: + title: PlayKubeReport contains the results of running play kube. + type: object + properties: + Pods: + type: array + description: Pods - pods created by play kube. + items: + $ref: '#/components/schemas/PlayKubePod' + example: + Pods: + - Containers: + - Containers + - Containers + ID: ID + Logs: + - Logs + - Logs + - Containers: + - Containers + - Containers + ID: ID + Logs: + - Logs + - Logs + x-go-package: github.com/containers/podman/pkg/domain/entities + Plugin: + required: + - Config + - Enabled + - Name + - Settings + type: object + properties: + Config: + $ref: '#/components/schemas/PluginConfig' + Enabled: + type: boolean + description: True if the plugin is running. False if the plugin is not running, + only installed. + Id: + type: string + description: Id + x-go-name: ID + Name: + type: string + description: name + PluginReference: + type: string + description: plugin remote reference used to push/pull the plugin + Settings: + $ref: '#/components/schemas/PluginSettings' + description: Plugin A plugin for the Engine API + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfig: + title: PluginConfig The config of a plugin. + required: + - Args + - Description + - Documentation + - Entrypoint + - Env + - Interface + - IpcHost + - Linux + - Mounts + - Network + - PidHost + - PropagatedMount + - WorkDir + type: object + properties: + Args: + $ref: '#/components/schemas/PluginConfigArgs' + Description: + type: string + description: description + DockerVersion: + type: string + description: Docker Version used to create the plugin + Documentation: + type: string + description: documentation + Entrypoint: + type: array + description: entrypoint + items: + type: string + Env: + type: array + description: env + items: + $ref: '#/components/schemas/PluginEnv' + Interface: + $ref: '#/components/schemas/PluginConfigInterface' + IpcHost: + type: boolean + description: ipc host + Linux: + $ref: '#/components/schemas/PluginConfigLinux' + Mounts: + type: array + description: mounts + items: + $ref: '#/components/schemas/PluginMount' + Network: + $ref: '#/components/schemas/PluginConfigNetwork' + PidHost: + type: boolean + description: pid host + PropagatedMount: + type: string + description: propagated mount + User: + $ref: '#/components/schemas/PluginConfigUser' + WorkDir: + type: string + description: work dir + rootfs: + $ref: '#/components/schemas/PluginConfigRootfs' + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigArgs: + required: + - Description + - Name + - Settable + - Value + type: object + properties: + Description: + type: string + description: description + Name: + type: string + description: name + Settable: + type: array + description: settable + items: + type: string + Value: + type: array + description: value + items: + type: string + description: PluginConfigArgs plugin config args + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigInterface: + required: + - Socket + - Types + type: object + properties: + ProtocolScheme: + type: string + description: Protocol to use for clients connecting to the plugin. + Socket: + type: string + description: socket + Types: + type: array + description: types + items: + $ref: '#/components/schemas/PluginInterfaceType' + description: PluginConfigInterface The interface between Docker and the plugin + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigLinux: + required: + - AllowAllDevices + - Capabilities + - Devices + type: object + properties: + AllowAllDevices: + type: boolean + description: allow all devices + Capabilities: + type: array + description: capabilities + items: + type: string + Devices: + type: array + description: devices + items: + $ref: '#/components/schemas/PluginDevice' + description: PluginConfigLinux plugin config linux + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigNetwork: + required: + - Type + type: object + properties: + Type: + type: string + description: type + description: PluginConfigNetwork plugin config network + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigRootfs: + type: object + properties: + diff_ids: + type: array + description: diff ids + items: + type: string + x-go-name: DiffIds + type: + type: string + description: type + x-go-name: Type + description: PluginConfigRootfs plugin config rootfs + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginConfigUser: + type: object + properties: + GID: + type: integer + description: g ID + format: uint32 + UID: + type: integer + description: UID + format: uint32 + description: PluginConfigUser plugin config user + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginDevice: + required: + - Description + - Name + - Path + - Settable + type: object + properties: + Description: + type: string + description: description + Name: + type: string + description: name + Path: + type: string + description: path + Settable: + type: array + description: settable + items: + type: string + description: PluginDevice plugin device + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginEnv: + required: + - Description + - Name + - Settable + - Value + type: object + properties: + Description: + type: string + description: description + Name: + type: string + description: name + Settable: + type: array + description: settable + items: + type: string + Value: + type: string + description: value + description: PluginEnv plugin env + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginInterfaceType: + required: + - Capability + - Prefix + - Version + type: object + properties: + Capability: + type: string + description: capability + Prefix: + type: string + description: prefix + Version: + type: string + description: version + description: PluginInterfaceType plugin interface type + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginMount: + required: + - Description + - Destination + - Name + - Options + - Settable + - Source + - Type + type: object + properties: + Description: + type: string + description: description + Destination: + type: string + description: destination + Name: + type: string + description: name + Options: + type: array + description: options + items: + type: string + Settable: + type: array + description: settable + items: + type: string + Source: + type: string + description: source + Type: + type: string + description: type + description: PluginMount plugin mount + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PluginSettings: + title: PluginSettings Settings that can be modified by users. + required: + - Args + - Devices + - Env + - Mounts + type: object + properties: + Args: + type: array + description: args + items: + type: string + Devices: + type: array + description: devices + items: + $ref: '#/components/schemas/PluginDevice' + Env: + type: array + description: env + items: + type: string + Mounts: + type: array + description: mounts + items: + $ref: '#/components/schemas/PluginMount' + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PodBasicConfig: + title: PodBasicConfig contains basic configuration options for pods. + type: object + properties: + hostname: + type: string + description: |- + Hostname is the pod's hostname. If not set, the name of the pod will + be used (if a name was not provided here, the name auto-generated for + the pod will be used). This will be used by the infra container and + all containers in the pod as long as the UTS namespace is shared. + Optional. + x-go-name: Hostname + infra_command: + type: array + description: |- + InfraCommand sets the command that will be used to start the infra + container. + If not set, the default set in the Libpod configuration file will be + used. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: InfraCommand + infra_conmon_pid_file: + type: string + description: |- + InfraConmonPidFile is a custom path to store the infra container's + conmon PID. + x-go-name: InfraConmonPidFile + infra_image: + type: string + description: |- + InfraImage is the image that will be used for the infra container. + If not set, the default set in the Libpod configuration file will be + used. + Conflicts with NoInfra=true. + Optional. + x-go-name: InfraImage + labels: + type: object + additionalProperties: + type: string + description: |- + Labels are key-value pairs that are used to add metadata to pods. + Optional. + x-go-name: Labels + name: + type: string + description: |- + Name is the name of the pod. + If not provided, a name will be generated when the pod is created. + Optional. + x-go-name: Name + no_infra: + type: boolean + description: |- + NoInfra tells the pod not to create an infra container. If this is + done, many networking-related options will become unavailable. + Conflicts with setting any options in PodNetworkConfig, and the + InfraCommand and InfraImages in this struct. + Optional. + x-go-name: NoInfra + pod_create_command: + type: array + description: |- + PodCreateCommand is the command used to create this pod. + This will be shown in the output of Inspect() on the pod, and may + also be used by some tools that wish to recreate the pod + (e.g. `podman generate systemd --new`). + Optional. + items: + type: string + x-go-name: PodCreateCommand + shared_namespaces: + type: array + description: |- + SharedNamespaces instructs the pod to share a set of namespaces. + Shared namespaces will be joined (by default) by every container + which joins the pod. + If not set and NoInfra is false, the pod will set a default set of + namespaces to share. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: SharedNamespaces + x-go-package: github.com/containers/podman/pkg/specgen + PodCgroupConfig: + title: PodCgroupConfig contains configuration options about a pod's cgroups. + type: object + properties: + cgroup_parent: + type: string + description: |- + CgroupParent is the parent for the CGroup that the pod will create. + This pod cgroup will, in turn, be the default cgroup parent for all + containers in the pod. + Optional. + x-go-name: CgroupParent + description: This will be expanded in future updates to pods. + x-go-package: github.com/containers/podman/pkg/specgen + PodCreateConfig: + type: object + properties: + cgroup-parent: + type: string + x-go-name: CGroupParent + hostname: + type: string + x-go-name: Hostname + infra: + type: boolean + x-go-name: Infra + infra-command: + type: string + x-go-name: InfraCommand + infra-image: + type: string + x-go-name: InfraImage + labels: + type: array + items: + type: string + x-go-name: Labels + name: + type: string + x-go-name: Name + publish: + type: array + items: + type: string + x-go-name: Publish + share: + type: string + x-go-name: Share + x-go-package: github.com/containers/podman/pkg/api/handlers + PodKillReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + PodNetworkConfig: + title: PodNetworkConfig contains networking configuration for a pod. + type: object + properties: + cni_networks: + type: array + description: |- + CNINetworks is a list of CNI networks that the infra container will + join. As, by default, containers share their network with the infra + container, these networks will effectively be joined by the + entire pod. + Only available when NetNS is set to Bridge, the default for root. + Optional. + items: + type: string + x-go-name: CNINetworks + dns_option: + type: array + description: |- + DNSOption is a set of DNS options that will be used in the infra + container's resolv.conf, which will, by default, be shared with all + containers in the pod. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: DNSOption + dns_search: + type: array + description: |- + DNSSearch is a set of DNS search domains that will be used in the + infra container's resolv.conf, which will, by default, be shared with + all containers in the pod. + If not provided, DNS search domains from the host's resolv.conf will + be used. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: DNSSearch + dns_server: + type: array + description: |- + DNSServer is a set of DNS servers that will be used in the infra + container's resolv.conf, which will, by default, be shared with all + containers in the pod. + If not provided, the host's DNS servers will be used, unless the only + server set is a localhost address. As the container cannot connect to + the host's localhost, a default server will instead be set. + Conflicts with NoInfra=true. + Optional. + items: + $ref: '#/components/schemas/IP' + x-go-name: DNSServer + hostadd: + type: array + description: |- + HostAdd is a set of hosts that will be added to the infra container's + etc/hosts that will, by default, be shared with all containers in + the pod. + Conflicts with NoInfra=true and NoManageHosts. + Optional. + items: + type: string + x-go-name: HostAdd + netns: + $ref: '#/components/schemas/Namespace' + network_options: + type: object + additionalProperties: + type: array + items: + type: string + description: |- + NetworkOptions are additional options for each network + Optional. + x-go-name: NetworkOptions + no_manage_hosts: + type: boolean + description: |- + NoManageHosts indicates that /etc/hosts should not be managed by the + pod. Instead, each container will create a separate /etc/hosts as + they would if not in a pod. + Conflicts with HostAdd. + x-go-name: NoManageHosts + no_manage_resolv_conf: + type: boolean + description: |- + NoManageResolvConf indicates that /etc/resolv.conf should not be + managed by the pod. Instead, each container will create and manage a + separate resolv.conf as if they had not joined a pod. + Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. + Optional. + x-go-name: NoManageResolvConf + portmappings: + type: array + description: |- + PortMappings is a set of ports to map into the infra container. + As, by default, containers share their network with the infra + container, this will forward the ports to the entire pod. + Only available if NetNS is set to Bridge or Slirp. + Optional. + items: + $ref: '#/components/schemas/PortMapping' + x-go-name: PortMappings + static_ip: + $ref: '#/components/schemas/IP' + static_mac: + $ref: '#/components/schemas/HardwareAddr' + x-go-package: github.com/containers/podman/pkg/specgen + PodPauseReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + PodPruneReport: + type: object + properties: + Err: + type: string + Id: + type: string + example: + Err: Err + Id: Id + x-go-package: github.com/containers/podman/pkg/domain/entities + PodRestartReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + PodRmReport: + type: object + properties: + Err: + type: string + Id: + type: string + example: + Err: Err + Id: Id + x-go-package: github.com/containers/podman/pkg/domain/entities + PodSpecGenerator: + type: object + properties: + cgroup_parent: + type: string + description: |- + CgroupParent is the parent for the CGroup that the pod will create. + This pod cgroup will, in turn, be the default cgroup parent for all + containers in the pod. + Optional. + x-go-name: CgroupParent + cni_networks: + type: array + description: |- + CNINetworks is a list of CNI networks that the infra container will + join. As, by default, containers share their network with the infra + container, these networks will effectively be joined by the + entire pod. + Only available when NetNS is set to Bridge, the default for root. + Optional. + items: + type: string + x-go-name: CNINetworks + dns_option: + type: array + description: |- + DNSOption is a set of DNS options that will be used in the infra + container's resolv.conf, which will, by default, be shared with all + containers in the pod. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: DNSOption + dns_search: + type: array + description: |- + DNSSearch is a set of DNS search domains that will be used in the + infra container's resolv.conf, which will, by default, be shared with + all containers in the pod. + If not provided, DNS search domains from the host's resolv.conf will + be used. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: DNSSearch + dns_server: + type: array + description: |- + DNSServer is a set of DNS servers that will be used in the infra + container's resolv.conf, which will, by default, be shared with all + containers in the pod. + If not provided, the host's DNS servers will be used, unless the only + server set is a localhost address. As the container cannot connect to + the host's localhost, a default server will instead be set. + Conflicts with NoInfra=true. + Optional. + items: + $ref: '#/components/schemas/IP' + x-go-name: DNSServer + hostadd: + type: array + description: |- + HostAdd is a set of hosts that will be added to the infra container's + etc/hosts that will, by default, be shared with all containers in + the pod. + Conflicts with NoInfra=true and NoManageHosts. + Optional. + items: + type: string + x-go-name: HostAdd + hostname: + type: string + description: |- + Hostname is the pod's hostname. If not set, the name of the pod will + be used (if a name was not provided here, the name auto-generated for + the pod will be used). This will be used by the infra container and + all containers in the pod as long as the UTS namespace is shared. + Optional. + x-go-name: Hostname + infra_command: + type: array + description: |- + InfraCommand sets the command that will be used to start the infra + container. + If not set, the default set in the Libpod configuration file will be + used. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: InfraCommand + infra_conmon_pid_file: + type: string + description: |- + InfraConmonPidFile is a custom path to store the infra container's + conmon PID. + x-go-name: InfraConmonPidFile + infra_image: + type: string + description: |- + InfraImage is the image that will be used for the infra container. + If not set, the default set in the Libpod configuration file will be + used. + Conflicts with NoInfra=true. + Optional. + x-go-name: InfraImage + labels: + type: object + additionalProperties: + type: string + description: |- + Labels are key-value pairs that are used to add metadata to pods. + Optional. + x-go-name: Labels + name: + type: string + description: |- + Name is the name of the pod. + If not provided, a name will be generated when the pod is created. + Optional. + x-go-name: Name + netns: + $ref: '#/components/schemas/Namespace' + network_options: + type: object + additionalProperties: + type: array + items: + type: string + description: |- + NetworkOptions are additional options for each network + Optional. + x-go-name: NetworkOptions + no_infra: + type: boolean + description: |- + NoInfra tells the pod not to create an infra container. If this is + done, many networking-related options will become unavailable. + Conflicts with setting any options in PodNetworkConfig, and the + InfraCommand and InfraImages in this struct. + Optional. + x-go-name: NoInfra + no_manage_hosts: + type: boolean + description: |- + NoManageHosts indicates that /etc/hosts should not be managed by the + pod. Instead, each container will create a separate /etc/hosts as + they would if not in a pod. + Conflicts with HostAdd. + x-go-name: NoManageHosts + no_manage_resolv_conf: + type: boolean + description: |- + NoManageResolvConf indicates that /etc/resolv.conf should not be + managed by the pod. Instead, each container will create and manage a + separate resolv.conf as if they had not joined a pod. + Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. + Optional. + x-go-name: NoManageResolvConf + pod_create_command: + type: array + description: |- + PodCreateCommand is the command used to create this pod. + This will be shown in the output of Inspect() on the pod, and may + also be used by some tools that wish to recreate the pod + (e.g. `podman generate systemd --new`). + Optional. + items: + type: string + x-go-name: PodCreateCommand + portmappings: + type: array + description: |- + PortMappings is a set of ports to map into the infra container. + As, by default, containers share their network with the infra + container, this will forward the ports to the entire pod. + Only available if NetNS is set to Bridge or Slirp. + Optional. + items: + $ref: '#/components/schemas/PortMapping' + x-go-name: PortMappings + shared_namespaces: + type: array + description: |- + SharedNamespaces instructs the pod to share a set of namespaces. + Shared namespaces will be joined (by default) by every container + which joins the pod. + If not set and NoInfra is false, the pod will set a default set of + namespaces to share. + Conflicts with NoInfra=true. + Optional. + items: + type: string + x-go-name: SharedNamespaces + static_ip: + $ref: '#/components/schemas/IP' + static_mac: + $ref: '#/components/schemas/HardwareAddr' + description: PodSpecGenerator describes options to create a pod + x-go-package: github.com/containers/podman/pkg/specgen + PodStartReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + PodStatsReport: + title: PodStatsReport includes pod-resource statistics data. + type: object + properties: + BlockIO: + type: string + CID: + type: string + CPU: + type: string + Mem: + type: string + MemUsage: + type: string + Name: + type: string + NetIO: + type: string + PIDS: + type: string + Pod: + type: string + x-go-package: github.com/containers/podman/pkg/domain/entities + PodStopReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + PodUnpauseReport: + type: object + properties: + Errs: + type: array + items: + type: string + Id: + type: string + example: + Id: Id + Errs: + - Errs + - Errs + x-go-package: github.com/containers/podman/pkg/domain/entities + Policy: + title: Policy denotes a seccomp policy. + type: integer + format: int64 + x-go-package: github.com/containers/podman/pkg/seccomp + Port: + required: + - PrivatePort + - Type + type: object + properties: + IP: + type: string + description: Host IP address that the container's port is mapped to + PrivatePort: + type: integer + description: Port on the container + format: uint16 + PublicPort: + type: integer + description: Port exposed on the host + format: uint16 + Type: + type: string + description: type + description: Port An open port on a container + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + PortBinding: + type: object + properties: + HostIp: + type: string + description: HostIP is the host IP Address + x-go-name: HostIP + HostPort: + type: string + description: HostPort is the host port number + description: PortBinding represents a binding between a Host IP address and + a Host Port + example: + HostIp: HostIp + HostPort: HostPort + x-go-package: github.com/containers/podman/vendor/github.com/docker/go-connections/nat + PortMap: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/PortBinding' + description: PortMap is a collection of PortBinding indexed by Port + x-go-package: github.com/containers/podman/vendor/github.com/docker/go-connections/nat + x-schema-name: PortMap + PortMapping: + title: PortMapping is one or more ports that will be mapped into the container. + type: object + properties: + container_port: + type: integer + description: |- + ContainerPort is the port number that will be exposed from the + container. + Mandatory. + format: uint16 + x-go-name: ContainerPort + host_ip: + type: string + description: |- + HostIP is the IP that we will bind to on the host. + If unset, assumed to be 0.0.0.0 (all interfaces). + x-go-name: HostIP + host_port: + type: integer + description: |- + HostPort is the port number that will be forwarded from the host into + the container. + If omitted, a random port on the host (guaranteed to be over 1024) + will be assigned. + format: uint16 + x-go-name: HostPort + protocol: + type: string + description: |- + Protocol is the protocol forward. + Must be either "tcp", "udp", and "sctp", or some combination of these + separated by commas. + If unset, assumed to be TCP. + x-go-name: Protocol + range: + type: integer + description: |- + Range is the number of ports that will be forwarded, starting at + HostPort and ContainerPort and counting up. + This is 1-indexed, so 1 is assumed to be a single port (only the + Hostport:Containerport mapping will be added), 2 is two ports (both + Hostport:Containerport and Hostport+1:Containerport+1), etc. + If unset, assumed to be 1 (a single port). + Both hostport + range and containerport + range must be less than + 65536. + format: uint16 + x-go-name: Range + example: + container_port: 5 + host_ip: host_ip + protocol: protocol + host_port: 2 + range: 7 + x-go-package: github.com/containers/podman/pkg/specgen + PortSet: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: PortSet is a collection of structs indexed by Port + x-go-package: github.com/containers/podman/vendor/github.com/docker/go-connections/nat + x-schema-name: PortSet + Propagation: + title: Propagation represents the propagation of a mount. + type: string + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/mount + RemoteSocket: + type: object + properties: + exists: + type: boolean + x-go-name: Exists + path: + type: string + x-go-name: Path + description: RemoteSocket describes information about the API socket + example: + path: path + exists: true + x-go-package: github.com/containers/podman/libpod/define + Report: + type: object + properties: + Err: + type: object + additionalProperties: + type: string + Id: + type: array + items: + type: string + example: + Err: + key: Err + Id: + - Id + - Id + x-go-package: github.com/containers/podman/pkg/domain/entities + RestartPolicy: + title: RestartPolicy represents the restart policies of the container. + type: object + properties: + MaximumRetryCount: + type: integer + format: int64 + Name: + type: string + example: + MaximumRetryCount: 3 + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/container + RootFS: + type: object + properties: + Layers: + type: array + items: + $ref: '#/components/schemas/Digest' + Type: + type: string + description: RootFS holds the root fs information of an image + example: + Type: Type + Layers: + - Layers + - Layers + x-go-package: github.com/containers/podman/pkg/inspect + Schema2HealthConfig: + type: object + properties: + Interval: + $ref: '#/components/schemas/Duration' + Retries: + type: integer + description: |- + Retries is the number of consecutive failures needed to consider a container as unhealthy. + Zero means inherit. + format: int64 + StartPeriod: + $ref: '#/components/schemas/Duration' + Test: + type: array + description: |- + Test is the test to perform to check that the container is healthy. + An empty slice means to inherit the default. + The options are: + {} : inherit healthcheck + {"NONE"} : disable healthcheck + {"CMD", args...} : exec arguments directly + {"CMD-SHELL", command} : run command with system's default shell + items: + type: string + Timeout: + $ref: '#/components/schemas/Duration' + description: |- + Schema2HealthConfig is a HealthConfig, which holds configuration settings + for the HEALTHCHECK feature, from docker/docker/api/types/container. + example: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + x-go-package: github.com/containers/podman/vendor/github.com/containers/image/v5/manifest + SecurityConfig: + type: object + properties: + ApparmorProfile: + type: string + CapAdd: + type: array + items: + type: string + CapDrop: + type: array + items: + type: string + CapRequired: + type: array + items: + type: string + LabelOpts: + type: array + items: + type: string + NoNewPrivs: + type: boolean + Privileged: + type: boolean + ProcOpts: + type: array + items: + type: string + ReadOnlyRootfs: + type: boolean + ReadOnlyTmpfs: + type: boolean + SeccompPolicy: + $ref: '#/components/schemas/Policy' + SeccompProfileFromImage: + type: string + SeccompProfilePath: + type: string + SecurityOpts: + type: array + items: + type: string + Sysctl: + type: object + additionalProperties: + type: string + description: SecurityConfig configures the security features for the container + x-go-package: github.com/containers/podman/pkg/spec + ServiceInfo: + type: object + properties: + LocalLBIndex: + type: integer + format: int64 + Ports: + type: array + items: + type: string + Tasks: + type: array + items: + $ref: '#/components/schemas/Task' + VIP: + type: string + description: ServiceInfo represents service parameters with the list of service's + tasks + example: + Tasks: + - EndpointID: EndpointID + EndpointIP: EndpointIP + Info: + key: Info + Name: Name + - EndpointID: EndpointID + EndpointIP: EndpointIP + Info: + key: Info + Name: Name + Ports: + - Ports + - Ports + LocalLBIndex: 0 + VIP: VIP + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + ServiceUpdateResponse: + type: object + properties: + Warnings: + type: array + description: Optional warning messages + items: + type: string + description: ServiceUpdateResponse service update response + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + Signal: + title: A Signal is a number describing a process signal. + type: integer + description: It implements the os.Signal interface. + format: int64 + x-go-package: syscall + SlirpInfo: + type: object + properties: + executable: + type: string + x-go-name: Executable + package: + type: string + x-go-name: Package + version: + type: string + x-go-name: Version + description: |- + SlirpInfo describes the slirp executable that + is being being used. + example: + package: package + version: version + executable: executable + x-go-package: github.com/containers/podman/libpod/define + SpecGenerator: + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + description: |- + Annotations are key-value options passed into the container runtime + that can be used to trigger special behavior. + Optional. + x-go-name: Annotations + apparmor_profile: + type: string + description: |- + ApparmorProfile is the name of the Apparmor profile the container + will use. + Optional. + x-go-name: ApparmorProfile + cap_add: + type: array + description: |- + CapAdd are capabilities which will be added to the container. + Conflicts with Privileged. + Optional. + items: + type: string + x-go-name: CapAdd + cap_drop: + type: array + description: |- + CapDrop are capabilities which will be removed from the container. + Conflicts with Privileged. + Optional. + items: + type: string + x-go-name: CapDrop + cgroup_parent: + type: string + description: |- + CgroupParent is the container's CGroup parent. + If not set, the default for the current cgroup driver will be used. + Optional. + x-go-name: CgroupParent + cgroupns: + $ref: '#/components/schemas/Namespace' + cgroups_mode: + type: string + description: |- + CgroupsMode sets a policy for how cgroups will be created in the + container, including the ability to disable creation entirely. + x-go-name: CgroupsMode + cni_networks: + type: array + description: |- + CNINetworks is a list of CNI networks to join the container to. + If this list is empty, the default CNI network will be joined + instead. If at least one entry is present, we will not join the + default network (unless it is part of this list). + Only available if NetNS is set to bridge. + Optional. + items: + type: string + x-go-name: CNINetworks + command: + type: array + description: |- + Command is the container's command. + If not given and Image is specified, this will be populated by the + image's configuration. + Optional. + items: + type: string + x-go-name: Command + conmon_pid_file: + type: string + description: |- + ConmonPidFile is a path at which a PID file for Conmon will be + placed. + If not given, a default location will be used. + Optional. + x-go-name: ConmonPidFile + containerCreateCommand: + type: array + description: |- + ContainerCreateCommand is the command that was used to create this + container. + This will be shown in the output of Inspect() on the container, and + may also be used by some tools that wish to recreate the container + (e.g. `podman generate systemd --new`). + Optional. + items: + type: string + x-go-name: ContainerCreateCommand + devices: + type: array + description: |- + Devices are devices that will be added to the container. + Optional. + items: + $ref: '#/components/schemas/LinuxDevice' + x-go-name: Devices + dns_option: + type: array + description: |- + DNSOptions is a set of DNS options that will be used in the + container's resolv.conf, replacing the host's DNS options which are + used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + type: string + x-go-name: DNSOptions + dns_search: + type: array + description: |- + DNSSearch is a set of DNS search domains that will be used in the + container's resolv.conf, replacing the host's DNS search domains + which are used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + type: string + x-go-name: DNSSearch + dns_server: + type: array + description: |- + DNSServers is a set of DNS servers that will be used in the + container's resolv.conf, replacing the host's DNS Servers which are + used by default. + Conflicts with UseImageResolvConf. + Optional. + items: + $ref: '#/components/schemas/IP' + x-go-name: DNSServers + entrypoint: + type: array + description: |- + Entrypoint is the container's entrypoint. + If not given and Image is specified, this will be populated by the + image's configuration. + Optional. + items: + type: string + x-go-name: Entrypoint + env: + type: object + additionalProperties: + type: string + description: |- + Env is a set of environment variables that will be set in the + container. + Optional. + x-go-name: Env + env_host: + type: boolean + description: |- + EnvHost indicates that the host environment should be added to container + Optional. + x-go-name: EnvHost + expose: + type: object + description: |- + Expose is a number of ports that will be forwarded to the container + if PublishExposedPorts is set. + Expose is a map of uint16 (port number) to a string representing + protocol. Allowed protocols are "tcp", "udp", and "sctp", or some + combination of the three separated by commas. + If protocol is set to "" we will assume TCP. + Only available if NetNS is set to Bridge or Slirp, and + PublishExposedPorts is set. + Optional. + x-go-name: Expose + groups: + type: array + description: |- + Groups are a list of supplemental groups the container's user will + be granted access to. + Optional. + items: + type: string + x-go-name: Groups + healthconfig: + $ref: '#/components/schemas/Schema2HealthConfig' + hostadd: + type: array + description: |- + HostAdd is a set of hosts which will be added to the container's + etc/hosts file. + Conflicts with UseImageHosts. + Optional. + items: + type: string + x-go-name: HostAdd + hostname: + type: string + description: |- + Hostname is the container's hostname. If not set, the hostname will + not be modified (if UtsNS is not private) or will be set to the + container ID (if UtsNS is private). + Conflicts with UtsNS if UtsNS is not set to private. + Optional. + x-go-name: Hostname + httpproxy: + type: boolean + description: |- + EnvHTTPProxy indicates that the http host proxy environment variables + should be added to container + Optional. + x-go-name: HTTPProxy + idmappings: + $ref: '#/components/schemas/IDMappingOptions' + image: + type: string + description: |- + Image is the image the container will be based on. The image will be + used as the container's root filesystem, and its environment vars, + volumes, and other configuration will be applied to the container. + Conflicts with Rootfs. + At least one of Image or Rootfs must be specified. + x-go-name: Image + image_volume_mode: + type: string + description: |- + ImageVolumeMode indicates how image volumes will be created. + Supported modes are "ignore" (do not create), "tmpfs" (create as + tmpfs), and "anonymous" (create as anonymous volumes). + The default if unset is anonymous. + Optional. + x-go-name: ImageVolumeMode + init: + type: boolean + description: |- + Init specifies that an init binary will be mounted into the + container, and will be used as PID1. + x-go-name: Init + init_path: + type: string + description: |- + InitPath specifies the path to the init binary that will be added if + Init is specified above. If not specified, the default set in the + Libpod config will be used. Ignored if Init above is not set. + Optional. + x-go-name: InitPath + ipcns: + $ref: '#/components/schemas/Namespace' + labels: + type: object + additionalProperties: + type: string + description: |- + Labels are key-value pairs that are used to add metadata to + containers. + Optional. + x-go-name: Labels + log_configuration: + $ref: '#/components/schemas/LogConfig' + mounts: + type: array + description: |- + Mounts are mounts that will be added to the container. + These will supersede Image Volumes and VolumesFrom volumes where + there are conflicts. + Optional. + items: + $ref: '#/components/schemas/Mount' + x-go-name: Mounts + name: + type: string + description: |- + Name is the name the container will be given. + If no name is provided, one will be randomly generated. + Optional. + x-go-name: Name + namespace: + type: string + description: |- + Namespace is the libpod namespace the container will be placed in. + Optional. + x-go-name: Namespace + netns: + $ref: '#/components/schemas/Namespace' + network_options: + type: object + additionalProperties: + type: array + items: + type: string + description: |- + NetworkOptions are additional options for each network + Optional. + x-go-name: NetworkOptions + no_new_privileges: + type: boolean + description: |- + NoNewPrivileges is whether the container will set the no new + privileges flag on create, which disables gaining additional + privileges (e.g. via setuid) in the container. + x-go-name: NoNewPrivileges + oci_runtime: + type: string + description: |- + OCIRuntime is the name of the OCI runtime that will be used to create + the container. + If not specified, the default will be used. + Optional. + x-go-name: OCIRuntime + oom_score_adj: + type: integer + description: |- + OOMScoreAdj adjusts the score used by the OOM killer to determine + processes to kill for the container's process. + Optional. + format: int64 + x-go-name: OOMScoreAdj + overlay_volumes: + type: array + description: |- + Overlay volumes are named volumes that will be added to the container. + Optional. + items: + $ref: '#/components/schemas/OverlayVolume' + x-go-name: OverlayVolumes + pidns: + $ref: '#/components/schemas/Namespace' + pod: + type: string + description: |- + Pod is the ID of the pod the container will join. + Optional. + x-go-name: Pod + portmappings: + type: array + description: |- + PortBindings is a set of ports to map into the container. + Only available if NetNS is set to bridge or slirp. + Optional. + items: + $ref: '#/components/schemas/PortMapping' + x-go-name: PortMappings + privileged: + type: boolean + description: |- + Privileged is whether the container is privileged. + Privileged does the following: + Adds all devices on the system to the container. + Adds all capabilities to the container. + Disables Seccomp, SELinux, and Apparmor confinement. + (Though SELinux can be manually re-enabled). + TODO: this conflicts with things. + TODO: this does more. + x-go-name: Privileged + procfs_opts: + type: array + description: ProcOpts are the options used for the proc mount. + items: + type: string + x-go-name: ProcOpts + publish_image_ports: + type: boolean + description: |- + PublishExposedPorts will publish ports specified in the image to + random unused ports (guaranteed to be above 1024) on the host. + This is based on ports set in Expose below, and any ports specified + by the Image (if one is given). + Only available if NetNS is set to Bridge or Slirp. + x-go-name: PublishExposedPorts + r_limits: + type: array + description: |- + Rlimits are POSIX rlimits to apply to the container. + Optional. + items: + $ref: '#/components/schemas/POSIXRlimit' + x-go-name: Rlimits + raw_image_name: + type: string + description: |- + RawImageName is the user-specified and unprocessed input referring + to a local or a remote image. + x-go-name: RawImageName + read_only_filesystem: + type: boolean + description: |- + ReadOnlyFilesystem indicates that everything will be mounted + as read-only + x-go-name: ReadOnlyFilesystem + remove: + type: boolean + description: |- + Remove indicates if the container should be removed once it has been started + and exits + x-go-name: Remove + resource_limits: + $ref: '#/components/schemas/LinuxResources' + restart_policy: + type: string + description: |- + RestartPolicy is the container's restart policy - an action which + will be taken when the container exits. + If not given, the default policy, which does nothing, will be used. + Optional. + x-go-name: RestartPolicy + restart_tries: + type: integer + description: |- + RestartRetries is the number of attempts that will be made to restart + the container. + Only available when RestartPolicy is set to "on-failure". + Optional. + format: uint64 + x-go-name: RestartRetries + rootfs: + type: string + description: |- + Rootfs is the path to a directory that will be used as the + container's root filesystem. No modification will be made to the + directory, it will be directly mounted into the container as root. + Conflicts with Image. + At least one of Image or Rootfs must be specified. + x-go-name: Rootfs + rootfs_propagation: + type: string + description: |- + RootfsPropagation is the rootfs propagation mode for the container. + If not set, the default of rslave will be used. + Optional. + x-go-name: RootfsPropagation + sdnotifyMode: + type: string + description: |- + Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through + "container" - let the OCI runtime deal with it, advertise conmon's MAINPID + "conmon-only" - advertise conmon's MAINPID, send READY when started, don't pass to OCI + "ignore" - unset NOTIFY_SOCKET + x-go-name: SdNotifyMode + seccomp_policy: + type: string + description: |- + SeccompPolicy determines which seccomp profile gets applied + the container. valid values: empty,default,image + x-go-name: SeccompPolicy + seccomp_profile_path: + type: string + description: |- + SeccompProfilePath is the path to a JSON file containing the + container's Seccomp profile. + If not specified, no Seccomp profile will be used. + Optional. + x-go-name: SeccompProfilePath + selinux_opts: + type: array + description: |- + SelinuxProcessLabel is the process label the container will use. + If SELinux is enabled and this is not specified, a label will be + automatically generated if not specified. + Optional. + items: + type: string + x-go-name: SelinuxOpts + shm_size: + type: integer + description: |- + ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. + Conflicts with ShmSize if IpcNS is not private. + Optional. + format: int64 + x-go-name: ShmSize + static_ip: + $ref: '#/components/schemas/IP' + static_ipv6: + $ref: '#/components/schemas/IP' + static_mac: + $ref: '#/components/schemas/HardwareAddr' + stdin: + type: boolean + description: Stdin is whether the container will keep its STDIN open. + x-go-name: Stdin + stop_signal: + $ref: '#/components/schemas/Signal' + stop_timeout: + type: integer + description: |- + StopTimeout is a timeout between the container's stop signal being + sent and SIGKILL being sent. + If not provided, the default will be used. + If 0 is used, stop signal will not be sent, and SIGKILL will be sent + instead. + Optional. + format: uint64 + x-go-name: StopTimeout + sysctl: + type: object + additionalProperties: + type: string + description: Sysctl sets kernel parameters for the container + x-go-name: Sysctl + systemd: + type: string + description: |- + Systemd is whether the container will be started in systemd mode. + Valid options are "true", "false", and "always". + "true" enables this mode only if the binary run in the container is + sbin/init or systemd. "always" unconditionally enables systemd mode. + "false" unconditionally disables systemd mode. + If enabled, mounts and stop signal will be modified. + If set to "always" or set to "true" and conditionally triggered, + conflicts with StopSignal. + If not specified, "false" will be assumed. + Optional. + x-go-name: Systemd + terminal: + type: boolean + description: |- + Terminal is whether the container will create a PTY. + Optional. + x-go-name: Terminal + throttleReadBpsDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO read rate limit per cgroup per device, bytes per second + x-go-name: ThrottleReadBpsDevice + throttleReadIOPSDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO read rate limit per cgroup per device, IO per second + x-go-name: ThrottleReadIOPSDevice + throttleWriteBpsDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO write rate limit per cgroup per device, bytes per second + x-go-name: ThrottleWriteBpsDevice + throttleWriteIOPSDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxThrottleDevice' + description: IO write rate limit per cgroup per device, IO per second + x-go-name: ThrottleWriteIOPSDevice + timezone: + type: string + description: |- + Timezone is the timezone inside the container. + Local means it has the same timezone as the host machine + x-go-name: Timezone + umask: + type: string + description: Umask is the umask the init process of the container will be + run with. + x-go-name: Umask + unified: + type: object + additionalProperties: + type: string + description: |- + CgroupConf are key-value options passed into the container runtime + that are used to configure cgroup v2. + Optional. + x-go-name: CgroupConf + use_image_hosts: + type: boolean + description: |- + UseImageHosts indicates that /etc/hosts should not be managed by + Podman, and instead sourced from the image. + Conflicts with HostAdd. + x-go-name: UseImageHosts + use_image_resolve_conf: + type: boolean + description: |- + UseImageResolvConf indicates that resolv.conf should not be managed + by Podman, but instead sourced from the image. + Conflicts with DNSServer, DNSSearch, DNSOption. + x-go-name: UseImageResolvConf + user: + type: string + description: |- + User is the user the container will be run as. + Can be given as a UID or a username; if a username, it will be + resolved within the container, using the container's /etc/passwd. + If unset, the container will be run as root. + Optional. + x-go-name: User + userns: + $ref: '#/components/schemas/Namespace' + utsns: + $ref: '#/components/schemas/Namespace' + volumes: + type: array + description: |- + Volumes are named volumes that will be added to the container. + These will supersede Image Volumes and VolumesFrom volumes where + there are conflicts. + Optional. + items: + $ref: '#/components/schemas/NamedVolume' + x-go-name: Volumes + volumes_from: + type: array + description: |- + VolumesFrom is a set of containers whose volumes will be added to + this container. The name or ID of the container must be provided, and + may optionally be followed by a : and then one or more + comma-separated options. Valid options are 'ro', 'rw', and 'z'. + Options will be used for all volumes sourced from the container. + items: + type: string + x-go-name: VolumesFrom + weightDevice: + type: object + additionalProperties: + $ref: '#/components/schemas/LinuxWeightDevice' + description: Weight per cgroup per device, can override BlkioWeight + x-go-name: WeightDevice + work_dir: + type: string + description: |- + WorkDir is the container's working directory. + If unset, the default, /, will be used. + Optional. + x-go-name: WorkDir + description: |- + SpecGenerator creates an OCI spec and Libpod configuration options to create + a container based on the given configuration. + x-go-package: github.com/containers/podman/pkg/specgen + StoreInfo: + type: object + properties: + configFile: + type: string + x-go-name: ConfigFile + containerStore: + $ref: '#/components/schemas/ContainerStore' + graphDriverName: + type: string + x-go-name: GraphDriverName + graphOptions: + type: object + additionalProperties: + type: object + properties: {} + example: {} + x-go-name: GraphOptions + graphRoot: + type: string + x-go-name: GraphRoot + graphStatus: + type: object + additionalProperties: + type: string + x-go-name: GraphStatus + imageStore: + $ref: '#/components/schemas/ImageStore' + runRoot: + type: string + x-go-name: RunRoot + volumePath: + type: string + x-go-name: VolumePath + description: |- + StoreInfo describes the container storage and its + attributes + example: + graphStatus: + key: graphStatus + configFile: configFile + containerStore: + running: 4 + number: 3 + paused: 2 + stopped: 7 + graphRoot: graphRoot + graphDriverName: graphDriverName + volumePath: volumePath + graphOptions: + key: {} + imageStore: + number: 1 + runRoot: runRoot + x-go-package: github.com/containers/podman/libpod/define + StrSlice: + title: StrSlice represents a string or an array of strings. + type: array + description: We need to override the json decoder to accept both options. + items: + type: string + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/strslice + x-schema-name: StrSlice + SystemDfContainerReport: + type: object + properties: + Command: + type: array + items: + type: string + ContainerID: + type: string + Created: + type: string + format: date-time + Image: + type: string + LocalVolumes: + type: integer + format: int64 + Names: + type: string + RWSize: + type: integer + format: int64 + Size: + type: integer + format: int64 + Status: + type: string + description: SystemDfContainerReport describes a container for use with df + example: + Names: Names + Status: Status + Command: + - Command + - Command + ContainerID: ContainerID + Size: 1 + RWSize: 6 + LocalVolumes: 0 + Image: Image + Created: 2000-01-23T04:56:07.000+00:00 + x-go-package: github.com/containers/podman/pkg/domain/entities + SystemDfImageReport: + type: object + properties: + Containers: + type: integer + format: int64 + Created: + type: string + format: date-time + ImageID: + type: string + Repository: + type: string + SharedSize: + type: integer + format: int64 + Size: + type: integer + format: int64 + Tag: + type: string + UniqueSize: + type: integer + format: int64 + description: SystemDfImageReport describes an image for use with df + example: + SharedSize: 5 + UniqueSize: 7 + Repository: Repository + Size: 2 + Containers: 5 + ImageID: ImageID + Tag: Tag + Created: 2000-01-23T04:56:07.000+00:00 + x-go-package: github.com/containers/podman/pkg/domain/entities + SystemDfVolumeReport: + type: object + properties: + Links: + type: integer + format: int64 + ReclaimableSize: + type: integer + format: int64 + Size: + type: integer + format: int64 + VolumeName: + type: string + description: SystemDfVolumeReport describes a volume and its size + example: + VolumeName: VolumeName + ReclaimableSize: 3 + Size: 2 + Links: 9 + x-go-package: github.com/containers/podman/pkg/domain/entities + Task: + type: object + properties: + EndpointID: + type: string + EndpointIP: + type: string + Info: + type: object + additionalProperties: + type: string + Name: + type: string + description: Task carries the information about one backend task + example: + EndpointID: EndpointID + EndpointIP: EndpointIP + Info: + key: Info + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/network + ThrottleDevice: + type: object + properties: + Path: + type: string + Rate: + type: integer + format: uint64 + description: ThrottleDevice is a structure that holds device:rate_per_second + pair + example: + Path: Path + Rate: 5 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/blkiodev + Type: + title: Type represents the type of a mount. + type: string + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/mount + UTSMode: + title: UTSMode represents the UTS namespace of the container. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + Ulimit: + title: Ulimit is a human friendly version of Rlimit. + type: object + properties: + Hard: + type: integer + format: int64 + Name: + type: string + Soft: + type: integer + format: int64 + example: + Hard: 1 + Soft: 2 + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/go-units + UserConfig: + type: object + properties: + GroupAdd: + type: array + items: + type: string + IDMappings: + $ref: '#/components/schemas/IDMappingOptions' + User: + type: string + UsernsMode: + $ref: '#/components/schemas/UsernsMode' + description: UserConfig configures the user namespace for the container + x-go-package: github.com/containers/podman/pkg/spec + UsernsMode: + title: UsernsMode represents userns mode in the container. + type: string + x-go-package: github.com/containers/podman/pkg/namespaces + UtsConfig: + type: object + properties: + HostAdd: + type: array + items: + type: string + Hostname: + type: string + NoHosts: + type: boolean + UtsMode: + $ref: '#/components/schemas/UTSMode' + description: UtsConfig configures the uts namespace for the container + x-go-package: github.com/containers/podman/pkg/spec + Version: + type: object + properties: + APIVersion: + type: string + Built: + type: integer + format: int64 + BuiltTime: + type: string + GitCommit: + type: string + GoVersion: + type: string + OsArch: + type: string + Version: + type: string + description: Version is an output struct for API + example: + GitCommit: GitCommit + APIVersion: APIVersion + Version: Version + Built: 1 + OsArch: OsArch + BuiltTime: BuiltTime + GoVersion: GoVersion + x-go-package: github.com/containers/podman/libpod/define + Volume: + required: + - Driver + - Labels + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. Either `global` for cluster-wide, + or `local` for machine level. + Status: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: |- + Low-level details about the volume, provided by the volume driver. + Details are returned as a map with key/value pairs: + `{"key":"value","key2":"value2"}`. + + The `Status` field is optional, and is omitted if the volume driver + does not support this feature. + UsageData: + $ref: '#/components/schemas/VolumeUsageData' + description: Volume volume + example: + Status: + key: {} + Options: + key: Options + Scope: Scope + UsageData: + RefCount: 0 + Size: 6 + CreatedAt: CreatedAt + Driver: Driver + Labels: + key: Labels + Mountpoint: Mountpoint + Name: Name + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + VolumeCreate: + type: object + properties: + Driver: + type: string + description: Volume driver to use + Label: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Name: + type: string + description: New volume's name. Can be left blank + Options: + type: object + additionalProperties: + type: string + description: Mapping of driver options and values. + x-go-name: VolumeCreateOptions + x-go-package: github.com/containers/podman/pkg/domain/entities + VolumeCreateBody: + required: + - Driver + - DriverOpts + - Labels + - Name + type: object + properties: + Driver: + type: string + description: Name of the volume driver to use. + DriverOpts: + type: object + additionalProperties: + type: string + description: |- + A mapping of driver options and values. These options are + passed directly to the driver and are driver specific. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Name: + type: string + description: The new volume's name. If not specified, Docker generates a + name. + description: VolumeCreateBody Volume configuration + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/volume + VolumeInfo: + required: + - Driver + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. Only supports + local driver + Labels: + type: object + additionalProperties: + type: string + description: |- + User-defined key/value metadata. + Always included + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. + Libpod does not implement volume scoping, and this is provided solely for + Docker compatibility. The value is only "local". + description: VolumeInfo Volume list response + example: + Options: + key: Options + Scope: Scope + CreatedAt: CreatedAt + Driver: Driver + Labels: + key: Labels + Mountpoint: Mountpoint + Name: Name + x-go-package: github.com/containers/podman/pkg/domain/entities + VolumeListBody: + type: object + properties: + Volumes: + type: array + items: + $ref: '#/components/schemas/VolumeInfo' + description: VolumeListBody Volume list response + x-go-package: github.com/containers/podman/pkg/domain/entities + VolumeListOKBody: + required: + - Volumes + - Warnings + type: object + properties: + Volumes: + type: array + description: List of volumes + items: + $ref: '#/components/schemas/Volume' + Warnings: + type: array + description: Warnings that occurred when fetching the list of volumes. + items: + type: string + description: VolumeListOKBody Volume list response + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/volume + VolumePruneReport: + type: object + properties: + Err: + type: string + Id: + type: string + example: + Err: Err + Id: Id + x-go-package: github.com/containers/podman/pkg/domain/entities + VolumeUsageData: + required: + - RefCount + - Size + type: object + properties: + RefCount: + type: integer + description: |- + The number of containers referencing this volume. This field + is set to `-1` if the reference-count is not available. + format: int64 + Size: + type: integer + description: |- + Amount of disk space used by the volume (in bytes). This information + is only available for volumes created with the `"local"` volume + driver. For volumes created with other volume drivers, this field + is set to `-1` ("not available") + format: int64 + description: |- + VolumeUsageData Usage details about the volume. This information is used by the + `GET /system/df` endpoint, and omitted in other endpoints. + example: + RefCount: 0 + Size: 6 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types + WeightDevice: + type: object + properties: + Path: + type: string + Weight: + type: integer + format: uint16 + description: WeightDevice is a structure that holds device:weight pair + example: + Path: Path + Weight: 2 + x-go-package: github.com/containers/podman/vendor/github.com/docker/docker/api/types/blkiodev + linuxBlockIODevice: + type: object + properties: + major: + type: integer + description: Major is the device's major number. + format: int64 + x-go-name: Major + minor: + type: integer + description: Minor is the device's minor number. + format: int64 + x-go-name: Minor + description: linuxBlockIODevice holds major:minor format supported in blkio + cgroup + x-go-package: github.com/containers/podman/vendor/github.com/opencontainers/runtime-spec/specs-go + inline_response_200: + required: + - stream + type: object + properties: + stream: + type: string + description: output from build process + example: | + (build details...) + Successfully built 8ba084515c724cbf90d447a63600c0a6 + example: + stream: | + (build details...) + Successfully built 8ba084515c724cbf90d447a63600c0a6 + inline_response_400: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + body: + type: object + properties: + AttachStderr: + type: boolean + description: Attach to stderr of the exec command + AttachStdin: + type: boolean + description: Attach to stdin of the exec command + AttachStdout: + type: boolean + description: Attach to stdout of the exec command + Cmd: + type: array + description: Command to run, as a string or array of strings. + items: + type: string + DetachKeys: + type: string + description: | + "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _." + Env: + type: array + description: A list of environment variables in the form ["VAR=value", ...] + items: + type: string + Privileged: + type: boolean + description: Runs the exec process with extended privileges + default: false + Tty: + type: boolean + description: Allocate a pseudo-TTY + User: + type: string + description: | + "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid." + WorkingDir: + type: string + description: The working directory for the exec process inside the container. + body_1: + type: object + properties: + AttachStderr: + type: boolean + description: Attach to stderr of the exec command + AttachStdin: + type: boolean + description: Attach to stdin of the exec command + AttachStdout: + type: boolean + description: Attach to stdout of the exec command + Cmd: + type: array + description: Command to run, as a string or array of strings. + items: + type: string + DetachKeys: + type: string + description: | + "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _." + Env: + type: array + description: A list of environment variables in the form ["VAR=value", ...] + items: + type: string + Privileged: + type: boolean + description: Runs the exec process with extended privileges + default: false + Tty: + type: boolean + description: Allocate a pseudo-TTY + User: + type: string + description: | + "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid." + WorkingDir: + type: string + description: The working directory for the exec process inside the container. + inline_response_200_1: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/Config' + Created: + type: string + Driver: + type: string + ExecIDs: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + HostConfig: + $ref: '#/components/schemas/HostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + LogPath: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/MountPoint' + Name: + type: string + NetworkSettings: + $ref: '#/components/schemas/NetworkSettings' + Node: + $ref: '#/components/schemas/ContainerNode' + Path: + type: string + Platform: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int64 + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/ContainerState' + example: + Platform: Platform + Config: + User: User + OpenStdin: true + Env: + - Env + - Env + Image: Image + StdinOnce: true + AttachStdout: true + Shell: null + Volumes: + key: {} + AttachStdin: true + Domainname: Domainname + Tty: true + Cmd: + - Cmd + - Cmd + StopTimeout: 1 + StopSignal: StopSignal + Entrypoint: null + AttachStderr: true + ArgsEscaped: true + Hostname: Hostname + Labels: + key: Labels + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + MacAddress: MacAddress + NetworkDisabled: true + ExposedPorts: + key: {} + WorkingDir: WorkingDir + OnBuild: + - OnBuild + - OnBuild + Node: + Memory: 0 + IP: IP + Labels: + key: Labels + Cpus: 7 + ID: ID + Addr: Addr + Name: Name + AppArmorProfile: AppArmorProfile + Driver: Driver + HostsPath: HostsPath + HostnamePath: HostnamePath + Image: Image + Created: Created + Name: Name + MountLabel: MountLabel + SizeRootFs: 6 + HostConfig: + ReadonlyRootfs: true + StorageOpt: + key: StorageOpt + BlkioWeightDevice: + - Path: Path + Weight: 2 + - Path: Path + Weight: 2 + DnsOptions: + - DnsOptions + - DnsOptions + Memory: 5 + CpuPeriod: 2 + Dns: + - Dns + - Dns + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + VolumesFrom: + - VolumesFrom + - VolumesFrom + MaskedPaths: + - MaskedPaths + - MaskedPaths + Devices: + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + MemorySwappiness: 6 + BlkioWeight: 5 + CgroupnsMode: CgroupnsMode + Init: true + Runtime: Runtime + DeviceCgroupRules: + - DeviceCgroupRules + - DeviceCgroupRules + UsernsMode: UsernsMode + Ulimits: + - Hard: 1 + Soft: 2 + Name: Name + - Hard: 1 + Soft: 2 + Name: Name + CpusetCpus: CpusetCpus + MemoryReservation: 9 + Mounts: + - destination: destination + options: + - options + - options + source: source + type: type + - destination: destination + options: + - options + - options + source: source + type: type + ExtraHosts: + - ExtraHosts + - ExtraHosts + BlkioDeviceWriteIOps: + - null + - null + ReadonlyPaths: + - ReadonlyPaths + - ReadonlyPaths + UTSMode: UTSMode + Cgroup: Cgroup + CpuQuota: 4 + CpuRealtimeRuntime: 1 + DnsSearch: + - DnsSearch + - DnsSearch + CpuShares: 1 + ContainerIDFile: ContainerIDFile + OomScoreAdj: 9 + KernelMemory: 1 + LogConfig: + path: path + driver: driver + options: + key: options + DeviceRequests: + - DeviceIDs: + - DeviceIDs + - DeviceIDs + Options: + key: Options + Capabilities: + - - Capabilities + - Capabilities + - - Capabilities + - Capabilities + Driver: Driver + Count: 1 + - DeviceIDs: + - DeviceIDs + - DeviceIDs + Options: + key: Options + Capabilities: + - - Capabilities + - Capabilities + - - Capabilities + - Capabilities + Driver: Driver + Count: 1 + OomKillDisable: true + IOMaximumBandwidth: 6 + Privileged: true + Sysctls: + key: Sysctls + GroupAdd: + - GroupAdd + - GroupAdd + AutoRemove: true + KernelMemoryTCP: 4 + CpuPercent: 3 + ConsoleSize: + - 7 + - 7 + IOMaximumIOps: 7 + CapAdd: null + VolumeDriver: VolumeDriver + CapDrop: null + CpuCount: 9 + PublishAllPorts: true + Tmpfs: + key: Tmpfs + CpuRealtimePeriod: 7 + IpcMode: IpcMode + Binds: + - Binds + - Binds + CpusetMems: CpusetMems + BlkioDeviceWriteBps: + - null + - null + RestartPolicy: + MaximumRetryCount: 3 + Name: Name + NetworkMode: NetworkMode + PidMode: PidMode + BlkioDeviceReadBps: + - Path: Path + Rate: 5 + - Path: Path + Rate: 5 + CgroupParent: CgroupParent + NanoCpus: 8 + MemorySwap: 9 + Isolation: Isolation + Links: + - Links + - Links + PidsLimit: 6 + BlkioDeviceReadIOps: + - null + - null + SecurityOpt: + - SecurityOpt + - SecurityOpt + ShmSize: 6 + Path: Path + Args: + - Args + - Args + Mounts: + - Destination: Destination + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + - Destination: Destination + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + ProcessLabel: ProcessLabel + SizeRw: 0 + GraphDriver: + Data: + key: Data + Name: Name + RestartCount: 7 + NetworkSettings: + HairpinMode: true + Networks: + key: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 6 + IPPrefixLen: 3 + Aliases: + - Aliases + - Aliases + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + LinkLocalIPs: + - LinkLocalIPs + - LinkLocalIPs + IPv6Address: IPv6Address + IPv4Address: IPv4Address + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + IPv6Gateway: IPv6Gateway + IPAddress: IPAddress + SandboxKey: SandboxKey + GlobalIPv6Address: GlobalIPv6Address + Ports: null + GlobalIPv6PrefixLen: 6 + IPPrefixLen: 6 + MacAddress: MacAddress + SandboxID: SandboxID + LinkLocalIPv6Address: LinkLocalIPv6Address + LinkLocalIPv6PrefixLen: 5 + Gateway: Gateway + EndpointID: EndpointID + SecondaryIPv6Addresses: + - null + - null + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - PrefixLen: 3 + Addr: Addr + - PrefixLen: 3 + Addr: Addr + IPAddress: IPAddress + Bridge: Bridge + ResolvConfPath: ResolvConfPath + State: + Status: Status + Restarting: true + Dead: true + Health: + Status: Status + Log: + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + - Start: 2000-01-23T04:56:07.000+00:00 + ExitCode: 7 + Output: Output + End: 2000-01-23T04:56:07.000+00:00 + FailingStreak: 8 + ExitCode: 4 + Running: true + Error: Error + FinishedAt: FinishedAt + OOMKilled: true + Pid: 3 + StartedAt: StartedAt + Paused: true + ExecIDs: + - ExecIDs + - ExecIDs + Id: Id + LogPath: LogPath + inline_response_200_2: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + example: + Processes: + - - Processes + - Processes + - - Processes + - Processes + Titles: + - Titles + - Titles + inline_response_200_3: + type: object + properties: + Error: + $ref: '#/components/schemas/inline_response_200_3_Error' + StatusCode: + type: integer + description: container exit code + format: int64 + example: + Error: + Message: Message + StatusCode: 0 + inline_response_201: + type: object + properties: + Id: + type: string + description: ID of the container created + x-go-name: ID + Warnings: + type: array + description: Warnings during container creation + items: + type: string + example: + Id: Id + Warnings: + - Warnings + - Warnings + body_2: + type: object + properties: + Detach: + type: boolean + description: Detach from the command. Not presently supported. + Tty: + type: boolean + description: Allocate a pseudo-TTY. Presently ignored. + body_3: + type: object + properties: + Detach: + type: boolean + description: Detach from the command. Not presently supported. + Tty: + type: boolean + description: Allocate a pseudo-TTY. Presently ignored. + inline_response_200_4: + type: object + properties: + Comment: + type: string + Created: + type: integer + format: int64 + CreatedBy: + type: string + Id: + type: string + x-go-name: ID + Size: + type: integer + format: int64 + Tags: + type: array + items: + type: string + example: + Comment: Comment + CreatedBy: CreatedBy + Size: 6 + Id: Id + Tags: + - Tags + - Tags + Created: 0 + inline_response_200_5: + type: object + properties: + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/Config' + Container: + type: string + ContainerConfig: + $ref: '#/components/schemas/Config' + Created: + type: string + DockerVersion: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + Id: + type: string + x-go-name: ID + Metadata: + $ref: '#/components/schemas/ImageMetadata' + Os: + type: string + OsVersion: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + Variant: + type: string + VirtualSize: + type: integer + format: int64 + example: + RepoDigests: + - RepoDigests + - RepoDigests + Comment: Comment + VirtualSize: 6 + Architecture: Architecture + Os: Os + Parent: Parent + Config: + User: User + OpenStdin: true + Env: + - Env + - Env + Image: Image + StdinOnce: true + AttachStdout: true + Shell: null + Volumes: + key: {} + AttachStdin: true + Domainname: Domainname + Tty: true + Cmd: + - Cmd + - Cmd + StopTimeout: 1 + StopSignal: StopSignal + Entrypoint: null + AttachStderr: true + ArgsEscaped: true + Hostname: Hostname + Labels: + key: Labels + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + MacAddress: MacAddress + NetworkDisabled: true + ExposedPorts: + key: {} + WorkingDir: WorkingDir + OnBuild: + - OnBuild + - OnBuild + Size: 0 + OsVersion: OsVersion + Metadata: + LastTagTime: 2000-01-23T04:56:07.000+00:00 + GraphDriver: + Data: + key: Data + Name: Name + Created: Created + ContainerConfig: null + Variant: Variant + Container: Container + RootFS: + Type: Type + Layers: + - Layers + - Layers + DockerVersion: DockerVersion + RepoTags: + - RepoTags + - RepoTags + Author: Author + Id: Id + inline_response_200_6: + type: object + properties: + Automated: + type: string + description: Automated indicates if the image was created by an automated + build. + Description: + type: string + description: Description of the image. + Index: + type: string + description: Index is the image index (e.g., "docker.io" or "quay.io") + Name: + type: string + description: Name is the canoncical name of the image (e.g., "docker.io/library/alpine"). + Official: + type: string + description: Official indicates if it's an official image. + Stars: + type: integer + description: Stars is the number of stars of the image. + format: int64 + example: + Description: Description + Automated: Automated + Stars: 0 + Official: Official + Index: Index + Name: Name + inline_response_200_7: + type: object + properties: + FailingStreak: + type: integer + description: FailingStreak is the number of consecutive failed healthchecks + format: int64 + Log: + type: array + description: Log describes healthcheck attempts and results + items: + $ref: '#/components/schemas/HealthCheckLog' + Status: + type: string + description: Status healthy or unhealthy + example: + Status: Status + Log: + - Start: Start + ExitCode: 6 + Output: Output + End: End + - Start: Start + ExitCode: 6 + Output: Output + End: End + FailingStreak: 0 + body_4: + type: object + properties: + AttachStderr: + type: boolean + description: Attach to stderr of the exec command + AttachStdin: + type: boolean + description: Attach to stdin of the exec command + AttachStdout: + type: boolean + description: Attach to stdout of the exec command + Cmd: + type: array + description: Command to run, as a string or array of strings. + items: + type: string + DetachKeys: + type: string + description: | + "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _." + Env: + type: array + description: A list of environment variables in the form ["VAR=value", ...] + items: + type: string + Privileged: + type: boolean + description: Runs the exec process with extended privileges + default: false + Tty: + type: boolean + description: Allocate a pseudo-TTY + User: + type: string + description: | + "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid." + WorkingDir: + type: string + description: The working directory for the exec process inside the container. + body_5: + type: object + properties: + AttachStderr: + type: boolean + description: Attach to stderr of the exec command + AttachStdin: + type: boolean + description: Attach to stdin of the exec command + AttachStdout: + type: boolean + description: Attach to stdout of the exec command + Cmd: + type: array + description: Command to run, as a string or array of strings. + items: + type: string + DetachKeys: + type: string + description: | + "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _." + Env: + type: array + description: A list of environment variables in the form ["VAR=value", ...] + items: + type: string + Privileged: + type: boolean + description: Runs the exec process with extended privileges + default: false + Tty: + type: boolean + description: Allocate a pseudo-TTY + User: + type: string + description: | + "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid." + WorkingDir: + type: string + description: The working directory for the exec process inside the container. + inline_response_200_8: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + BoundingCaps: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/InspectContainerConfig' + ConmonPidFile: + type: string + Created: + type: string + format: date-time + Dependencies: + type: array + items: + type: string + Driver: + type: string + EffectiveCaps: + type: array + items: + type: string + ExecIDs: + type: array + items: + type: string + ExitCommand: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/Data' + HostConfig: + $ref: '#/components/schemas/InspectContainerHostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + ImageName: + type: string + IsInfra: + type: boolean + LogPath: + type: string + LogTag: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/InspectMount' + Name: + type: string + Namespace: + type: string + NetworkSettings: + $ref: '#/components/schemas/InspectNetworkSettings' + OCIConfigPath: + type: string + OCIRuntime: + type: string + Path: + type: string + Pod: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int32 + Rootfs: + type: string + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/InspectContainerState' + StaticDir: + type: string + example: + StaticDir: StaticDir + Config: + Timezone: Timezone + Umask: Umask + StopSignal: 1 + CreateCommand: + - CreateCommand + - CreateCommand + User: User + Entrypoint: Entrypoint + AttachStderr: true + SystemdMode: true + Hostname: Hostname + Labels: + key: Labels + OpenStdin: true + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + Env: + - Env + - Env + Image: Image + StdinOnce: true + AttachStdout: true + WorkingDir: WorkingDir + Annotations: + key: Annotations + Volumes: + key: {} + OnBuild: OnBuild + AttachStdin: true + Domainname: Domainname + Tty: true + Cmd: + - Cmd + - Cmd + AppArmorProfile: AppArmorProfile + Driver: Driver + HostsPath: HostsPath + HostnamePath: HostnamePath + Image: Image + Created: 2000-01-23T04:56:07.000+00:00 + Name: Name + OCIRuntime: OCIRuntime + MountLabel: MountLabel + SizeRootFs: 3 + BoundingCaps: + - BoundingCaps + - BoundingCaps + ConmonPidFile: ConmonPidFile + HostConfig: + ReadonlyRootfs: true + DiskQuota: 1 + BlkioWeightDevice: + - Path: Path + Weight: 2 + - Path: Path + Weight: 2 + DnsOptions: + - DnsOptions + - DnsOptions + Memory: 4 + CpuPeriod: 2 + Dns: + - Dns + - Dns + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + VolumesFrom: + - VolumesFrom + - VolumesFrom + Devices: + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + - CgroupPermissions: CgroupPermissions + PathInContainer: PathInContainer + PathOnHost: PathOnHost + MemorySwappiness: 9 + BlkioWeight: 5 + CgroupMode: CgroupMode + Init: true + Runtime: Runtime + UsernsMode: UsernsMode + Ulimits: + - Hard: 6 + Soft: 1 + Name: Name + - Hard: 6 + Soft: 1 + Name: Name + CpusetCpus: CpusetCpus + MemoryReservation: 5 + ExtraHosts: + - ExtraHosts + - ExtraHosts + BlkioDeviceWriteIOps: + - null + - null + Cgroups: Cgroups + UTSMode: UTSMode + Cgroup: Cgroup + CpuQuota: 4 + CpuRealtimeRuntime: 1 + DnsSearch: + - DnsSearch + - DnsSearch + CgroupConf: + key: CgroupConf + CpuShares: 1 + ContainerIDFile: ContainerIDFile + OomScoreAdj: 8 + KernelMemory: 1 + LogConfig: + Type: Type + Config: + key: Config + OomKillDisable: true + IOMaximumBandwidth: 6 + Privileged: true + GroupAdd: + - GroupAdd + - GroupAdd + AutoRemove: true + CpuPercent: 3 + ConsoleSize: + - 7 + - 7 + IOMaximumIOps: 7 + CapAdd: + - CapAdd + - CapAdd + VolumeDriver: VolumeDriver + CapDrop: + - CapDrop + - CapDrop + CpuCount: 9 + PublishAllPorts: true + Tmpfs: + key: Tmpfs + CpuRealtimePeriod: 7 + IpcMode: IpcMode + Binds: + - Binds + - Binds + CpusetMems: CpusetMems + BlkioDeviceWriteBps: + - null + - null + RestartPolicy: + MaximumRetryCount: 6 + Name: Name + NetworkMode: NetworkMode + PidMode: PidMode + BlkioDeviceReadBps: + - Path: Path + Rate: 5 + - Path: Path + Rate: 5 + CgroupParent: CgroupParent + NanoCpus: 6 + MemorySwap: 9 + Isolation: Isolation + Links: + - Links + - Links + PidsLimit: 9 + BlkioDeviceReadIOps: + - null + - null + SecurityOpt: + - SecurityOpt + - SecurityOpt + ShmSize: 3 + OCIConfigPath: OCIConfigPath + Dependencies: + - Dependencies + - Dependencies + Path: Path + Args: + - Args + - Args + EffectiveCaps: + - EffectiveCaps + - EffectiveCaps + Mounts: + - Destination: Destination + Options: + - Options + - Options + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + - Destination: Destination + Options: + - Options + - Options + Type: Type + Propagation: Propagation + RW: true + Mode: Mode + Driver: Driver + Source: Source + Name: Name + ProcessLabel: ProcessLabel + ExitCommand: + - ExitCommand + - ExitCommand + Pod: Pod + SizeRw: 7 + LogTag: LogTag + GraphDriver: + Data: + key: Data + Name: Name + Namespace: Namespace + RestartCount: 3 + ImageName: ImageName + NetworkSettings: + HairpinMode: true + Networks: + key: + GlobalIPv6Address: GlobalIPv6Address + GlobalIPv6PrefixLen: 5 + IPPrefixLen: 6 + AdditionalMACAddresses: + - AdditionalMACAddresses + - AdditionalMACAddresses + MacAddress: MacAddress + NetworkID: NetworkID + IPAMConfig: + key: IPAMConfig + DriverOpts: + key: DriverOpts + Gateway: Gateway + EndpointID: EndpointID + Links: + - Links + - Links + SecondaryIPv6Addresses: + - SecondaryIPv6Addresses + - SecondaryIPv6Addresses + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - SecondaryIPAddresses + - SecondaryIPAddresses + IPAddress: IPAddress + SandboxKey: SandboxKey + GlobalIPv6Address: GlobalIPv6Address + Ports: + key: + - null + - null + GlobalIPv6PrefixLen: 2 + IPPrefixLen: 6 + AdditionalMACAddresses: + - AdditionalMACAddresses + - AdditionalMACAddresses + MacAddress: MacAddress + SandboxID: SandboxID + LinkLocalIPv6Address: LinkLocalIPv6Address + LinkLocalIPv6PrefixLen: 6 + Gateway: Gateway + EndpointID: EndpointID + SecondaryIPv6Addresses: + - SecondaryIPv6Addresses + - SecondaryIPv6Addresses + IPv6Gateway: IPv6Gateway + SecondaryIPAddresses: + - SecondaryIPAddresses + - SecondaryIPAddresses + IPAddress: IPAddress + Bridge: Bridge + Rootfs: Rootfs + ResolvConfPath: ResolvConfPath + State: + Status: Status + Dead: true + ExitCode: 7 + ConmonPid: 0 + Error: Error + OciVersion: OciVersion + Pid: 0 + Healthcheck: + Status: Status + Log: + - Start: Start + ExitCode: 6 + Output: Output + End: End + - Start: Start + ExitCode: 6 + Output: Output + End: End + FailingStreak: 6 + Restarting: true + Running: true + FinishedAt: 2000-01-23T04:56:07.000+00:00 + OOMKilled: true + StartedAt: 2000-01-23T04:56:07.000+00:00 + Paused: true + ExecIDs: + - ExecIDs + - ExecIDs + IsInfra: true + Id: Id + LogPath: LogPath + body_6: + type: object + properties: + Detach: + type: boolean + description: Detach from the command. Not presently supported. + Tty: + type: boolean + description: Allocate a pseudo-TTY. Presently ignored. + body_7: + type: object + properties: + Detach: + type: boolean + description: Detach from the command. Not presently supported. + Tty: + type: boolean + description: Allocate a pseudo-TTY. Presently ignored. + inline_response_200_9: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/ImageConfig' + Created: + type: string + format: date-time + Digest: + $ref: '#/components/schemas/Digest' + GraphDriver: + $ref: '#/components/schemas/Data' + Healthcheck: + $ref: '#/components/schemas/Schema2HealthConfig' + History: + type: array + items: + $ref: '#/components/schemas/History' + Id: + type: string + x-go-name: ID + Labels: + type: object + additionalProperties: + type: string + ManifestType: + type: string + NamesHistory: + type: array + items: + type: string + Os: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + User: + type: string + Version: + type: string + VirtualSize: + type: integer + format: int64 + example: + NamesHistory: + - NamesHistory + - NamesHistory + RepoDigests: + - RepoDigests + - RepoDigests + Comment: Comment + VirtualSize: 6 + ManifestType: ManifestType + User: User + Architecture: Architecture + Os: Os + Digest: Digest + Parent: Parent + Config: + WorkingDir: WorkingDir + StopSignal: StopSignal + User: User + Volumes: + key: {} + Entrypoint: + - Entrypoint + - Entrypoint + Labels: + key: Labels + Cmd: + - Cmd + - Cmd + Env: + - Env + - Env + ExposedPorts: + key: {} + Size: 0 + Labels: + key: Labels + GraphDriver: + Data: + key: Data + Name: Name + Healthcheck: + Test: + - Test + - Test + Retries: 6 + Timeout: null + Interval: 0 + StartPeriod: null + History: + - author: author + created: 2000-01-23T04:56:07.000+00:00 + empty_layer: true + comment: comment + created_by: created_by + - author: author + created: 2000-01-23T04:56:07.000+00:00 + empty_layer: true + comment: comment + created_by: created_by + Created: 2000-01-23T04:56:07.000+00:00 + RootFS: + Type: Type + Layers: + - Layers + - Layers + Annotations: + key: Annotations + RepoTags: + - RepoTags + - RepoTags + Version: Version + Author: Author + Id: Id + inline_response_200_10: + type: object + properties: + id: + type: string + x-go-name: ID + layers: + type: array + items: + $ref: '#/components/schemas/ImageLayer' + x-go-name: Layers + size: + type: string + x-go-name: Size + tags: + type: array + items: + type: string + x-go-name: Tags + example: + size: size + layers: + - {} + - {} + id: id + tags: + - tags + - tags + body_8: + required: + - upload + properties: + upload: + type: string + description: tarball for imported image + format: binary + body_9: + required: + - upload + properties: + upload: + type: string + description: tarball for imported image + format: binary + body_10: + required: + - upload + properties: + upload: + type: string + description: tarball of container image + format: binary + body_11: + required: + - upload + properties: + upload: + type: string + description: tarball of container image + format: binary + inline_response_200_11: + type: object + properties: + CgroupParent: + type: string + description: CgroupParent is the parent of the pod's CGroup. + CgroupPath: + type: string + description: CgroupPath is the path to the pod's CGroup. + Containers: + type: array + description: |- + Containers gives a brief summary of all containers in the pod and + their current status. + items: + $ref: '#/components/schemas/InspectPodContainerInfo' + CreateCgroup: + type: boolean + description: |- + CreateCgroup is whether this pod will create its own CGroup to group + containers under. + CreateCommand: + type: array + description: |- + CreateCommand is the full command plus arguments of the process the + container has been created with. + items: + type: string + CreateInfra: + type: boolean + description: |- + CreateInfra is whether this pod will create an infra container to + share namespaces. + Created: + type: string + description: Created is the time when the pod was created. + format: date-time + Hostname: + type: string + description: Hostname is the hostname that the pod will set. + Id: + type: string + description: ID is the ID of the pod. + x-go-name: ID + InfraConfig: + $ref: '#/components/schemas/InspectPodInfraConfig' + InfraContainerID: + type: string + description: |- + InfraContainerID is the ID of the pod's infra container, if one is + present. + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels is a set of key-value labels that have been applied to the + pod. + Name: + type: string + description: Name is the name of the pod. + Namespace: + type: string + description: Namespace is the Libpod namespace the pod is placed in. + NumContainers: + type: integer + description: |- + NumContainers is the number of containers in the pod, including the + infra container. + format: uint64 + SharedNamespaces: + type: array + description: |- + SharedNamespaces contains a list of namespaces that will be shared by + containers within the pod. Can only be set if CreateInfra is true. + items: + type: string + State: + type: string + description: State represents the current state of the pod. + example: + InfraConfig: + NetworkOptions: + key: + - NetworkOptions + - NetworkOptions + Networks: + - Networks + - Networks + DNSOption: + - DNSOption + - DNSOption + NoManageHosts: true + PortBindings: + key: + - HostIp: HostIp + HostPort: HostPort + - HostIp: HostIp + HostPort: HostPort + DNSServer: + - DNSServer + - DNSServer + StaticIP: + - 0 + - 0 + DNSSearch: + - DNSSearch + - DNSSearch + HostNetwork: true + HostAdd: + - HostAdd + - HostAdd + NoManageResolvConf: true + StaticMAC: + - 6 + - 6 + CreateCommand: + - CreateCommand + - CreateCommand + Containers: + - State: State + Id: Id + Name: Name + - State: State + Id: Id + Name: Name + CreateCgroup: true + Hostname: Hostname + SharedNamespaces: + - SharedNamespaces + - SharedNamespaces + Labels: + key: Labels + Namespace: Namespace + NumContainers: 1 + Created: 2000-01-23T04:56:07.000+00:00 + Name: Name + CgroupParent: CgroupParent + CreateInfra: true + CgroupPath: CgroupPath + State: State + Id: Id + InfraContainerID: InfraContainerID + inline_response_200_12: + type: object + properties: + Containers: + type: array + items: + $ref: '#/components/schemas/SystemDfContainerReport' + Images: + type: array + items: + $ref: '#/components/schemas/SystemDfImageReport' + Volumes: + type: array + items: + $ref: '#/components/schemas/SystemDfVolumeReport' + example: + Volumes: + - VolumeName: VolumeName + ReclaimableSize: 3 + Size: 2 + Links: 9 + - VolumeName: VolumeName + ReclaimableSize: 3 + Size: 2 + Links: 9 + Images: + - SharedSize: 5 + UniqueSize: 7 + Repository: Repository + Size: 2 + Containers: 5 + ImageID: ImageID + Tag: Tag + Created: 2000-01-23T04:56:07.000+00:00 + - SharedSize: 5 + UniqueSize: 7 + Repository: Repository + Size: 2 + Containers: 5 + ImageID: ImageID + Tag: Tag + Created: 2000-01-23T04:56:07.000+00:00 + Containers: + - Names: Names + Status: Status + Command: + - Command + - Command + ContainerID: ContainerID + Size: 1 + RWSize: 6 + LocalVolumes: 0 + Image: Image + Created: 2000-01-23T04:56:07.000+00:00 + - Names: Names + Status: Status + Command: + - Command + - Command + ContainerID: ContainerID + Size: 1 + RWSize: 6 + LocalVolumes: 0 + Image: Image + Created: 2000-01-23T04:56:07.000+00:00 + inline_response_200_13: + type: object + properties: + Err: + type: object + additionalProperties: + type: string + ID: + type: object + additionalProperties: + type: integer + format: int64 + PodPruneReport: + type: array + items: + $ref: '#/components/schemas/PodPruneReport' + Report: + $ref: '#/components/schemas/Report' + Size: + type: integer + format: int64 + VolumePruneReport: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + example: + Err: + key: Err + Report: + Err: + key: Err + Id: + - Id + - Id + Size: 6 + PodPruneReport: + - Err: Err + Id: Id + - Err: Err + Id: Id + ID: + key: 0 + VolumePruneReport: + - Err: Err + Id: Id + - Err: Err + Id: Id + inline_response_200_14: + type: object + properties: + Client: + $ref: '#/components/schemas/Version' + Server: + $ref: '#/components/schemas/Version' + example: + Server: null + Client: + GitCommit: GitCommit + APIVersion: APIVersion + Version: Version + Built: 1 + OsArch: OsArch + BuiltTime: BuiltTime + GoVersion: GoVersion + inline_response_200_15: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + example: + Status: + key: Status + Options: + key: Options + UID: 6 + GID: 0 + Scope: Scope + CreatedAt: 2000-01-23T04:56:07.000+00:00 + Driver: Driver + Labels: + key: Labels + Anonymous: true + Mountpoint: Mountpoint + Name: Name + inline_response_200_16: + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + example: + CheckDuplicate: true + ConfigOnly: true + IPAM: + Options: + key: Options + Config: + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + - AuxiliaryAddresses: + key: AuxiliaryAddresses + Gateway: Gateway + Subnet: Subnet + IPRange: IPRange + Driver: Driver + Options: + key: Options + Scope: Scope + ConfigFrom: + Network: Network + Internal: true + Driver: Driver + Ingress: true + Labels: + key: Labels + Attachable: true + EnableIPv6: true + inline_response_200_17: + type: object + properties: + Volumes: + type: array + items: + $ref: '#/components/schemas/VolumeInfo' + example: + Volumes: + - Options: + key: Options + Scope: Scope + CreatedAt: CreatedAt + Driver: Driver + Labels: + key: Labels + Mountpoint: Mountpoint + Name: Name + - Options: + key: Options + Scope: Scope + CreatedAt: CreatedAt + Driver: Driver + Labels: + key: Labels + Mountpoint: Mountpoint + Name: Name + inline_response_200_18: + required: + - Driver + - Labels + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. Either `global` for cluster-wide, + or `local` for machine level. + Status: + type: object + additionalProperties: + type: object + properties: {} + example: {} + description: |- + Low-level details about the volume, provided by the volume driver. + Details are returned as a map with key/value pairs: + `{"key":"value","key2":"value2"}`. + + The `Status` field is optional, and is omitted if the volume driver + does not support this feature. + UsageData: + $ref: '#/components/schemas/VolumeUsageData' + example: + Status: + key: {} + Options: + key: Options + Scope: Scope + UsageData: + RefCount: 0 + Size: 6 + CreatedAt: CreatedAt + Driver: Driver + Labels: + key: Labels + Mountpoint: Mountpoint + Name: Name + inline_response_200_19: + type: object + properties: + SpaceReclaimed: + type: integer + format: uint64 + VolumesDeleted: + type: array + items: + type: string + example: + SpaceReclaimed: 0 + VolumesDeleted: + - VolumesDeleted + - VolumesDeleted + inline_response_200_3_Error: + type: object + properties: + Message: + type: string + example: + Message: Message + responses: + BadParamError: + description: Bad parameter in request + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + Changes: + description: Object Changes + content: + application/json: + schema: + type: object + properties: + Changes: + type: array + items: + $ref: '#/components/schemas/Change' + text/plain: + schema: + type: object + properties: + Changes: + type: array + items: + $ref: '#/components/schemas/Change' + text/html: + schema: + type: object + properties: + Changes: + type: array + items: + $ref: '#/components/schemas/Change' + CompatNetworkCreate: + description: Network create + content: + application/json: + schema: + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + text/plain: + schema: + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + text/html: + schema: + type: object + properties: + Attachable: + type: boolean + CheckDuplicate: + type: boolean + description: |- + Check for networks with duplicate names. + Network is primarily keyed based on a random ID and not on the name. + Network name is strictly a user-friendly alias to the network + which is uniquely identified using ID. + And there is no guaranteed way to check for duplicates. + Option CheckDuplicate is there to provide a best effort checking of any networks + which has the same name but it is not guaranteed to catch all name collisions. + ConfigFrom: + $ref: '#/components/schemas/ConfigReference' + ConfigOnly: + type: boolean + Driver: + type: string + EnableIPv6: + type: boolean + IPAM: + $ref: '#/components/schemas/IPAM' + Ingress: + type: boolean + Internal: + type: boolean + Labels: + type: object + additionalProperties: + type: string + Options: + type: object + additionalProperties: + type: string + Scope: + type: string + CompatNetworkInspect: + description: Network inspect + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkResource' + text/plain: + schema: + $ref: '#/components/schemas/NetworkResource' + text/html: + schema: + $ref: '#/components/schemas/NetworkResource' + CompatNetworkList: + description: Network list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkResource' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkResource' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkResource' + ConflictError: + description: Conflict error in operation + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + ContainerAlreadyStartedError: + description: Container already started + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + ContainerAlreadyStoppedError: + description: Container already stopped + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + ContainerCreateResponse: + description: Create container + content: + application/json: + schema: + type: object + properties: + Id: + type: string + description: ID of the container created + x-go-name: ID + Warnings: + type: array + description: Warnings during container creation + items: + type: string + text/plain: + schema: + type: object + properties: + Id: + type: string + description: ID of the container created + x-go-name: ID + Warnings: + type: array + description: Warnings during container creation + items: + type: string + text/html: + schema: + type: object + properties: + Id: + type: string + description: ID of the container created + x-go-name: ID + Warnings: + type: array + description: Warnings during container creation + items: + type: string + ContainerWaitResponse: + description: Wait container + content: + application/json: + schema: + type: object + properties: + Error: + type: object + properties: + Message: + type: string + StatusCode: + type: integer + description: container exit code + format: int64 + text/plain: + schema: + type: object + properties: + Error: + type: object + properties: + Message: + type: string + StatusCode: + type: integer + description: container exit code + format: int64 + text/html: + schema: + type: object + properties: + Error: + type: object + properties: + Message: + type: string + StatusCode: + type: integer + description: container exit code + format: int64 + DockerImageSummary: + description: Image summary + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageSummary' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/ImageSummary' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/ImageSummary' + DockerVolumeInfoResponse: + description: This response definition is used for both the create and inspect + endpoints + content: + application/json: + schema: + required: + - Driver + - Labels + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. Either `global` for cluster-wide, + or `local` for machine level. + Status: + type: object + additionalProperties: + type: object + properties: {} + description: |- + Low-level details about the volume, provided by the volume driver. + Details are returned as a map with key/value pairs: + `{"key":"value","key2":"value2"}`. + + The `Status` field is optional, and is omitted if the volume driver + does not support this feature. + UsageData: + $ref: '#/components/schemas/VolumeUsageData' + text/plain: + schema: + required: + - Driver + - Labels + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. Either `global` for cluster-wide, + or `local` for machine level. + Status: + type: object + additionalProperties: + type: object + properties: {} + description: |- + Low-level details about the volume, provided by the volume driver. + Details are returned as a map with key/value pairs: + `{"key":"value","key2":"value2"}`. + + The `Status` field is optional, and is omitted if the volume driver + does not support this feature. + UsageData: + $ref: '#/components/schemas/VolumeUsageData' + text/html: + schema: + required: + - Driver + - Labels + - Mountpoint + - Name + - Options + - Scope + type: object + properties: + CreatedAt: + type: string + description: Date/Time the volume was created. + Driver: + type: string + description: Name of the volume driver used by the volume. + Labels: + type: object + additionalProperties: + type: string + description: User-defined key/value metadata. + Mountpoint: + type: string + description: Mount path of the volume on the host. + Name: + type: string + description: Name of the volume. + Options: + type: object + additionalProperties: + type: string + description: The driver specific options used when creating the volume. + Scope: + type: string + description: |- + The level at which the volume exists. Either `global` for cluster-wide, + or `local` for machine level. + Status: + type: object + additionalProperties: + type: object + properties: {} + description: |- + Low-level details about the volume, provided by the volume driver. + Details are returned as a map with key/value pairs: + `{"key":"value","key2":"value2"}`. + + The `Status` field is optional, and is omitted if the volume driver + does not support this feature. + UsageData: + $ref: '#/components/schemas/VolumeUsageData' + DockerVolumePruneResponse: + description: Volume prune response + content: + application/json: + schema: + type: object + properties: + SpaceReclaimed: + type: integer + format: uint64 + VolumesDeleted: + type: array + items: + type: string + text/plain: + schema: + type: object + properties: + SpaceReclaimed: + type: integer + format: uint64 + VolumesDeleted: + type: array + items: + type: string + text/html: + schema: + type: object + properties: + SpaceReclaimed: + type: integer + format: uint64 + VolumesDeleted: + type: array + items: + type: string + DocsContainerInspectResponse: + description: Inspect container + content: + application/json: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/Config' + Created: + type: string + Driver: + type: string + ExecIDs: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + HostConfig: + $ref: '#/components/schemas/HostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + LogPath: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/MountPoint' + Name: + type: string + NetworkSettings: + $ref: '#/components/schemas/NetworkSettings' + Node: + $ref: '#/components/schemas/ContainerNode' + Path: + type: string + Platform: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int64 + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/ContainerState' + text/plain: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/Config' + Created: + type: string + Driver: + type: string + ExecIDs: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + HostConfig: + $ref: '#/components/schemas/HostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + LogPath: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/MountPoint' + Name: + type: string + NetworkSettings: + $ref: '#/components/schemas/NetworkSettings' + Node: + $ref: '#/components/schemas/ContainerNode' + Path: + type: string + Platform: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int64 + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/ContainerState' + text/html: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/Config' + Created: + type: string + Driver: + type: string + ExecIDs: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + HostConfig: + $ref: '#/components/schemas/HostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + LogPath: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/MountPoint' + Name: + type: string + NetworkSettings: + $ref: '#/components/schemas/NetworkSettings' + Node: + $ref: '#/components/schemas/ContainerNode' + Path: + type: string + Platform: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int64 + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/ContainerState' + DocsContainerPruneReport: + description: Prune containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ContainersPruneReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/ContainersPruneReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/ContainersPruneReport' + DocsContainerTopResponse: + description: List processes in container + content: + application/json: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + text/plain: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + text/html: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + DocsHistory: + description: History response + content: + application/json: + schema: + type: object + properties: + Comment: + type: string + Created: + type: integer + format: int64 + CreatedBy: + type: string + Id: + type: string + x-go-name: ID + Size: + type: integer + format: int64 + Tags: + type: array + items: + type: string + text/plain: + schema: + type: object + properties: + Comment: + type: string + Created: + type: integer + format: int64 + CreatedBy: + type: string + Id: + type: string + x-go-name: ID + Size: + type: integer + format: int64 + Tags: + type: array + items: + type: string + text/html: + schema: + type: object + properties: + Comment: + type: string + Created: + type: integer + format: int64 + CreatedBy: + type: string + Id: + type: string + x-go-name: ID + Size: + type: integer + format: int64 + Tags: + type: array + items: + type: string + DocsImageDeleteResponse: + description: Delete response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/ImageDeleteResponse' + DocsImageInspect: + description: Inspect response + content: + application/json: + schema: + type: object + properties: + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/Config' + Container: + type: string + ContainerConfig: + $ref: '#/components/schemas/Config' + Created: + type: string + DockerVersion: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + Id: + type: string + x-go-name: ID + Metadata: + $ref: '#/components/schemas/ImageMetadata' + Os: + type: string + OsVersion: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + Variant: + type: string + VirtualSize: + type: integer + format: int64 + text/plain: + schema: + type: object + properties: + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/Config' + Container: + type: string + ContainerConfig: + $ref: '#/components/schemas/Config' + Created: + type: string + DockerVersion: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + Id: + type: string + x-go-name: ID + Metadata: + $ref: '#/components/schemas/ImageMetadata' + Os: + type: string + OsVersion: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + Variant: + type: string + VirtualSize: + type: integer + format: int64 + text/html: + schema: + type: object + properties: + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/Config' + Container: + type: string + ContainerConfig: + $ref: '#/components/schemas/Config' + Created: + type: string + DockerVersion: + type: string + GraphDriver: + $ref: '#/components/schemas/GraphDriverData' + Id: + type: string + x-go-name: ID + Metadata: + $ref: '#/components/schemas/ImageMetadata' + Os: + type: string + OsVersion: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + Variant: + type: string + VirtualSize: + type: integer + format: int64 + DocsLibpodImagesImportResponse: + description: Import response + content: + application/json: + schema: + $ref: '#/components/schemas/ImageImportReport' + text/plain: + schema: + $ref: '#/components/schemas/ImageImportReport' + text/html: + schema: + $ref: '#/components/schemas/ImageImportReport' + DocsLibpodImagesLoadResponse: + description: Load response + content: + application/json: + schema: + $ref: '#/components/schemas/ImageLoadReport' + text/plain: + schema: + $ref: '#/components/schemas/ImageLoadReport' + text/html: + schema: + $ref: '#/components/schemas/ImageLoadReport' + DocsLibpodImagesPullResponse: + description: Pull response + content: + application/json: + schema: + $ref: '#/components/schemas/LibpodImagesPullReport' + text/plain: + schema: + $ref: '#/components/schemas/LibpodImagesPullReport' + text/html: + schema: + $ref: '#/components/schemas/LibpodImagesPullReport' + DocsLibpodImagesRemoveResponse: + description: Remove response + content: + application/json: + schema: + $ref: '#/components/schemas/LibpodImagesRemoveReport' + text/plain: + schema: + $ref: '#/components/schemas/LibpodImagesRemoveReport' + text/html: + schema: + $ref: '#/components/schemas/LibpodImagesRemoveReport' + DocsLibpodInspectImageResponse: + description: Inspect image + content: + application/json: + schema: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/ImageConfig' + Created: + type: string + format: date-time + Digest: + $ref: '#/components/schemas/Digest' + GraphDriver: + $ref: '#/components/schemas/Data' + Healthcheck: + $ref: '#/components/schemas/Schema2HealthConfig' + History: + type: array + items: + $ref: '#/components/schemas/History' + Id: + type: string + x-go-name: ID + Labels: + type: object + additionalProperties: + type: string + ManifestType: + type: string + NamesHistory: + type: array + items: + type: string + Os: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + User: + type: string + Version: + type: string + VirtualSize: + type: integer + format: int64 + text/plain: + schema: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/ImageConfig' + Created: + type: string + format: date-time + Digest: + $ref: '#/components/schemas/Digest' + GraphDriver: + $ref: '#/components/schemas/Data' + Healthcheck: + $ref: '#/components/schemas/Schema2HealthConfig' + History: + type: array + items: + $ref: '#/components/schemas/History' + Id: + type: string + x-go-name: ID + Labels: + type: object + additionalProperties: + type: string + ManifestType: + type: string + NamesHistory: + type: array + items: + type: string + Os: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + User: + type: string + Version: + type: string + VirtualSize: + type: integer + format: int64 + text/html: + schema: + type: object + properties: + Annotations: + type: object + additionalProperties: + type: string + Architecture: + type: string + Author: + type: string + Comment: + type: string + Config: + $ref: '#/components/schemas/ImageConfig' + Created: + type: string + format: date-time + Digest: + $ref: '#/components/schemas/Digest' + GraphDriver: + $ref: '#/components/schemas/Data' + Healthcheck: + $ref: '#/components/schemas/Schema2HealthConfig' + History: + type: array + items: + $ref: '#/components/schemas/History' + Id: + type: string + x-go-name: ID + Labels: + type: object + additionalProperties: + type: string + ManifestType: + type: string + NamesHistory: + type: array + items: + type: string + Os: + type: string + Parent: + type: string + RepoDigests: + type: array + items: + type: string + RepoTags: + type: array + items: + type: string + RootFS: + $ref: '#/components/schemas/RootFS' + Size: + type: integer + format: int64 + User: + type: string + Version: + type: string + VirtualSize: + type: integer + format: int64 + DocsLibpodPlayKubeResponse: + description: PlayKube response + content: + application/json: + schema: + $ref: '#/components/schemas/PlayKubeReport' + text/plain: + schema: + $ref: '#/components/schemas/PlayKubeReport' + text/html: + schema: + $ref: '#/components/schemas/PlayKubeReport' + DocsLibpodPruneResponse: + description: Prune containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LibpodContainersPruneReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/LibpodContainersPruneReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/LibpodContainersPruneReport' + DocsListContainer: + description: List Containers + content: + application/json: + schema: + type: object + text/plain: + schema: + type: object + text/html: + schema: + type: object + DocsPodStatsResponse: + description: List processes in pod + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PodStatsReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/PodStatsReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/PodStatsReport' + DocsPodTopResponse: + description: List processes in pod + content: + application/json: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + text/plain: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + text/html: + schema: + required: + - Processes + - Titles + type: object + properties: + Processes: + type: array + description: |- + Each process running in the container, where each is process + is an array of values corresponding to the titles. + items: + type: array + items: + type: string + Titles: + type: array + description: The ps column titles + items: + type: string + DocsRegistriesList: + description: Registries summary + content: + application/json: + schema: + $ref: '#/components/schemas/ListRegistriesReport' + text/plain: + schema: + $ref: '#/components/schemas/ListRegistriesReport' + text/html: + schema: + $ref: '#/components/schemas/ListRegistriesReport' + DocsSearchResponse: + description: Search results + content: + application/json: + schema: + type: object + properties: + Automated: + type: string + description: Automated indicates if the image was created by an automated + build. + Description: + type: string + description: Description of the image. + Index: + type: string + description: Index is the image index (e.g., "docker.io" or "quay.io") + Name: + type: string + description: Name is the canoncical name of the image (e.g., "docker.io/library/alpine"). + Official: + type: string + description: Official indicates if it's an official image. + Stars: + type: integer + description: Stars is the number of stars of the image. + format: int64 + text/plain: + schema: + type: object + properties: + Automated: + type: string + description: Automated indicates if the image was created by an automated + build. + Description: + type: string + description: Description of the image. + Index: + type: string + description: Index is the image index (e.g., "docker.io" or "quay.io") + Name: + type: string + description: Name is the canoncical name of the image (e.g., "docker.io/library/alpine"). + Official: + type: string + description: Official indicates if it's an official image. + Stars: + type: integer + description: Stars is the number of stars of the image. + format: int64 + text/html: + schema: + type: object + properties: + Automated: + type: string + description: Automated indicates if the image was created by an automated + build. + Description: + type: string + description: Description of the image. + Index: + type: string + description: Index is the image index (e.g., "docker.io" or "quay.io") + Name: + type: string + description: Name is the canoncical name of the image (e.g., "docker.io/library/alpine"). + Official: + type: string + description: Official indicates if it's an official image. + Stars: + type: integer + description: Stars is the number of stars of the image. + format: int64 + HealthcheckRun: + description: Healthcheck + content: + application/json: + schema: + type: object + properties: + FailingStreak: + type: integer + description: FailingStreak is the number of consecutive failed healthchecks + format: int64 + Log: + type: array + description: Log describes healthcheck attempts and results + items: + $ref: '#/components/schemas/HealthCheckLog' + Status: + type: string + description: Status healthy or unhealthy + text/plain: + schema: + type: object + properties: + FailingStreak: + type: integer + description: FailingStreak is the number of consecutive failed healthchecks + format: int64 + Log: + type: array + description: Log describes healthcheck attempts and results + items: + $ref: '#/components/schemas/HealthCheckLog' + Status: + type: string + description: Status healthy or unhealthy + text/html: + schema: + type: object + properties: + FailingStreak: + type: integer + description: FailingStreak is the number of consecutive failed healthchecks + format: int64 + Log: + type: array + description: Log describes healthcheck attempts and results + items: + $ref: '#/components/schemas/HealthCheckLog' + Status: + type: string + description: Status healthy or unhealthy + InfoResponse: + description: Info + content: + application/json: + schema: + $ref: '#/components/schemas/Info' + text/plain: + schema: + $ref: '#/components/schemas/Info' + text/html: + schema: + $ref: '#/components/schemas/Info' + InspectManifest: + description: Inspect Manifest + content: + application/json: + schema: + $ref: '#/components/schemas/List' + text/plain: + schema: + $ref: '#/components/schemas/List' + text/html: + schema: + $ref: '#/components/schemas/List' + InspectPodResponse: + description: Inspect pod + content: + application/json: + schema: + type: object + properties: + CgroupParent: + type: string + description: CgroupParent is the parent of the pod's CGroup. + CgroupPath: + type: string + description: CgroupPath is the path to the pod's CGroup. + Containers: + type: array + description: |- + Containers gives a brief summary of all containers in the pod and + their current status. + items: + $ref: '#/components/schemas/InspectPodContainerInfo' + CreateCgroup: + type: boolean + description: |- + CreateCgroup is whether this pod will create its own CGroup to group + containers under. + CreateCommand: + type: array + description: |- + CreateCommand is the full command plus arguments of the process the + container has been created with. + items: + type: string + CreateInfra: + type: boolean + description: |- + CreateInfra is whether this pod will create an infra container to + share namespaces. + Created: + type: string + description: Created is the time when the pod was created. + format: date-time + Hostname: + type: string + description: Hostname is the hostname that the pod will set. + Id: + type: string + description: ID is the ID of the pod. + x-go-name: ID + InfraConfig: + $ref: '#/components/schemas/InspectPodInfraConfig' + InfraContainerID: + type: string + description: |- + InfraContainerID is the ID of the pod's infra container, if one is + present. + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels is a set of key-value labels that have been applied to the + pod. + Name: + type: string + description: Name is the name of the pod. + Namespace: + type: string + description: Namespace is the Libpod namespace the pod is placed in. + NumContainers: + type: integer + description: |- + NumContainers is the number of containers in the pod, including the + infra container. + format: uint64 + SharedNamespaces: + type: array + description: |- + SharedNamespaces contains a list of namespaces that will be shared by + containers within the pod. Can only be set if CreateInfra is true. + items: + type: string + State: + type: string + description: State represents the current state of the pod. + text/plain: + schema: + type: object + properties: + CgroupParent: + type: string + description: CgroupParent is the parent of the pod's CGroup. + CgroupPath: + type: string + description: CgroupPath is the path to the pod's CGroup. + Containers: + type: array + description: |- + Containers gives a brief summary of all containers in the pod and + their current status. + items: + $ref: '#/components/schemas/InspectPodContainerInfo' + CreateCgroup: + type: boolean + description: |- + CreateCgroup is whether this pod will create its own CGroup to group + containers under. + CreateCommand: + type: array + description: |- + CreateCommand is the full command plus arguments of the process the + container has been created with. + items: + type: string + CreateInfra: + type: boolean + description: |- + CreateInfra is whether this pod will create an infra container to + share namespaces. + Created: + type: string + description: Created is the time when the pod was created. + format: date-time + Hostname: + type: string + description: Hostname is the hostname that the pod will set. + Id: + type: string + description: ID is the ID of the pod. + x-go-name: ID + InfraConfig: + $ref: '#/components/schemas/InspectPodInfraConfig' + InfraContainerID: + type: string + description: |- + InfraContainerID is the ID of the pod's infra container, if one is + present. + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels is a set of key-value labels that have been applied to the + pod. + Name: + type: string + description: Name is the name of the pod. + Namespace: + type: string + description: Namespace is the Libpod namespace the pod is placed in. + NumContainers: + type: integer + description: |- + NumContainers is the number of containers in the pod, including the + infra container. + format: uint64 + SharedNamespaces: + type: array + description: |- + SharedNamespaces contains a list of namespaces that will be shared by + containers within the pod. Can only be set if CreateInfra is true. + items: + type: string + State: + type: string + description: State represents the current state of the pod. + text/html: + schema: + type: object + properties: + CgroupParent: + type: string + description: CgroupParent is the parent of the pod's CGroup. + CgroupPath: + type: string + description: CgroupPath is the path to the pod's CGroup. + Containers: + type: array + description: |- + Containers gives a brief summary of all containers in the pod and + their current status. + items: + $ref: '#/components/schemas/InspectPodContainerInfo' + CreateCgroup: + type: boolean + description: |- + CreateCgroup is whether this pod will create its own CGroup to group + containers under. + CreateCommand: + type: array + description: |- + CreateCommand is the full command plus arguments of the process the + container has been created with. + items: + type: string + CreateInfra: + type: boolean + description: |- + CreateInfra is whether this pod will create an infra container to + share namespaces. + Created: + type: string + description: Created is the time when the pod was created. + format: date-time + Hostname: + type: string + description: Hostname is the hostname that the pod will set. + Id: + type: string + description: ID is the ID of the pod. + x-go-name: ID + InfraConfig: + $ref: '#/components/schemas/InspectPodInfraConfig' + InfraContainerID: + type: string + description: |- + InfraContainerID is the ID of the pod's infra container, if one is + present. + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels is a set of key-value labels that have been applied to the + pod. + Name: + type: string + description: Name is the name of the pod. + Namespace: + type: string + description: Namespace is the Libpod namespace the pod is placed in. + NumContainers: + type: integer + description: |- + NumContainers is the number of containers in the pod, including the + infra container. + format: uint64 + SharedNamespaces: + type: array + description: |- + SharedNamespaces contains a list of namespaces that will be shared by + containers within the pod. Can only be set if CreateInfra is true. + items: + type: string + State: + type: string + description: State represents the current state of the pod. + InspectVolumeResponse: + description: Inspect volume + content: + application/json: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + text/plain: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + text/html: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + InternalError: + description: Internal server error + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + LibpodImageTreeResponse: + description: Image tree response + content: + application/json: + schema: + type: object + properties: + id: + type: string + x-go-name: ID + layers: + type: array + items: + $ref: '#/components/schemas/ImageLayer' + x-go-name: Layers + size: + type: string + x-go-name: Size + tags: + type: array + items: + type: string + x-go-name: Tags + text/plain: + schema: + type: object + properties: + id: + type: string + x-go-name: ID + layers: + type: array + items: + $ref: '#/components/schemas/ImageLayer' + x-go-name: Layers + size: + type: string + x-go-name: Size + tags: + type: array + items: + type: string + x-go-name: Tags + text/html: + schema: + type: object + properties: + id: + type: string + x-go-name: ID + layers: + type: array + items: + $ref: '#/components/schemas/ImageLayer' + x-go-name: Layers + size: + type: string + x-go-name: Size + tags: + type: array + items: + type: string + x-go-name: Tags + LibpodInspectContainerResponse: + description: Inspect container + content: + application/json: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + BoundingCaps: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/InspectContainerConfig' + ConmonPidFile: + type: string + Created: + type: string + format: date-time + Dependencies: + type: array + items: + type: string + Driver: + type: string + EffectiveCaps: + type: array + items: + type: string + ExecIDs: + type: array + items: + type: string + ExitCommand: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/Data' + HostConfig: + $ref: '#/components/schemas/InspectContainerHostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + ImageName: + type: string + IsInfra: + type: boolean + LogPath: + type: string + LogTag: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/InspectMount' + Name: + type: string + Namespace: + type: string + NetworkSettings: + $ref: '#/components/schemas/InspectNetworkSettings' + OCIConfigPath: + type: string + OCIRuntime: + type: string + Path: + type: string + Pod: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int32 + Rootfs: + type: string + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/InspectContainerState' + StaticDir: + type: string + text/plain: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + BoundingCaps: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/InspectContainerConfig' + ConmonPidFile: + type: string + Created: + type: string + format: date-time + Dependencies: + type: array + items: + type: string + Driver: + type: string + EffectiveCaps: + type: array + items: + type: string + ExecIDs: + type: array + items: + type: string + ExitCommand: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/Data' + HostConfig: + $ref: '#/components/schemas/InspectContainerHostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + ImageName: + type: string + IsInfra: + type: boolean + LogPath: + type: string + LogTag: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/InspectMount' + Name: + type: string + Namespace: + type: string + NetworkSettings: + $ref: '#/components/schemas/InspectNetworkSettings' + OCIConfigPath: + type: string + OCIRuntime: + type: string + Path: + type: string + Pod: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int32 + Rootfs: + type: string + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/InspectContainerState' + StaticDir: + type: string + text/html: + schema: + type: object + properties: + AppArmorProfile: + type: string + Args: + type: array + items: + type: string + BoundingCaps: + type: array + items: + type: string + Config: + $ref: '#/components/schemas/InspectContainerConfig' + ConmonPidFile: + type: string + Created: + type: string + format: date-time + Dependencies: + type: array + items: + type: string + Driver: + type: string + EffectiveCaps: + type: array + items: + type: string + ExecIDs: + type: array + items: + type: string + ExitCommand: + type: array + items: + type: string + GraphDriver: + $ref: '#/components/schemas/Data' + HostConfig: + $ref: '#/components/schemas/InspectContainerHostConfig' + HostnamePath: + type: string + HostsPath: + type: string + Id: + type: string + x-go-name: ID + Image: + type: string + ImageName: + type: string + IsInfra: + type: boolean + LogPath: + type: string + LogTag: + type: string + MountLabel: + type: string + Mounts: + type: array + items: + $ref: '#/components/schemas/InspectMount' + Name: + type: string + Namespace: + type: string + NetworkSettings: + $ref: '#/components/schemas/InspectNetworkSettings' + OCIConfigPath: + type: string + OCIRuntime: + type: string + Path: + type: string + Pod: + type: string + ProcessLabel: + type: string + ResolvConfPath: + type: string + RestartCount: + type: integer + format: int32 + Rootfs: + type: string + SizeRootFs: + type: integer + format: int64 + SizeRw: + type: integer + format: int64 + State: + $ref: '#/components/schemas/InspectContainerState' + StaticDir: + type: string + ListContainers: + description: List Containers + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ListContainer' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/ListContainer' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/ListContainer' + ListPodsResponse: + description: List pods + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ListPodsReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/ListPodsReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/ListPodsReport' + NetworkCreateReport: + description: Network create + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreateReport' + text/plain: + schema: + $ref: '#/components/schemas/NetworkCreateReport' + text/html: + schema: + $ref: '#/components/schemas/NetworkCreateReport' + NetworkInspectReport: + description: Network inspect + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkInspectReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkInspectReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkInspectReport' + NetworkListReport: + description: Network list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkListReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkListReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/NetworkListReport' + NetworkRmReport: + description: Network rm + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkRmReport' + text/plain: + schema: + $ref: '#/components/schemas/NetworkRmReport' + text/html: + schema: + $ref: '#/components/schemas/NetworkRmReport' + NoSuchContainer: + description: No such container + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchExecInstance: + description: No such exec instance + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchImage: + description: No such image + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchManifest: + description: No such manifest + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchNetwork: + description: No such network + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchPod: + description: No such pod + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + NoSuchVolume: + description: No such volume + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + PodAlreadyStartedError: + description: Pod already started + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + PodAlreadyStoppedError: + description: Pod already stopped + content: + application/json: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/plain: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + text/html: + schema: + type: object + properties: + cause: + type: string + description: API root cause formatted for automated parsing + example: API root cause + x-go-name: Because + message: + type: string + description: human error message, formatted for a human to read + example: human error message + x-go-name: Message + response: + type: integer + description: http response code + format: int64 + x-go-name: ResponseCode + PodKillReport: + description: Kill Pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodKillReport' + text/plain: + schema: + $ref: '#/components/schemas/PodKillReport' + text/html: + schema: + $ref: '#/components/schemas/PodKillReport' + PodPauseReport: + description: Pause pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodPauseReport' + text/plain: + schema: + $ref: '#/components/schemas/PodPauseReport' + text/html: + schema: + $ref: '#/components/schemas/PodPauseReport' + PodPruneReport: + description: Prune pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodPruneReport' + text/plain: + schema: + $ref: '#/components/schemas/PodPruneReport' + text/html: + schema: + $ref: '#/components/schemas/PodPruneReport' + PodRestartReport: + description: Restart pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodRestartReport' + text/plain: + schema: + $ref: '#/components/schemas/PodRestartReport' + text/html: + schema: + $ref: '#/components/schemas/PodRestartReport' + PodRmReport: + description: Rm pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodRmReport' + text/plain: + schema: + $ref: '#/components/schemas/PodRmReport' + text/html: + schema: + $ref: '#/components/schemas/PodRmReport' + PodStartReport: + description: Start pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodStartReport' + text/plain: + schema: + $ref: '#/components/schemas/PodStartReport' + text/html: + schema: + $ref: '#/components/schemas/PodStartReport' + PodStopReport: + description: Stop pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodStopReport' + text/plain: + schema: + $ref: '#/components/schemas/PodStopReport' + text/html: + schema: + $ref: '#/components/schemas/PodStopReport' + PodUnpauseReport: + description: Unpause pod + content: + application/json: + schema: + $ref: '#/components/schemas/PodUnpauseReport' + text/plain: + schema: + $ref: '#/components/schemas/PodUnpauseReport' + text/html: + schema: + $ref: '#/components/schemas/PodUnpauseReport' + SystemDiskUse: + description: Disk usage + content: + application/json: + schema: + type: object + properties: + Containers: + type: array + items: + $ref: '#/components/schemas/SystemDfContainerReport' + Images: + type: array + items: + $ref: '#/components/schemas/SystemDfImageReport' + Volumes: + type: array + items: + $ref: '#/components/schemas/SystemDfVolumeReport' + text/plain: + schema: + type: object + properties: + Containers: + type: array + items: + $ref: '#/components/schemas/SystemDfContainerReport' + Images: + type: array + items: + $ref: '#/components/schemas/SystemDfImageReport' + Volumes: + type: array + items: + $ref: '#/components/schemas/SystemDfVolumeReport' + text/html: + schema: + type: object + properties: + Containers: + type: array + items: + $ref: '#/components/schemas/SystemDfContainerReport' + Images: + type: array + items: + $ref: '#/components/schemas/SystemDfImageReport' + Volumes: + type: array + items: + $ref: '#/components/schemas/SystemDfVolumeReport' + SystemPruneReport: + description: Prune report + content: + application/json: + schema: + type: object + properties: + Err: + type: object + additionalProperties: + type: string + ID: + type: object + additionalProperties: + type: integer + format: int64 + PodPruneReport: + type: array + items: + $ref: '#/components/schemas/PodPruneReport' + Report: + $ref: '#/components/schemas/Report' + Size: + type: integer + format: int64 + VolumePruneReport: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + text/plain: + schema: + type: object + properties: + Err: + type: object + additionalProperties: + type: string + ID: + type: object + additionalProperties: + type: integer + format: int64 + PodPruneReport: + type: array + items: + $ref: '#/components/schemas/PodPruneReport' + Report: + $ref: '#/components/schemas/Report' + Size: + type: integer + format: int64 + VolumePruneReport: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + text/html: + schema: + type: object + properties: + Err: + type: object + additionalProperties: + type: string + ID: + type: object + additionalProperties: + type: integer + format: int64 + PodPruneReport: + type: array + items: + $ref: '#/components/schemas/PodPruneReport' + Report: + $ref: '#/components/schemas/Report' + Size: + type: integer + format: int64 + VolumePruneReport: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + Version: + description: Version + content: + application/json: + schema: + type: object + properties: + Client: + $ref: '#/components/schemas/Version' + Server: + $ref: '#/components/schemas/Version' + text/plain: + schema: + type: object + properties: + Client: + $ref: '#/components/schemas/Version' + Server: + $ref: '#/components/schemas/Version' + text/html: + schema: + type: object + properties: + Client: + $ref: '#/components/schemas/Version' + Server: + $ref: '#/components/schemas/Version' + VolumeCreateResponse: + description: Volume create response + content: + application/json: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + text/plain: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + text/html: + schema: + type: object + properties: + Anonymous: + type: boolean + description: |- + Anonymous indicates that the volume was created as an anonymous + volume for a specific container, and will be be removed when any + container using it is removed. + CreatedAt: + type: string + description: |- + CreatedAt is the date and time the volume was created at. This is not + stored for older Libpod volumes; if so, it will be omitted. + format: date-time + Driver: + type: string + description: |- + Driver is the driver used to create the volume. + This will be properly implemented in a future version. + GID: + type: integer + description: GID is the GID that the volume was created with. + format: int64 + Labels: + type: object + additionalProperties: + type: string + description: |- + Labels includes the volume's configured labels, key:value pairs that + can be passed during volume creation to provide information for third + party tools. + Mountpoint: + type: string + description: Mountpoint is the path on the host where the volume is + mounted. + Name: + type: string + description: Name is the name of the volume. + Options: + type: object + additionalProperties: + type: string + description: |- + Options is a set of options that were used when creating the volume. + It is presently not used. + Scope: + type: string + description: |- + Scope is unused and provided solely for Docker compatibility. It is + unconditionally set to "local". + Status: + type: object + additionalProperties: + type: string + description: |- + Status is presently unused and provided only for Docker compatibility. + In the future it will be used to return information on the volume's + current state. + UID: + type: integer + description: UID is the UID that the volume was created with. + format: int64 + VolumeList: + description: Volume list + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Volume' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/Volume' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/Volume' + VolumeListResponse: + description: Volume list response + content: + application/json: + schema: + type: object + properties: + Volumes: + type: array + items: + $ref: '#/components/schemas/VolumeInfo' + text/plain: + schema: + type: object + properties: + Volumes: + type: array + items: + $ref: '#/components/schemas/VolumeInfo' + text/html: + schema: + type: object + properties: + Volumes: + type: array + items: + $ref: '#/components/schemas/VolumeInfo' + VolumePruneResponse: + description: Volume prune response + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/VolumePruneReport' + ok: + description: Success + content: + application/json: + schema: + type: object + text/plain: + schema: + type: object + text/html: + schema: + type: object +x-original-swagger-version: "2.0" diff --git a/pkg/swagger/api_containers.go b/pkg/swagger/api_containers.go new file mode 100644 index 0000000..41920df --- /dev/null +++ b/pkg/swagger/api_containers.go @@ -0,0 +1,3647 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ContainersApiService service +/* +ContainersApiService Report on changes to container's filesystem; adds, deletes or modifications. +Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or id of the container + +*/ +func (a *ContainersApiService) ChangesContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/changes" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json", "text/plain", "text/html"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Attach to a container +Hijacks the connection to forward the container's standard streams to the client. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodAttachContainerOpts - Optional Parameters: + * @param "DetachKeys" (optional.String) - keys to use for detaching from the container + * @param "Logs" (optional.Bool) - Stream all logs from the container across the connection. Happens before streaming attach (if requested). At least one of logs or stream must be set + * @param "Stream" (optional.Bool) - Attach to the container. If unset, and logs is set, only the container's logs will be sent. At least one of stream or logs must be set + * @param "Stdout" (optional.Bool) - Attach to container STDOUT + * @param "Stderr" (optional.Bool) - Attach to container STDERR + * @param "Stdin" (optional.Bool) - Attach to container STDIN + +*/ + +type ContainersApiLibpodAttachContainerOpts struct { + DetachKeys optional.String + Logs optional.Bool + Stream optional.Bool + Stdout optional.Bool + Stderr optional.Bool + Stdin optional.Bool +} + +func (a *ContainersApiService) LibpodAttachContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodAttachContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/attach" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.DetachKeys.IsSet() { + localVarQueryParams.Add("detachKeys", parameterToString(localVarOptionals.DetachKeys.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Logs.IsSet() { + localVarQueryParams.Add("logs", parameterToString(localVarOptionals.Logs.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdout.IsSet() { + localVarQueryParams.Add("stdout", parameterToString(localVarOptionals.Stdout.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stderr.IsSet() { + localVarQueryParams.Add("stderr", parameterToString(localVarOptionals.Stderr.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdin.IsSet() { + localVarQueryParams.Add("stdin", parameterToString(localVarOptionals.Stdin.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Checkpoint a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodCheckpointContainerOpts - Optional Parameters: + * @param "Keep" (optional.Bool) - keep all temporary checkpoint files + * @param "LeaveRunning" (optional.Bool) - leave the container running after writing checkpoint to disk + * @param "TcpEstablished" (optional.Bool) - checkpoint a container with established TCP connections + * @param "Export" (optional.Bool) - export the checkpoint image to a tar.gz + * @param "IgnoreRootFS" (optional.Bool) - do not include root file-system changes when exporting + +*/ + +type ContainersApiLibpodCheckpointContainerOpts struct { + Keep optional.Bool + LeaveRunning optional.Bool + TcpEstablished optional.Bool + Export optional.Bool + IgnoreRootFS optional.Bool +} + +func (a *ContainersApiService) LibpodCheckpointContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodCheckpointContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/checkpoint" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Keep.IsSet() { + localVarQueryParams.Add("keep", parameterToString(localVarOptionals.Keep.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.LeaveRunning.IsSet() { + localVarQueryParams.Add("leaveRunning", parameterToString(localVarOptionals.LeaveRunning.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TcpEstablished.IsSet() { + localVarQueryParams.Add("tcpEstablished", parameterToString(localVarOptionals.TcpEstablished.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Export.IsSet() { + localVarQueryParams.Add("export", parameterToString(localVarOptionals.Export.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.IgnoreRootFS.IsSet() { + localVarQueryParams.Add("ignoreRootFS", parameterToString(localVarOptionals.IgnoreRootFS.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Commit +Create a new image from a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param container the name or ID of a container + * @param optional nil or *ContainersApiLibpodCommitContainerOpts - Optional Parameters: + * @param "Repo" (optional.String) - the repository name for the created image + * @param "Tag" (optional.String) - tag name for the created image + * @param "Comment" (optional.String) - commit message + * @param "Author" (optional.String) - author of the image + * @param "Pause" (optional.Bool) - pause the container before committing it + * @param "Changes" (optional.Interface of []string) - instructions to apply while committing in Dockerfile format (i.e. \"CMD=/bin/foo\") + * @param "Format" (optional.String) - format of the image manifest and metadata (default \"oci\") + +*/ + +type ContainersApiLibpodCommitContainerOpts struct { + Repo optional.String + Tag optional.String + Comment optional.String + Author optional.String + Pause optional.Bool + Changes optional.Interface + Format optional.String +} + +func (a *ContainersApiService) LibpodCommitContainer(ctx context.Context, container string, localVarOptionals *ContainersApiLibpodCommitContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/commit" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("container", parameterToString(container, "")) + if localVarOptionals != nil && localVarOptionals.Repo.IsSet() { + localVarQueryParams.Add("repo", parameterToString(localVarOptionals.Repo.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Comment.IsSet() { + localVarQueryParams.Add("comment", parameterToString(localVarOptionals.Comment.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Author.IsSet() { + localVarQueryParams.Add("author", parameterToString(localVarOptionals.Author.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Pause.IsSet() { + localVarQueryParams.Add("pause", parameterToString(localVarOptionals.Pause.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Changes.IsSet() { + localVarQueryParams.Add("changes", parameterToString(localVarOptionals.Changes.Value(), "csv")) + } + if localVarOptionals != nil && localVarOptionals.Format.IsSet() { + localVarQueryParams.Add("format", parameterToString(localVarOptionals.Format.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Check if container exists +Quick way to determine if a container exists by name or ID + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodContainerExists(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/exists" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Create a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersApiLibpodCreateContainerOpts - Optional Parameters: + * @param "Body" (optional.Interface of SpecGenerator) - attributes for creating a container +@return InlineResponse201 +*/ + +type ContainersApiLibpodCreateContainerOpts struct { + Body optional.Interface +} + +func (a *ContainersApiService) LibpodCreateContainer(ctx context.Context, localVarOptionals *ContainersApiLibpodCreateContainerOpts) (InlineResponse201, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse201 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v InlineResponse201 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Export a container +Export the contents of a container as a tarball. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodExportContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/export" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Generate a Kubernetes YAML file. +Generate Kubernetes YAML based on a pod or container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name or ID of the container or pod. + * @param optional nil or *ContainersApiLibpodGenerateKubeOpts - Optional Parameters: + * @param "Service" (optional.Bool) - Generate YAML for a Kubernetes service object. +@return *os.File +*/ + +type ContainersApiLibpodGenerateKubeOpts struct { + Service optional.Bool +} + +func (a *ContainersApiService) LibpodGenerateKube(ctx context.Context, name_ string, localVarOptionals *ContainersApiLibpodGenerateKubeOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/generate/{name:.*}/kube" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Service.IsSet() { + localVarQueryParams.Add("service", parameterToString(localVarOptionals.Service.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Generate Systemd Units +Generate Systemd Units based on a pod or container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name or ID of the container or pod. + * @param optional nil or *ContainersApiLibpodGenerateSystemdOpts - Optional Parameters: + * @param "UseName" (optional.Bool) - Use container/pod names instead of IDs. + * @param "New" (optional.Bool) - Create a new container instead of starting an existing one. + * @param "Time" (optional.Int32) - Stop timeout override. + * @param "RestartPolicy" (optional.String) - Systemd restart-policy. + * @param "ContainerPrefix" (optional.String) - Systemd unit name prefix for containers. + * @param "PodPrefix" (optional.String) - Systemd unit name prefix for pods. + * @param "Separator" (optional.String) - Systemd unit name separator between name/id and prefix. +@return map[string]string +*/ + +type ContainersApiLibpodGenerateSystemdOpts struct { + UseName optional.Bool + New optional.Bool + Time optional.Int32 + RestartPolicy optional.String + ContainerPrefix optional.String + PodPrefix optional.String + Separator optional.String +} + +func (a *ContainersApiService) LibpodGenerateSystemd(ctx context.Context, name_ string, localVarOptionals *ContainersApiLibpodGenerateSystemdOpts) (map[string]string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string]string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/generate/{name:.*}/systemd" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.UseName.IsSet() { + localVarQueryParams.Add("useName", parameterToString(localVarOptionals.UseName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.New.IsSet() { + localVarQueryParams.Add("new", parameterToString(localVarOptionals.New.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Time.IsSet() { + localVarQueryParams.Add("time", parameterToString(localVarOptionals.Time.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RestartPolicy.IsSet() { + localVarQueryParams.Add("restartPolicy", parameterToString(localVarOptionals.RestartPolicy.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.ContainerPrefix.IsSet() { + localVarQueryParams.Add("containerPrefix", parameterToString(localVarOptionals.ContainerPrefix.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PodPrefix.IsSet() { + localVarQueryParams.Add("podPrefix", parameterToString(localVarOptionals.PodPrefix.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Separator.IsSet() { + localVarQueryParams.Add("separator", parameterToString(localVarOptionals.Separator.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v map[string]string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Inspect container +Return low-level information about a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodGetContainerOpts - Optional Parameters: + * @param "Size" (optional.Bool) - display filesystem usage +@return InlineResponse2008 +*/ + +type ContainersApiLibpodGetContainerOpts struct { + Size optional.Bool +} + +func (a *ContainersApiService) LibpodGetContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodGetContainerOpts) (InlineResponse2008, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2008 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Size.IsSet() { + localVarQueryParams.Add("size", parameterToString(localVarOptionals.Size.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2008 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Initialize a container +Performs all tasks necessary for initializing the container but does not start the container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodInitContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/init" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Kill container +send a signal to a container, defaults to killing the container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodKillContainerOpts - Optional Parameters: + * @param "Signal" (optional.String) - signal to be sent to container, either by integer or SIG_ name + +*/ + +type ContainersApiLibpodKillContainerOpts struct { + Signal optional.String +} + +func (a *ContainersApiService) LibpodKillContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodKillContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/kill" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Signal.IsSet() { + localVarQueryParams.Add("signal", parameterToString(localVarOptionals.Signal.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService List containers +Returns a list of containers + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersApiLibpodListContainersOpts - Optional Parameters: + * @param "All" (optional.Bool) - Return all containers. By default, only running containers are shown + * @param "Limit" (optional.Int32) - Return this number of most recently created containers, including non-running ones. + * @param "Pod" (optional.Bool) - Ignored. Previously included details on pod name and ID that are currently included by default. + * @param "Size" (optional.Bool) - Return the size of container as fields SizeRw and SizeRootFs. + * @param "Sync" (optional.Bool) - Sync container state with OCI runtime + * @param "Filters" (optional.String) - A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters: - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`) - `before`=(`<container id>` or `<container name>`) - `expose`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`) - `exited=<int>` containers with exit code of `<int>` - `health`=(`starting`, `healthy`, `unhealthy` or `none`) - `id=<ID>` a container's ID - `is-task`=(`true` or `false`) - `label`=(`key` or `\"key=value\"`) of an container label - `name=<name>` a container's name - `network`=(`<network id>` or `<network name>`) - `publish`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`) - `since`=(`<container id>` or `<container name>`) - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`) - `volume`=(`<volume name>` or `<mount point destination>`) +@return []ListContainer +*/ + +type ContainersApiLibpodListContainersOpts struct { + All optional.Bool + Limit optional.Int32 + Pod optional.Bool + Size optional.Bool + Sync optional.Bool + Filters optional.String +} + +func (a *ContainersApiService) LibpodListContainers(ctx context.Context, localVarOptionals *ContainersApiLibpodListContainersOpts) ([]ListContainer, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ListContainer + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Pod.IsSet() { + localVarQueryParams.Add("pod", parameterToString(localVarOptionals.Pod.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Size.IsSet() { + localVarQueryParams.Add("size", parameterToString(localVarOptionals.Size.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Sync.IsSet() { + localVarQueryParams.Add("sync", parameterToString(localVarOptionals.Sync.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ListContainer + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Get container logs +Get stdout and stderr logs from a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodLogsFromContainerOpts - Optional Parameters: + * @param "Follow" (optional.Bool) - Keep connection after returning logs. + * @param "Stdout" (optional.Bool) - Return logs from stdout + * @param "Stderr" (optional.Bool) - Return logs from stderr + * @param "Since" (optional.String) - Only return logs since this time, as a UNIX timestamp + * @param "Until" (optional.String) - Only return logs before this time, as a UNIX timestamp + * @param "Timestamps" (optional.Bool) - Add timestamps to every log line + * @param "Tail" (optional.String) - Only return this number of log lines from the end of the logs + +*/ + +type ContainersApiLibpodLogsFromContainerOpts struct { + Follow optional.Bool + Stdout optional.Bool + Stderr optional.Bool + Since optional.String + Until optional.String + Timestamps optional.Bool + Tail optional.String +} + +func (a *ContainersApiService) LibpodLogsFromContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodLogsFromContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/logs" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Follow.IsSet() { + localVarQueryParams.Add("follow", parameterToString(localVarOptionals.Follow.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdout.IsSet() { + localVarQueryParams.Add("stdout", parameterToString(localVarOptionals.Stdout.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stderr.IsSet() { + localVarQueryParams.Add("stderr", parameterToString(localVarOptionals.Stderr.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Since.IsSet() { + localVarQueryParams.Add("since", parameterToString(localVarOptionals.Since.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Until.IsSet() { + localVarQueryParams.Add("until", parameterToString(localVarOptionals.Until.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Timestamps.IsSet() { + localVarQueryParams.Add("timestamps", parameterToString(localVarOptionals.Timestamps.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tail.IsSet() { + localVarQueryParams.Add("tail", parameterToString(localVarOptionals.Tail.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Mount a container +Mount a container to the filesystem + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container +@return string +*/ +func (a *ContainersApiService) LibpodMountContainer(ctx context.Context, name string) (string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/mount" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Pause a container +Use the cgroups freezer to suspend all processes in a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodPauseContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/pause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Play a Kubernetes YAML file. +Create and run pods based on a Kubernetes YAML file (pod or service kind). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersApiLibpodPlayKubeOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - Kubernetes YAML file. + * @param "Network" (optional.String) - Connect the pod to this network. + * @param "TlsVerify" (optional.Bool) - Require HTTPS and verify signatures when contacting registries. +@return PlayKubeReport +*/ + +type ContainersApiLibpodPlayKubeOpts struct { + Body optional.Interface + Network optional.String + TlsVerify optional.Bool +} + +func (a *ContainersApiService) LibpodPlayKube(ctx context.Context, localVarOptionals *ContainersApiLibpodPlayKubeOpts) (PlayKubeReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PlayKubeReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/play/kube" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Network.IsSet() { + localVarQueryParams.Add("network", parameterToString(localVarOptionals.Network.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TlsVerify.IsSet() { + localVarQueryParams.Add("tlsVerify", parameterToString(localVarOptionals.TlsVerify.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PlayKubeReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Delete stopped containers +Remove containers not in use + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersApiLibpodPruneContainersOpts - Optional Parameters: + * @param "Filters" (optional.String) - Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=<timestamp>` Prune containers created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune containers with (or without, in case `label!=...` is used) the specified labels. +@return []LibpodContainersPruneReport +*/ + +type ContainersApiLibpodPruneContainersOpts struct { + Filters optional.String +} + +func (a *ContainersApiService) LibpodPruneContainers(ctx context.Context, localVarOptionals *ContainersApiLibpodPruneContainersOpts) ([]LibpodContainersPruneReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []LibpodContainersPruneReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []LibpodContainersPruneReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Copy files into a container +Copy a tar archive of files into a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param path Path to a directory in the container to extract + * @param name container name or id + * @param optional nil or *ContainersApiLibpodPutArchiveOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - tarfile of files to copy into the container + * @param "Pause" (optional.Bool) - pause the container while copying (defaults to true) + +*/ + +type ContainersApiLibpodPutArchiveOpts struct { + Body optional.Interface + Pause optional.Bool +} + +func (a *ContainersApiService) LibpodPutArchive(ctx context.Context, path string, name string, localVarOptionals *ContainersApiLibpodPutArchiveOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/copy" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("path", parameterToString(path, "")) + if localVarOptionals != nil && localVarOptionals.Pause.IsSet() { + localVarQueryParams.Add("pause", parameterToString(localVarOptionals.Pause.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Delete container +Delete container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodRemoveContainerOpts - Optional Parameters: + * @param "Force" (optional.Bool) - need something + * @param "V" (optional.Bool) - delete volumes + +*/ + +type ContainersApiLibpodRemoveContainerOpts struct { + Force optional.Bool + V optional.Bool +} + +func (a *ContainersApiService) LibpodRemoveContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodRemoveContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.V.IsSet() { + localVarQueryParams.Add("v", parameterToString(localVarOptionals.V.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Resize a container's TTY +Resize the terminal attached to a container (for use with Attach). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodResizeContainerOpts - Optional Parameters: + * @param "H" (optional.Int32) - Height to set for the terminal, in characters + * @param "W" (optional.Int32) - Width to set for the terminal, in characters +@return interface{} +*/ + +type ContainersApiLibpodResizeContainerOpts struct { + H optional.Int32 + W optional.Int32 +} + +func (a *ContainersApiService) LibpodResizeContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodResizeContainerOpts) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/resize" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.H.IsSet() { + localVarQueryParams.Add("h", parameterToString(localVarOptionals.H.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.W.IsSet() { + localVarQueryParams.Add("w", parameterToString(localVarOptionals.W.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Restart a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodRestartContainerOpts - Optional Parameters: + * @param "T" (optional.Int32) - timeout before sending kill signal to container + +*/ + +type ContainersApiLibpodRestartContainerOpts struct { + T optional.Int32 +} + +func (a *ContainersApiService) LibpodRestartContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodRestartContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Restore a container +Restore a container from a checkpoint. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or id of the container + * @param optional nil or *ContainersApiLibpodRestoreContainerOpts - Optional Parameters: + * @param "Name" (optional.String) - the name of the container when restored from a tar. can only be used with import + * @param "Keep" (optional.Bool) - keep all temporary checkpoint files + * @param "LeaveRunning" (optional.Bool) - leave the container running after writing checkpoint to disk + * @param "TcpEstablished" (optional.Bool) - checkpoint a container with established TCP connections + * @param "Import_" (optional.Bool) - import the restore from a checkpoint tar.gz + * @param "IgnoreRootFS" (optional.Bool) - do not include root file-system changes when exporting + * @param "IgnoreStaticIP" (optional.Bool) - ignore IP address if set statically + * @param "IgnoreStaticMAC" (optional.Bool) - ignore MAC address if set statically + +*/ + +type ContainersApiLibpodRestoreContainerOpts struct { + Name optional.String + Keep optional.Bool + LeaveRunning optional.Bool + TcpEstablished optional.Bool + Import_ optional.Bool + IgnoreRootFS optional.Bool + IgnoreStaticIP optional.Bool + IgnoreStaticMAC optional.Bool +} + +func (a *ContainersApiService) LibpodRestoreContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodRestoreContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/restore" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Name.IsSet() { + localVarQueryParams.Add("name", parameterToString(localVarOptionals.Name.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Keep.IsSet() { + localVarQueryParams.Add("keep", parameterToString(localVarOptionals.Keep.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.LeaveRunning.IsSet() { + localVarQueryParams.Add("leaveRunning", parameterToString(localVarOptionals.LeaveRunning.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TcpEstablished.IsSet() { + localVarQueryParams.Add("tcpEstablished", parameterToString(localVarOptionals.TcpEstablished.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Import_.IsSet() { + localVarQueryParams.Add("import", parameterToString(localVarOptionals.Import_.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.IgnoreRootFS.IsSet() { + localVarQueryParams.Add("ignoreRootFS", parameterToString(localVarOptionals.IgnoreRootFS.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.IgnoreStaticIP.IsSet() { + localVarQueryParams.Add("ignoreStaticIP", parameterToString(localVarOptionals.IgnoreStaticIP.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.IgnoreStaticMAC.IsSet() { + localVarQueryParams.Add("ignoreStaticMAC", parameterToString(localVarOptionals.IgnoreStaticMAC.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Run a container's healthcheck +Execute the defined healthcheck and return information about the results + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return InlineResponse2007 +*/ +func (a *ContainersApiService) LibpodRunHealthCheck(ctx context.Context, name_ string) (InlineResponse2007, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2007 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name:.*}/healthcheck" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2007 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Show mounted containers +Lists all mounted containers mount points + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return map[string]string +*/ +func (a *ContainersApiService) LibpodShowMountedContainers(ctx context.Context) (map[string]string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string]string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/showmounted" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v map[string]string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Start a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodStartContainerOpts - Optional Parameters: + * @param "DetachKeys" (optional.String) - Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _. + +*/ + +type ContainersApiLibpodStartContainerOpts struct { + DetachKeys optional.String +} + +func (a *ContainersApiService) LibpodStartContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodStartContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/start" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.DetachKeys.IsSet() { + localVarQueryParams.Add("detachKeys", parameterToString(localVarOptionals.DetachKeys.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Get stats for a container +DEPRECATED. This endpoint will be removed with the next major release. Please use /libpod/containers/stats instead. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodStatsContainerOpts - Optional Parameters: + * @param "Stream" (optional.Bool) - Stream the output + +*/ + +type ContainersApiLibpodStatsContainerOpts struct { + Stream optional.Bool +} + +func (a *ContainersApiService) LibpodStatsContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodStatsContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/stats" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Get stats for one or more containers +Return a live stream of resource usage statistics of one or more container. If no container is specified, the statistics of all containers are returned. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersApiLibpodStatsContainersOpts - Optional Parameters: + * @param "Containers" (optional.Interface of []string) - names or IDs of containers + * @param "Stream" (optional.Bool) - Stream the output + +*/ + +type ContainersApiLibpodStatsContainersOpts struct { + Containers optional.Interface + Stream optional.Bool +} + +func (a *ContainersApiService) LibpodStatsContainers(ctx context.Context, localVarOptionals *ContainersApiLibpodStatsContainersOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/stats" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Containers.IsSet() { + localVarQueryParams.Add("containers", parameterToString(localVarOptionals.Containers.Value(), "csv")) + } + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Stop a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodStopContainerOpts - Optional Parameters: + * @param "T" (optional.Int32) - number of seconds to wait before killing container + +*/ + +type ContainersApiLibpodStopContainerOpts struct { + T optional.Int32 +} + +func (a *ContainersApiService) LibpodStopContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodStopContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/stop" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService List processes +List processes running inside a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name Name of container to query for processes (As of version 1.xx) + * @param optional nil or *ContainersApiLibpodTopContainerOpts - Optional Parameters: + * @param "Stream" (optional.Bool) - Stream the output + * @param "PsArgs" (optional.String) - arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. +@return InlineResponse2002 +*/ + +type ContainersApiLibpodTopContainerOpts struct { + Stream optional.Bool + PsArgs optional.String +} + +func (a *ContainersApiService) LibpodTopContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodTopContainerOpts) (InlineResponse2002, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2002 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/top" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PsArgs.IsSet() { + localVarQueryParams.Add("ps_args", parameterToString(localVarOptionals.PsArgs.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2002 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersApiService Unmount a container +Unmount a container from the filesystem + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodUnmountContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/unmount" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Unpause Container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersApiService) LibpodUnpauseContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/unpause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersApiService Wait on a container +Wait on a container to met a given condition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersApiLibpodWaitContainerOpts - Optional Parameters: + * @param "Condition" (optional.String) - wait until container is to a given condition. default is stopped. valid conditions are: - configured - created - exited - paused - running - stopped +@return InlineResponse2003 +*/ + +type ContainersApiLibpodWaitContainerOpts struct { + Condition optional.String +} + +func (a *ContainersApiService) LibpodWaitContainer(ctx context.Context, name string, localVarOptionals *ContainersApiLibpodWaitContainerOpts) (InlineResponse2003, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2003 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/wait" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Condition.IsSet() { + localVarQueryParams.Add("condition", parameterToString(localVarOptionals.Condition.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2003 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_containers_compat.go b/pkg/swagger/api_containers_compat.go new file mode 100644 index 0000000..89ae68d --- /dev/null +++ b/pkg/swagger/api_containers_compat.go @@ -0,0 +1,2597 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ContainersCompatApiService service +/* +ContainersCompatApiService Attach to a container +Hijacks the connection to forward the container's standard streams to the client. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiAttachContainerOpts - Optional Parameters: + * @param "DetachKeys" (optional.String) - keys to use for detaching from the container + * @param "Logs" (optional.Bool) - Stream all logs from the container across the connection. Happens before streaming attach (if requested). At least one of logs or stream must be set + * @param "Stream" (optional.Bool) - Attach to the container. If unset, and logs is set, only the container's logs will be sent. At least one of stream or logs must be set + * @param "Stdout" (optional.Bool) - Attach to container STDOUT + * @param "Stderr" (optional.Bool) - Attach to container STDERR + * @param "Stdin" (optional.Bool) - Attach to container STDIN + +*/ + +type ContainersCompatApiAttachContainerOpts struct { + DetachKeys optional.String + Logs optional.Bool + Stream optional.Bool + Stdout optional.Bool + Stderr optional.Bool + Stdin optional.Bool +} + +func (a *ContainersCompatApiService) AttachContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiAttachContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/attach" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.DetachKeys.IsSet() { + localVarQueryParams.Add("detachKeys", parameterToString(localVarOptionals.DetachKeys.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Logs.IsSet() { + localVarQueryParams.Add("logs", parameterToString(localVarOptionals.Logs.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdout.IsSet() { + localVarQueryParams.Add("stdout", parameterToString(localVarOptionals.Stdout.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stderr.IsSet() { + localVarQueryParams.Add("stderr", parameterToString(localVarOptionals.Stderr.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdin.IsSet() { + localVarQueryParams.Add("stdin", parameterToString(localVarOptionals.Stdin.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Report on changes to container's filesystem; adds, deletes or modifications. +Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or id of the container + +*/ +func (a *ContainersCompatApiService) ChangesContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/changes" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json", "text/plain", "text/html"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService New Image +Create a new image from a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersCompatApiCommitContainerOpts - Optional Parameters: + * @param "Container" (optional.String) - the name or ID of a container + * @param "Repo" (optional.String) - the repository name for the created image + * @param "Tag" (optional.String) - tag name for the created image + * @param "Comment" (optional.String) - commit message + * @param "Author" (optional.String) - author of the image + * @param "Pause" (optional.Bool) - pause the container before committing it + * @param "Changes" (optional.String) - instructions to apply while committing in Dockerfile format + +*/ + +type ContainersCompatApiCommitContainerOpts struct { + Container optional.String + Repo optional.String + Tag optional.String + Comment optional.String + Author optional.String + Pause optional.Bool + Changes optional.String +} + +func (a *ContainersCompatApiService) CommitContainer(ctx context.Context, localVarOptionals *ContainersCompatApiCommitContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/commit" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Container.IsSet() { + localVarQueryParams.Add("container", parameterToString(localVarOptionals.Container.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Repo.IsSet() { + localVarQueryParams.Add("repo", parameterToString(localVarOptionals.Repo.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Comment.IsSet() { + localVarQueryParams.Add("comment", parameterToString(localVarOptionals.Comment.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Author.IsSet() { + localVarQueryParams.Add("author", parameterToString(localVarOptionals.Author.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Pause.IsSet() { + localVarQueryParams.Add("pause", parameterToString(localVarOptionals.Pause.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Changes.IsSet() { + localVarQueryParams.Add("changes", parameterToString(localVarOptionals.Changes.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Create a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersCompatApiCreateContainerOpts - Optional Parameters: + * @param "Name" (optional.String) - container name +@return InlineResponse201 +*/ + +type ContainersCompatApiCreateContainerOpts struct { + Name optional.String +} + +func (a *ContainersCompatApiService) CreateContainer(ctx context.Context, localVarOptionals *ContainersCompatApiCreateContainerOpts) (InlineResponse201, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse201 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Name.IsSet() { + localVarQueryParams.Add("name", parameterToString(localVarOptionals.Name.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v InlineResponse201 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Export a container +Export the contents of a container as a tarball. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersCompatApiService) ExportContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/export" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Get files from a container +Get a tar archive of files from a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name container name or id + * @param path Path to a directory in the container to extract +@return *os.File +*/ +func (a *ContainersCompatApiService) GetArchive(ctx context.Context, name string, path string) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/archive" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("path", parameterToString(path, "")) + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Inspect container +Return low-level information about a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or id of the container + * @param optional nil or *ContainersCompatApiGetContainerOpts - Optional Parameters: + * @param "Size" (optional.Bool) - include the size of the container +@return InlineResponse2001 +*/ + +type ContainersCompatApiGetContainerOpts struct { + Size optional.Bool +} + +func (a *ContainersCompatApiService) GetContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiGetContainerOpts) (InlineResponse2001, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2001 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Size.IsSet() { + localVarQueryParams.Add("size", parameterToString(localVarOptionals.Size.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2001 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Kill container +Signal to send to the container as an integer or string (e.g. SIGINT) + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiKillContainerOpts - Optional Parameters: + * @param "Signal" (optional.String) - signal to be sent to container + +*/ + +type ContainersCompatApiKillContainerOpts struct { + Signal optional.String +} + +func (a *ContainersCompatApiService) KillContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiKillContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/kill" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Signal.IsSet() { + localVarQueryParams.Add("signal", parameterToString(localVarOptionals.Signal.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Copy files from a container +Copy a tar archive of files from a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name container name or id + * @param path Path to a directory in the container to extract +@return *os.File +*/ +func (a *ContainersCompatApiService) LibpodGetArchive(ctx context.Context, name string, path string) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/copy" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("path", parameterToString(path, "")) + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService List containers +Returns a list of containers + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersCompatApiListContainersOpts - Optional Parameters: + * @param "All" (optional.Bool) - Return all containers. By default, only running containers are shown + * @param "Limit" (optional.Int32) - Return this number of most recently created containers, including non-running ones. + * @param "Size" (optional.Bool) - Return the size of container as fields SizeRw and SizeRootFs. + * @param "Filters" (optional.String) - Returns a list of containers. - ancestor=(<image-name>[:<tag>], <image id>, or <image@digest>) - before=(<container id> or <container name>) - expose=(<port>[/<proto>]|<startport-endport>/[<proto>]) - exited=<int> containers with exit code of <int> - health=(starting|healthy|unhealthy|none) - id=<ID> a container's ID - is-task=(true|false) - label=key or label=\"key=value\" of a container label - name=<name> a container's name - network=(<network id> or <network name>) - publish=(<port>[/<proto>]|<startport-endport>/[<proto>]) - since=(<container id> or <container name>) - status=(created|restarting|running|removing|paused|exited|dead) - volume=(<volume name> or <mount point destination>) +@return interface{} +*/ + +type ContainersCompatApiListContainersOpts struct { + All optional.Bool + Limit optional.Int32 + Size optional.Bool + Filters optional.String +} + +func (a *ContainersCompatApiService) ListContainers(ctx context.Context, localVarOptionals *ContainersCompatApiListContainersOpts) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Size.IsSet() { + localVarQueryParams.Add("size", parameterToString(localVarOptionals.Size.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Get container logs +Get stdout and stderr logs from a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiLogsFromContainerOpts - Optional Parameters: + * @param "Follow" (optional.Bool) - Keep connection after returning logs. + * @param "Stdout" (optional.Bool) - Return logs from stdout + * @param "Stderr" (optional.Bool) - Return logs from stderr + * @param "Since" (optional.String) - Only return logs since this time, as a UNIX timestamp + * @param "Until" (optional.String) - Only return logs before this time, as a UNIX timestamp + * @param "Timestamps" (optional.Bool) - Add timestamps to every log line + * @param "Tail" (optional.String) - Only return this number of log lines from the end of the logs + +*/ + +type ContainersCompatApiLogsFromContainerOpts struct { + Follow optional.Bool + Stdout optional.Bool + Stderr optional.Bool + Since optional.String + Until optional.String + Timestamps optional.Bool + Tail optional.String +} + +func (a *ContainersCompatApiService) LogsFromContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiLogsFromContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/logs" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Follow.IsSet() { + localVarQueryParams.Add("follow", parameterToString(localVarOptionals.Follow.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stdout.IsSet() { + localVarQueryParams.Add("stdout", parameterToString(localVarOptionals.Stdout.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stderr.IsSet() { + localVarQueryParams.Add("stderr", parameterToString(localVarOptionals.Stderr.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Since.IsSet() { + localVarQueryParams.Add("since", parameterToString(localVarOptionals.Since.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Until.IsSet() { + localVarQueryParams.Add("until", parameterToString(localVarOptionals.Until.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Timestamps.IsSet() { + localVarQueryParams.Add("timestamps", parameterToString(localVarOptionals.Timestamps.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tail.IsSet() { + localVarQueryParams.Add("tail", parameterToString(localVarOptionals.Tail.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Pause container +Use the cgroups freezer to suspend all processes in a container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersCompatApiService) PauseContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/pause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Delete stopped containers +Remove containers not in use + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ContainersCompatApiPruneContainersOpts - Optional Parameters: + * @param "Filters" (optional.String) - Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=<timestamp>` Prune containers created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune containers with (or without, in case `label!=...` is used) the specified labels. +@return []ContainersPruneReport +*/ + +type ContainersCompatApiPruneContainersOpts struct { + Filters optional.String +} + +func (a *ContainersCompatApiService) PruneContainers(ctx context.Context, localVarOptionals *ContainersCompatApiPruneContainersOpts) ([]ContainersPruneReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ContainersPruneReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ContainersPruneReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Put files into a container +Put a tar archive of files into a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param path Path to a directory in the container to extract + * @param name container name or id + * @param optional nil or *ContainersCompatApiPutArchiveOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - tarfile of files to copy into the container + * @param "NoOverwriteDirNonDir" (optional.String) - if unpacking the given content would cause an existing directory to be replaced with a non-directory and vice versa (1 or true) + * @param "CopyUIDGID" (optional.String) - copy UID/GID maps to the dest file or di (1 or true) + +*/ + +type ContainersCompatApiPutArchiveOpts struct { + Body optional.Interface + NoOverwriteDirNonDir optional.String + CopyUIDGID optional.String +} + +func (a *ContainersCompatApiService) PutArchive(ctx context.Context, path string, name string, localVarOptionals *ContainersCompatApiPutArchiveOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/archive" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("path", parameterToString(path, "")) + if localVarOptionals != nil && localVarOptionals.NoOverwriteDirNonDir.IsSet() { + localVarQueryParams.Add("noOverwriteDirNonDir", parameterToString(localVarOptionals.NoOverwriteDirNonDir.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.CopyUIDGID.IsSet() { + localVarQueryParams.Add("copyUIDGID", parameterToString(localVarOptionals.CopyUIDGID.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Remove a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiRemoveContainerOpts - Optional Parameters: + * @param "Force" (optional.Bool) - If the container is running, kill it before removing it. + * @param "V" (optional.Bool) - Remove the volumes associated with the container. + * @param "Link" (optional.Bool) - not supported + +*/ + +type ContainersCompatApiRemoveContainerOpts struct { + Force optional.Bool + V optional.Bool + Link optional.Bool +} + +func (a *ContainersCompatApiService) RemoveContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiRemoveContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.V.IsSet() { + localVarQueryParams.Add("v", parameterToString(localVarOptionals.V.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Link.IsSet() { + localVarQueryParams.Add("link", parameterToString(localVarOptionals.Link.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Resize a container's TTY +Resize the terminal attached to a container (for use with Attach). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiResizeContainerOpts - Optional Parameters: + * @param "H" (optional.Int32) - Height to set for the terminal, in characters + * @param "W" (optional.Int32) - Width to set for the terminal, in characters +@return interface{} +*/ + +type ContainersCompatApiResizeContainerOpts struct { + H optional.Int32 + W optional.Int32 +} + +func (a *ContainersCompatApiService) ResizeContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiResizeContainerOpts) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/resize" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.H.IsSet() { + localVarQueryParams.Add("h", parameterToString(localVarOptionals.H.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.W.IsSet() { + localVarQueryParams.Add("w", parameterToString(localVarOptionals.W.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Restart container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiRestartContainerOpts - Optional Parameters: + * @param "T" (optional.Int32) - timeout before sending kill signal to container + +*/ + +type ContainersCompatApiRestartContainerOpts struct { + T optional.Int32 +} + +func (a *ContainersCompatApiService) RestartContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiRestartContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Start a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiStartContainerOpts - Optional Parameters: + * @param "DetachKeys" (optional.String) - Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _. + +*/ + +type ContainersCompatApiStartContainerOpts struct { + DetachKeys optional.String +} + +func (a *ContainersCompatApiService) StartContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiStartContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/start" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.DetachKeys.IsSet() { + localVarQueryParams.Add("detachKeys", parameterToString(localVarOptionals.DetachKeys.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Get stats for a container +This returns a live stream of a container’s resource usage statistics. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiStatsContainerOpts - Optional Parameters: + * @param "Stream" (optional.Bool) - Stream the output + +*/ + +type ContainersCompatApiStatsContainerOpts struct { + Stream optional.Bool +} + +func (a *ContainersCompatApiService) StatsContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiStatsContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/stats" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Stop a container +Stop a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiStopContainerOpts - Optional Parameters: + * @param "T" (optional.Int32) - number of seconds to wait before killing container + +*/ + +type ContainersCompatApiStopContainerOpts struct { + T optional.Int32 +} + +func (a *ContainersCompatApiService) StopContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiStopContainerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/stop" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService List processes running inside a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiTopContainerOpts - Optional Parameters: + * @param "PsArgs" (optional.String) - arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. +@return InlineResponse2002 +*/ + +type ContainersCompatApiTopContainerOpts struct { + PsArgs optional.String +} + +func (a *ContainersCompatApiService) TopContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiTopContainerOpts) (InlineResponse2002, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2002 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/top" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.PsArgs.IsSet() { + localVarQueryParams.Add("ps_args", parameterToString(localVarOptionals.PsArgs.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2002 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ContainersCompatApiService Unpause container +Resume a paused container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + +*/ +func (a *ContainersCompatApiService) UnpauseContainer(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/unpause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ContainersCompatApiService Wait on a container +Block until a container stops or given condition is met. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the container + * @param optional nil or *ContainersCompatApiWaitContainerOpts - Optional Parameters: + * @param "Condition" (optional.String) - wait until container is to a given condition. default is stopped. valid conditions are: - configured - created - exited - paused - running - stopped +@return InlineResponse2003 +*/ + +type ContainersCompatApiWaitContainerOpts struct { + Condition optional.String +} + +func (a *ContainersCompatApiService) WaitContainer(ctx context.Context, name string, localVarOptionals *ContainersCompatApiWaitContainerOpts) (InlineResponse2003, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2003 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/wait" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Condition.IsSet() { + localVarQueryParams.Add("condition", parameterToString(localVarOptionals.Condition.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2003 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_exec.go b/pkg/swagger/api_exec.go new file mode 100644 index 0000000..6b0833b --- /dev/null +++ b/pkg/swagger/api_exec.go @@ -0,0 +1,421 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ExecApiService service +/* +ExecApiService Create an exec instance +Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name name of container + * @param optional nil or *ExecApiLibpodCreateExecOpts - Optional Parameters: + * @param "Body" (optional.Interface of Body4) - Attributes for create + +*/ + +type ExecApiLibpodCreateExecOpts struct { + Body optional.Interface +} + +func (a *ExecApiService) LibpodCreateExec(ctx context.Context, name string, localVarOptionals *ExecApiLibpodCreateExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/containers/{name}/exec" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecApiService Inspect an exec instance +Return low-level information about an exec instance. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + +*/ +func (a *ExecApiService) LibpodInspectExec(ctx context.Context, id string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/exec/{id}/json" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecApiService Resize an exec instance +Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + * @param optional nil or *ExecApiLibpodResizeExecOpts - Optional Parameters: + * @param "H" (optional.Int32) - Height of the TTY session in characters + * @param "W" (optional.Int32) - Width of the TTY session in characters + +*/ + +type ExecApiLibpodResizeExecOpts struct { + H optional.Int32 + W optional.Int32 +} + +func (a *ExecApiService) LibpodResizeExec(ctx context.Context, id string, localVarOptionals *ExecApiLibpodResizeExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/exec/{id}/resize" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.H.IsSet() { + localVarQueryParams.Add("h", parameterToString(localVarOptionals.H.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.W.IsSet() { + localVarQueryParams.Add("w", parameterToString(localVarOptionals.W.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecApiService Start an exec instance +Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + * @param optional nil or *ExecApiLibpodStartExecOpts - Optional Parameters: + * @param "Body" (optional.Interface of Body6) - Attributes for start + +*/ + +type ExecApiLibpodStartExecOpts struct { + Body optional.Interface +} + +func (a *ExecApiService) LibpodStartExec(ctx context.Context, id string, localVarOptionals *ExecApiLibpodStartExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/exec/{id}/start" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_exec_compat.go b/pkg/swagger/api_exec_compat.go new file mode 100644 index 0000000..2bec5fc --- /dev/null +++ b/pkg/swagger/api_exec_compat.go @@ -0,0 +1,421 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ExecCompatApiService service +/* +ExecCompatApiService Create an exec instance +Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name name of container + * @param optional nil or *ExecCompatApiCreateExecOpts - Optional Parameters: + * @param "Body" (optional.Interface of Body) - Attributes for create + +*/ + +type ExecCompatApiCreateExecOpts struct { + Body optional.Interface +} + +func (a *ExecCompatApiService) CreateExec(ctx context.Context, name string, localVarOptionals *ExecCompatApiCreateExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/containers/{name}/exec" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecCompatApiService Inspect an exec instance +Return low-level information about an exec instance. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + +*/ +func (a *ExecCompatApiService) InspectExec(ctx context.Context, id string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/exec/{id}/json" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecCompatApiService Resize an exec instance +Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + * @param optional nil or *ExecCompatApiResizeExecOpts - Optional Parameters: + * @param "H" (optional.Int32) - Height of the TTY session in characters + * @param "W" (optional.Int32) - Width of the TTY session in characters + +*/ + +type ExecCompatApiResizeExecOpts struct { + H optional.Int32 + W optional.Int32 +} + +func (a *ExecCompatApiService) ResizeExec(ctx context.Context, id string, localVarOptionals *ExecCompatApiResizeExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/exec/{id}/resize" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.H.IsSet() { + localVarQueryParams.Add("h", parameterToString(localVarOptionals.H.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.W.IsSet() { + localVarQueryParams.Add("w", parameterToString(localVarOptionals.W.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ExecCompatApiService Start an exec instance +Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Exec instance ID + * @param optional nil or *ExecCompatApiStartExecOpts - Optional Parameters: + * @param "Body" (optional.Interface of Body2) - Attributes for start + +*/ + +type ExecCompatApiStartExecOpts struct { + Body optional.Interface +} + +func (a *ExecCompatApiService) StartExec(ctx context.Context, id string, localVarOptionals *ExecCompatApiStartExecOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/exec/{id}/start" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_images.go b/pkg/swagger/api_images.go new file mode 100644 index 0000000..1c03242 --- /dev/null +++ b/pkg/swagger/api_images.go @@ -0,0 +1,2354 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ImagesApiService service +/* +ImagesApiService Create image +Build an image from the given Dockerfile(s) + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodBuildImageOpts - Optional Parameters: + * @param "Dockerfile" (optional.String) - Path within the build context to the `Dockerfile`. This is ignored if remote is specified and points to an external `Dockerfile`. + * @param "T" (optional.String) - A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default latest value is assumed. You can provide several t parameters. + * @param "Extrahosts" (optional.String) - TBD Extra hosts to add to /etc/hosts (As of version 1.xx) + * @param "Remote" (optional.String) - A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball. (As of version 1.xx) + * @param "Q" (optional.Bool) - Suppress verbose build output + * @param "Nocache" (optional.Bool) - Do not use the cache when building the image (As of version 1.xx) + * @param "Cachefrom" (optional.String) - JSON array of images used to build cache resolution (As of version 1.xx) + * @param "Pull" (optional.Bool) - Attempt to pull the image even if an older image exists locally (As of version 1.xx) + * @param "Rm" (optional.Bool) - Remove intermediate containers after a successful build (As of version 1.xx) + * @param "Forcerm" (optional.Bool) - Always remove intermediate containers, even upon failure (As of version 1.xx) + * @param "Memory" (optional.Int32) - Memory is the upper limit (in bytes) on how much memory running containers can use (As of version 1.xx) + * @param "Memswap" (optional.Int32) - MemorySwap limits the amount of memory and swap together (As of version 1.xx) + * @param "Cpushares" (optional.Int32) - CPUShares (relative weight (As of version 1.xx) + * @param "Cpusetcpus" (optional.String) - CPUSetCPUs in which to allow execution (0-3, 0,1) (As of version 1.xx) + * @param "Cpuperiod" (optional.Int32) - CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period (As of version 1.xx) + * @param "Cpuquota" (optional.Int32) - CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota (As of version 1.xx) + * @param "Buildargs" (optional.String) - JSON map of string pairs denoting build-time variables. For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `[\"Foo\":\"bar\"]`. For example, buildargs={\"Foo\":\"bar\"}. Note(s): * This should not be used to pass secrets. * The value of buildargs should be URI component encoded before being passed to the API. (As of version 1.xx) + * @param "Shmsize" (optional.Int32) - ShmSize is the \"size\" value to use when mounting an shmfs on the container's /dev/shm directory. Default is 64MB (As of version 1.xx) + * @param "Squash" (optional.Bool) - Silently ignored. Squash the resulting images layers into a single layer (As of version 1.xx) + * @param "Labels" (optional.String) - JSON map of key, value pairs to set as labels on the new image (As of version 1.xx) + * @param "Networkmode" (optional.String) - Sets the networking mode for the run commands during build. Supported standard values are: * `bridge` limited to containers within a single host, port mapping required for external access * `host` no isolation between host and containers on this network * `none` disable all networking for this container * container:<nameOrID> share networking with given container ---All other values are assumed to be a custom network's name (As of version 1.xx) + * @param "Platform" (optional.String) - Platform format os[/arch[/variant]] (As of version 1.xx) + * @param "Target" (optional.String) - Target build stage (As of version 1.xx) + * @param "Outputs" (optional.String) - output configuration TBD (As of version 1.xx) + * @param "Httpproxy" (optional.Bool) - Inject http proxy environment variables into container (As of version 2.0.0) +@return InlineResponse200 +*/ + +type ImagesApiLibpodBuildImageOpts struct { + Dockerfile optional.String + T optional.String + Extrahosts optional.String + Remote optional.String + Q optional.Bool + Nocache optional.Bool + Cachefrom optional.String + Pull optional.Bool + Rm optional.Bool + Forcerm optional.Bool + Memory optional.Int32 + Memswap optional.Int32 + Cpushares optional.Int32 + Cpusetcpus optional.String + Cpuperiod optional.Int32 + Cpuquota optional.Int32 + Buildargs optional.String + Shmsize optional.Int32 + Squash optional.Bool + Labels optional.String + Networkmode optional.String + Platform optional.String + Target optional.String + Outputs optional.String + Httpproxy optional.Bool +} + +func (a *ImagesApiService) LibpodBuildImage(ctx context.Context, localVarOptionals *ImagesApiLibpodBuildImageOpts) (InlineResponse200, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse200 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/build" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Dockerfile.IsSet() { + localVarQueryParams.Add("dockerfile", parameterToString(localVarOptionals.Dockerfile.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Extrahosts.IsSet() { + localVarQueryParams.Add("extrahosts", parameterToString(localVarOptionals.Extrahosts.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Remote.IsSet() { + localVarQueryParams.Add("remote", parameterToString(localVarOptionals.Remote.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Q.IsSet() { + localVarQueryParams.Add("q", parameterToString(localVarOptionals.Q.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Nocache.IsSet() { + localVarQueryParams.Add("nocache", parameterToString(localVarOptionals.Nocache.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cachefrom.IsSet() { + localVarQueryParams.Add("cachefrom", parameterToString(localVarOptionals.Cachefrom.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Pull.IsSet() { + localVarQueryParams.Add("pull", parameterToString(localVarOptionals.Pull.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Rm.IsSet() { + localVarQueryParams.Add("rm", parameterToString(localVarOptionals.Rm.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Forcerm.IsSet() { + localVarQueryParams.Add("forcerm", parameterToString(localVarOptionals.Forcerm.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Memory.IsSet() { + localVarQueryParams.Add("memory", parameterToString(localVarOptionals.Memory.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Memswap.IsSet() { + localVarQueryParams.Add("memswap", parameterToString(localVarOptionals.Memswap.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpushares.IsSet() { + localVarQueryParams.Add("cpushares", parameterToString(localVarOptionals.Cpushares.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpusetcpus.IsSet() { + localVarQueryParams.Add("cpusetcpus", parameterToString(localVarOptionals.Cpusetcpus.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpuperiod.IsSet() { + localVarQueryParams.Add("cpuperiod", parameterToString(localVarOptionals.Cpuperiod.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpuquota.IsSet() { + localVarQueryParams.Add("cpuquota", parameterToString(localVarOptionals.Cpuquota.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Buildargs.IsSet() { + localVarQueryParams.Add("buildargs", parameterToString(localVarOptionals.Buildargs.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Shmsize.IsSet() { + localVarQueryParams.Add("shmsize", parameterToString(localVarOptionals.Shmsize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Squash.IsSet() { + localVarQueryParams.Add("squash", parameterToString(localVarOptionals.Squash.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Labels.IsSet() { + localVarQueryParams.Add("labels", parameterToString(localVarOptionals.Labels.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Networkmode.IsSet() { + localVarQueryParams.Add("networkmode", parameterToString(localVarOptionals.Networkmode.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Platform.IsSet() { + localVarQueryParams.Add("platform", parameterToString(localVarOptionals.Platform.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Target.IsSet() { + localVarQueryParams.Add("target", parameterToString(localVarOptionals.Target.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Outputs.IsSet() { + localVarQueryParams.Add("outputs", parameterToString(localVarOptionals.Outputs.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Httpproxy.IsSet() { + localVarQueryParams.Add("httpproxy", parameterToString(localVarOptionals.Httpproxy.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse200 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Report on changes to images's filesystem; adds, deletes or modifications. +Returns which files in a images's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or id of the container + +*/ +func (a *ImagesApiService) LibpodChangesImages(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name}/changes" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json", "text/plain", "text/html"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ImagesApiService Export an image +Export an image + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + * @param optional nil or *ImagesApiLibpodExportImageOpts - Optional Parameters: + * @param "Format" (optional.String) - format for exported image + * @param "Compress" (optional.Bool) - use compression on image +@return *os.File +*/ + +type ImagesApiLibpodExportImageOpts struct { + Format optional.String + Compress optional.Bool +} + +func (a *ImagesApiService) LibpodExportImage(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodExportImageOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/get" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Format.IsSet() { + localVarQueryParams.Add("format", parameterToString(localVarOptionals.Format.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Compress.IsSet() { + localVarQueryParams.Add("compress", parameterToString(localVarOptionals.Compress.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Export multiple images +Export multiple images into a single object. Only `docker-archive` is currently supported. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodExportImagesOpts - Optional Parameters: + * @param "Format" (optional.String) - format for exported image (only docker-archive is supported) + * @param "References" (optional.Interface of []string) - references to images to export + * @param "Compress" (optional.Bool) - use compression on image +@return *os.File +*/ + +type ImagesApiLibpodExportImagesOpts struct { + Format optional.String + References optional.Interface + Compress optional.Bool +} + +func (a *ImagesApiService) LibpodExportImages(ctx context.Context, localVarOptionals *ImagesApiLibpodExportImagesOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/export" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Format.IsSet() { + localVarQueryParams.Add("format", parameterToString(localVarOptionals.Format.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.References.IsSet() { + localVarQueryParams.Add("references", parameterToString(localVarOptionals.References.Value(), "csv")) + } + if localVarOptionals != nil && localVarOptionals.Compress.IsSet() { + localVarQueryParams.Add("compress", parameterToString(localVarOptionals.Compress.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Image exists +Check if image exists in local store + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + +*/ +func (a *ImagesApiService) LibpodImageExists(ctx context.Context, name_ string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/exists" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ImagesApiService History of an image +Return parent layers of an image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return InlineResponse2004 +*/ +func (a *ImagesApiService) LibpodImageHistory(ctx context.Context, name_ string) (InlineResponse2004, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2004 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/history" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2004 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Image tree +Retrieve the image tree for the provided image name or ID + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + * @param optional nil or *ImagesApiLibpodImageTreeOpts - Optional Parameters: + * @param "Whatrequires" (optional.Bool) - show all child images and layers of the specified image +@return InlineResponse20010 +*/ + +type ImagesApiLibpodImageTreeOpts struct { + Whatrequires optional.Bool +} + +func (a *ImagesApiService) LibpodImageTree(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodImageTreeOpts) (InlineResponse20010, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20010 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/tree" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Whatrequires.IsSet() { + localVarQueryParams.Add("whatrequires", parameterToString(localVarOptionals.Whatrequires.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20010 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Import image +Import a previously exported tarball as an image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + * @param optional nil or *ImagesApiLibpodImagesImportOpts - Optional Parameters: + * @param "Changes" (optional.Interface of []string) - Apply the following possible instructions to the created image: CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR. JSON encoded string + * @param "Message" (optional.String) - Set commit message for imported image + * @param "Reference" (optional.String) - Optional Name[:TAG] for the image + * @param "Url" (optional.String) - Load image from the specified URL +@return ImageImportReport +*/ + +type ImagesApiLibpodImagesImportOpts struct { + Changes optional.Interface + Message optional.String + Reference optional.String + Url optional.String +} + +func (a *ImagesApiService) LibpodImagesImport(ctx context.Context, body Body8, localVarOptionals *ImagesApiLibpodImagesImportOpts) (ImageImportReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ImageImportReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/import" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Changes.IsSet() { + localVarQueryParams.Add("changes", parameterToString(localVarOptionals.Changes.Value(), "csv")) + } + if localVarOptionals != nil && localVarOptionals.Message.IsSet() { + localVarQueryParams.Add("message", parameterToString(localVarOptionals.Message.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Reference.IsSet() { + localVarQueryParams.Add("reference", parameterToString(localVarOptionals.Reference.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Url.IsSet() { + localVarQueryParams.Add("url", parameterToString(localVarOptionals.Url.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v ImageImportReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Load image +Load an image (oci-archive or docker-archive) stream. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + * @param optional nil or *ImagesApiLibpodImagesLoadOpts - Optional Parameters: + * @param "Reference" (optional.String) - Optional Name[:TAG] for the image +@return ImageLoadReport +*/ + +type ImagesApiLibpodImagesLoadOpts struct { + Reference optional.String +} + +func (a *ImagesApiService) LibpodImagesLoad(ctx context.Context, body Body10, localVarOptionals *ImagesApiLibpodImagesLoadOpts) (ImageLoadReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ImageLoadReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/load" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Reference.IsSet() { + localVarQueryParams.Add("reference", parameterToString(localVarOptionals.Reference.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v ImageLoadReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Pull images +Pull one or more images from a container registry. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodImagesPullOpts - Optional Parameters: + * @param "Reference" (optional.String) - Mandatory reference to the image (e.g., quay.io/image/name:tag) + * @param "Credentials" (optional.String) - username:password for the registry + * @param "OverrideArch" (optional.String) - Pull image for the specified architecture. + * @param "OverrideOS" (optional.String) - Pull image for the specified operating system. + * @param "OverrideVariant" (optional.String) - Pull image for the specified variant. + * @param "TlsVerify" (optional.Bool) - Require TLS verification. + * @param "AllTags" (optional.Bool) - Pull all tagged images in the repository. +@return LibpodImagesPullReport +*/ + +type ImagesApiLibpodImagesPullOpts struct { + Reference optional.String + Credentials optional.String + OverrideArch optional.String + OverrideOS optional.String + OverrideVariant optional.String + TlsVerify optional.Bool + AllTags optional.Bool +} + +func (a *ImagesApiService) LibpodImagesPull(ctx context.Context, localVarOptionals *ImagesApiLibpodImagesPullOpts) (LibpodImagesPullReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LibpodImagesPullReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/pull" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Reference.IsSet() { + localVarQueryParams.Add("reference", parameterToString(localVarOptionals.Reference.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Credentials.IsSet() { + localVarQueryParams.Add("credentials", parameterToString(localVarOptionals.Credentials.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.OverrideArch.IsSet() { + localVarQueryParams.Add("overrideArch", parameterToString(localVarOptionals.OverrideArch.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.OverrideOS.IsSet() { + localVarQueryParams.Add("overrideOS", parameterToString(localVarOptionals.OverrideOS.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.OverrideVariant.IsSet() { + localVarQueryParams.Add("overrideVariant", parameterToString(localVarOptionals.OverrideVariant.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TlsVerify.IsSet() { + localVarQueryParams.Add("tlsVerify", parameterToString(localVarOptionals.TlsVerify.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.AllTags.IsSet() { + localVarQueryParams.Add("allTags", parameterToString(localVarOptionals.AllTags.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v LibpodImagesPullReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Remove one or more images from the storage. +Remove one or more images from the storage. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodImagesRemoveOpts - Optional Parameters: + * @param "Images" (optional.Interface of []string) - Images IDs or names to remove. + * @param "All" (optional.Bool) - Remove all images. + * @param "Force" (optional.Bool) - Force image removal (including containers using the images). +@return LibpodImagesRemoveReport +*/ + +type ImagesApiLibpodImagesRemoveOpts struct { + Images optional.Interface + All optional.Bool + Force optional.Bool +} + +func (a *ImagesApiService) LibpodImagesRemove(ctx context.Context, localVarOptionals *ImagesApiLibpodImagesRemoveOpts) (LibpodImagesRemoveReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LibpodImagesRemoveReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/remove" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Images.IsSet() { + localVarQueryParams.Add("images", parameterToString(localVarOptionals.Images.Value(), "csv")) + } + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v LibpodImagesRemoveReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Inspect an image +Obtain low-level information about an image + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return InlineResponse2009 +*/ +func (a *ImagesApiService) LibpodInspectImage(ctx context.Context, name_ string) (InlineResponse2009, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2009 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2009 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService List Images +Returns a list of images on the server + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodListImagesOpts - Optional Parameters: + * @param "All" (optional.Bool) - Show all images. Only images from a final layer (no children) are shown by default. + * @param "Filters" (optional.String) - A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) - `dangling=true` - `label=key` or `label=\"key=value\"` of an image label - `reference`=(`<image-name>[:<tag>]`) - `id`=(`<image-id>`) - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) +@return []ImageSummary +*/ + +type ImagesApiLibpodListImagesOpts struct { + All optional.Bool + Filters optional.String +} + +func (a *ImagesApiService) LibpodListImages(ctx context.Context, localVarOptionals *ImagesApiLibpodListImagesOpts) ([]ImageSummary, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageSummary + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageSummary + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Prune unused images +Remove images that are not being used by a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodPruneImagesOpts - Optional Parameters: + * @param "Filters" (optional.String) - filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. +@return []ImageDeleteResponse +*/ + +type ImagesApiLibpodPruneImagesOpts struct { + Filters optional.String +} + +func (a *ImagesApiService) LibpodPruneImages(ctx context.Context, localVarOptionals *ImagesApiLibpodPruneImagesOpts) ([]ImageDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Push Image +Push an image to a container registry + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name of image to push. + * @param optional nil or *ImagesApiLibpodPushImageOpts - Optional Parameters: + * @param "Destination" (optional.String) - Allows for pushing the image to a different destintation than the image refers to. + * @param "TlsVerify" (optional.Bool) - Require TLS verification. + * @param "XRegistryAuth" (optional.String) - A base64-encoded auth configuration. +@return *os.File +*/ + +type ImagesApiLibpodPushImageOpts struct { + Destination optional.String + TlsVerify optional.Bool + XRegistryAuth optional.String +} + +func (a *ImagesApiService) LibpodPushImage(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodPushImageOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/push" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Destination.IsSet() { + localVarQueryParams.Add("destination", parameterToString(localVarOptionals.Destination.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TlsVerify.IsSet() { + localVarQueryParams.Add("tlsVerify", parameterToString(localVarOptionals.TlsVerify.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if localVarOptionals != nil && localVarOptionals.XRegistryAuth.IsSet() { + localVarHeaderParams["X-Registry-Auth"] = parameterToString(localVarOptionals.XRegistryAuth.Value(), "") + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Remove an image from the local storage. +Remove an image from the local storage. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ name or ID of image to remove + * @param optional nil or *ImagesApiLibpodRemoveImageOpts - Optional Parameters: + * @param "Force" (optional.Bool) - remove the image even if used by containers or has other tags +@return []ImageDeleteResponse +*/ + +type ImagesApiLibpodRemoveImageOpts struct { + Force optional.Bool +} + +func (a *ImagesApiService) LibpodRemoveImage(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodRemoveImageOpts) ([]ImageDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Search images +Search registries for images + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesApiLibpodSearchImagesOpts - Optional Parameters: + * @param "Term" (optional.String) - term to search + * @param "Limit" (optional.Int32) - maximum number of results + * @param "NoTrunc" (optional.Bool) - do not truncate any of the result strings + * @param "Filters" (optional.String) - A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-automated=(true|false)` - `is-official=(true|false)` - `stars=<number>` Matches images that has at least 'number' stars. +@return InlineResponse2006 +*/ + +type ImagesApiLibpodSearchImagesOpts struct { + Term optional.String + Limit optional.Int32 + NoTrunc optional.Bool + Filters optional.String +} + +func (a *ImagesApiService) LibpodSearchImages(ctx context.Context, localVarOptionals *ImagesApiLibpodSearchImagesOpts) (InlineResponse2006, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2006 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Term.IsSet() { + localVarQueryParams.Add("term", parameterToString(localVarOptionals.Term.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.NoTrunc.IsSet() { + localVarQueryParams.Add("noTrunc", parameterToString(localVarOptionals.NoTrunc.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2006 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesApiService Tag an image +Tag an image so that it becomes part of a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + * @param optional nil or *ImagesApiLibpodTagImageOpts - Optional Parameters: + * @param "Repo" (optional.String) - the repository to tag in + * @param "Tag" (optional.String) - the name of the new tag + +*/ + +type ImagesApiLibpodTagImageOpts struct { + Repo optional.String + Tag optional.String +} + +func (a *ImagesApiService) LibpodTagImage(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodTagImageOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/tag" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Repo.IsSet() { + localVarQueryParams.Add("repo", parameterToString(localVarOptionals.Repo.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ImagesApiService Untag an image +Untag an image. If not repo and tag are specified, all tags are removed from the image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + * @param optional nil or *ImagesApiLibpodUntagImageOpts - Optional Parameters: + * @param "Repo" (optional.String) - the repository to untag + * @param "Tag" (optional.String) - the name of the tag to untag + +*/ + +type ImagesApiLibpodUntagImageOpts struct { + Repo optional.String + Tag optional.String +} + +func (a *ImagesApiService) LibpodUntagImage(ctx context.Context, name_ string, localVarOptionals *ImagesApiLibpodUntagImageOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/images/{name:.*}/untag" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Repo.IsSet() { + localVarQueryParams.Add("repo", parameterToString(localVarOptionals.Repo.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_images_compat.go b/pkg/swagger/api_images_compat.go new file mode 100644 index 0000000..4257cad --- /dev/null +++ b/pkg/swagger/api_images_compat.go @@ -0,0 +1,1504 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ImagesCompatApiService service +/* +ImagesCompatApiService Create image +Build an image from the given Dockerfile(s) + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiBuildImageOpts - Optional Parameters: + * @param "Dockerfile" (optional.String) - Path within the build context to the `Dockerfile`. This is ignored if remote is specified and points to an external `Dockerfile`. + * @param "T" (optional.String) - A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default latest value is assumed. You can provide several t parameters. + * @param "Extrahosts" (optional.String) - TBD Extra hosts to add to /etc/hosts (As of version 1.xx) + * @param "Remote" (optional.String) - A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball. (As of version 1.xx) + * @param "Q" (optional.Bool) - Suppress verbose build output + * @param "Nocache" (optional.Bool) - Do not use the cache when building the image (As of version 1.xx) + * @param "Cachefrom" (optional.String) - JSON array of images used to build cache resolution (As of version 1.xx) + * @param "Pull" (optional.Bool) - Attempt to pull the image even if an older image exists locally (As of version 1.xx) + * @param "Rm" (optional.Bool) - Remove intermediate containers after a successful build (As of version 1.xx) + * @param "Forcerm" (optional.Bool) - Always remove intermediate containers, even upon failure (As of version 1.xx) + * @param "Memory" (optional.Int32) - Memory is the upper limit (in bytes) on how much memory running containers can use (As of version 1.xx) + * @param "Memswap" (optional.Int32) - MemorySwap limits the amount of memory and swap together (As of version 1.xx) + * @param "Cpushares" (optional.Int32) - CPUShares (relative weight (As of version 1.xx) + * @param "Cpusetcpus" (optional.String) - CPUSetCPUs in which to allow execution (0-3, 0,1) (As of version 1.xx) + * @param "Cpuperiod" (optional.Int32) - CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period (As of version 1.xx) + * @param "Cpuquota" (optional.Int32) - CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota (As of version 1.xx) + * @param "Buildargs" (optional.String) - JSON map of string pairs denoting build-time variables. For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `[\"Foo\":\"bar\"]`. For example, buildargs={\"Foo\":\"bar\"}. Note(s): * This should not be used to pass secrets. * The value of buildargs should be URI component encoded before being passed to the API. (As of version 1.xx) + * @param "Shmsize" (optional.Int32) - ShmSize is the \"size\" value to use when mounting an shmfs on the container's /dev/shm directory. Default is 64MB (As of version 1.xx) + * @param "Squash" (optional.Bool) - Silently ignored. Squash the resulting images layers into a single layer (As of version 1.xx) + * @param "Labels" (optional.String) - JSON map of key, value pairs to set as labels on the new image (As of version 1.xx) + * @param "Networkmode" (optional.String) - Sets the networking mode for the run commands during build. Supported standard values are: * `bridge` limited to containers within a single host, port mapping required for external access * `host` no isolation between host and containers on this network * `none` disable all networking for this container * container:<nameOrID> share networking with given container ---All other values are assumed to be a custom network's name (As of version 1.xx) + * @param "Platform" (optional.String) - Platform format os[/arch[/variant]] (As of version 1.xx) + * @param "Target" (optional.String) - Target build stage (As of version 1.xx) + * @param "Outputs" (optional.String) - output configuration TBD (As of version 1.xx) +@return InlineResponse200 +*/ + +type ImagesCompatApiBuildImageOpts struct { + Dockerfile optional.String + T optional.String + Extrahosts optional.String + Remote optional.String + Q optional.Bool + Nocache optional.Bool + Cachefrom optional.String + Pull optional.Bool + Rm optional.Bool + Forcerm optional.Bool + Memory optional.Int32 + Memswap optional.Int32 + Cpushares optional.Int32 + Cpusetcpus optional.String + Cpuperiod optional.Int32 + Cpuquota optional.Int32 + Buildargs optional.String + Shmsize optional.Int32 + Squash optional.Bool + Labels optional.String + Networkmode optional.String + Platform optional.String + Target optional.String + Outputs optional.String +} + +func (a *ImagesCompatApiService) BuildImage(ctx context.Context, localVarOptionals *ImagesCompatApiBuildImageOpts) (InlineResponse200, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse200 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/build" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Dockerfile.IsSet() { + localVarQueryParams.Add("dockerfile", parameterToString(localVarOptionals.Dockerfile.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Extrahosts.IsSet() { + localVarQueryParams.Add("extrahosts", parameterToString(localVarOptionals.Extrahosts.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Remote.IsSet() { + localVarQueryParams.Add("remote", parameterToString(localVarOptionals.Remote.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Q.IsSet() { + localVarQueryParams.Add("q", parameterToString(localVarOptionals.Q.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Nocache.IsSet() { + localVarQueryParams.Add("nocache", parameterToString(localVarOptionals.Nocache.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cachefrom.IsSet() { + localVarQueryParams.Add("cachefrom", parameterToString(localVarOptionals.Cachefrom.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Pull.IsSet() { + localVarQueryParams.Add("pull", parameterToString(localVarOptionals.Pull.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Rm.IsSet() { + localVarQueryParams.Add("rm", parameterToString(localVarOptionals.Rm.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Forcerm.IsSet() { + localVarQueryParams.Add("forcerm", parameterToString(localVarOptionals.Forcerm.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Memory.IsSet() { + localVarQueryParams.Add("memory", parameterToString(localVarOptionals.Memory.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Memswap.IsSet() { + localVarQueryParams.Add("memswap", parameterToString(localVarOptionals.Memswap.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpushares.IsSet() { + localVarQueryParams.Add("cpushares", parameterToString(localVarOptionals.Cpushares.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpusetcpus.IsSet() { + localVarQueryParams.Add("cpusetcpus", parameterToString(localVarOptionals.Cpusetcpus.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpuperiod.IsSet() { + localVarQueryParams.Add("cpuperiod", parameterToString(localVarOptionals.Cpuperiod.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Cpuquota.IsSet() { + localVarQueryParams.Add("cpuquota", parameterToString(localVarOptionals.Cpuquota.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Buildargs.IsSet() { + localVarQueryParams.Add("buildargs", parameterToString(localVarOptionals.Buildargs.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Shmsize.IsSet() { + localVarQueryParams.Add("shmsize", parameterToString(localVarOptionals.Shmsize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Squash.IsSet() { + localVarQueryParams.Add("squash", parameterToString(localVarOptionals.Squash.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Labels.IsSet() { + localVarQueryParams.Add("labels", parameterToString(localVarOptionals.Labels.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Networkmode.IsSet() { + localVarQueryParams.Add("networkmode", parameterToString(localVarOptionals.Networkmode.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Platform.IsSet() { + localVarQueryParams.Add("platform", parameterToString(localVarOptionals.Platform.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Target.IsSet() { + localVarQueryParams.Add("target", parameterToString(localVarOptionals.Target.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Outputs.IsSet() { + localVarQueryParams.Add("outputs", parameterToString(localVarOptionals.Outputs.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse200 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Create an image +Create an image by either pulling it from a registry or importing it. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiCreateImageOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - Image content if fromSrc parameter was used + * @param "XRegistryAuth" (optional.String) - A base64-encoded auth configuration. + * @param "FromImage" (optional.String) - needs description + * @param "FromSrc" (optional.String) - needs description + * @param "Tag" (optional.String) - needs description +@return interface{} +*/ + +type ImagesCompatApiCreateImageOpts struct { + Body optional.Interface + XRegistryAuth optional.String + FromImage optional.String + FromSrc optional.String + Tag optional.String +} + +func (a *ImagesCompatApiService) CreateImage(ctx context.Context, localVarOptionals *ImagesCompatApiCreateImageOpts) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.FromImage.IsSet() { + localVarQueryParams.Add("fromImage", parameterToString(localVarOptionals.FromImage.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.FromSrc.IsSet() { + localVarQueryParams.Add("fromSrc", parameterToString(localVarOptionals.FromSrc.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if localVarOptionals != nil && localVarOptionals.XRegistryAuth.IsSet() { + localVarHeaderParams["X-Registry-Auth"] = parameterToString(localVarOptionals.XRegistryAuth.Value(), "") + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Export an image +Export an image in tarball format + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return *os.File +*/ +func (a *ImagesCompatApiService) ExportImage(ctx context.Context, name_ string) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}/get" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService History of an image +Return parent layers of an image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return InlineResponse2004 +*/ +func (a *ImagesCompatApiService) ImageHistory(ctx context.Context, name_ string) (InlineResponse2004, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2004 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}/history" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2004 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Import image +Load a set of images and tags into a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiImportImageOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - tarball of container image + * @param "Quiet" (optional.Bool) - not supported + +*/ + +type ImagesCompatApiImportImageOpts struct { + Body optional.Interface + Quiet optional.Bool +} + +func (a *ImagesCompatApiService) ImportImage(ctx context.Context, localVarOptionals *ImagesCompatApiImportImageOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/load" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Quiet.IsSet() { + localVarQueryParams.Add("quiet", parameterToString(localVarOptionals.Quiet.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ImagesCompatApiService Inspect an image +Return low-level information about an image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container +@return InlineResponse2005 +*/ +func (a *ImagesCompatApiService) InspectImage(ctx context.Context, name_ string) (InlineResponse2005, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2005 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2005 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService List Images +Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiListImagesOpts - Optional Parameters: + * @param "All" (optional.Bool) - Show all images. Only images from a final layer (no children) are shown by default. + * @param "Filters" (optional.String) - A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) - `dangling=true` - `label=key` or `label=\"key=value\"` of an image label - `reference`=(`<image-name>[:<tag>]`) - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) + * @param "Digests" (optional.Bool) - Not supported +@return []ImageSummary +*/ + +type ImagesCompatApiListImagesOpts struct { + All optional.Bool + Filters optional.String + Digests optional.Bool +} + +func (a *ImagesCompatApiService) ListImages(ctx context.Context, localVarOptionals *ImagesCompatApiListImagesOpts) ([]ImageSummary, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageSummary + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Digests.IsSet() { + localVarQueryParams.Add("digests", parameterToString(localVarOptionals.Digests.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageSummary + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Prune unused images +Remove images from local storage that are not being used by a container + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiPruneImagesOpts - Optional Parameters: + * @param "Filters" (optional.String) - filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. +@return []ImageDeleteResponse +*/ + +type ImagesCompatApiPruneImagesOpts struct { + Filters optional.String +} + +func (a *ImagesCompatApiService) PruneImages(ctx context.Context, localVarOptionals *ImagesCompatApiPruneImagesOpts) ([]ImageDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Push Image +Push an image to a container registry + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name of image to push. + * @param optional nil or *ImagesCompatApiPushImageOpts - Optional Parameters: + * @param "Tag" (optional.String) - The tag to associate with the image on the registry. + * @param "XRegistryAuth" (optional.String) - A base64-encoded auth configuration. +@return *os.File +*/ + +type ImagesCompatApiPushImageOpts struct { + Tag optional.String + XRegistryAuth optional.String +} + +func (a *ImagesCompatApiService) PushImage(ctx context.Context, name_ string, localVarOptionals *ImagesCompatApiPushImageOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}/push" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if localVarOptionals != nil && localVarOptionals.XRegistryAuth.IsSet() { + localVarHeaderParams["X-Registry-Auth"] = parameterToString(localVarOptionals.XRegistryAuth.Value(), "") + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Remove Image +Delete an image from local storage + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ name or ID of image to delete + * @param optional nil or *ImagesCompatApiRemoveImageOpts - Optional Parameters: + * @param "Force" (optional.Bool) - remove the image even if used by containers or has other tags + * @param "Noprune" (optional.Bool) - not supported. will be logged as an invalid parameter if enabled +@return []ImageDeleteResponse +*/ + +type ImagesCompatApiRemoveImageOpts struct { + Force optional.Bool + Noprune optional.Bool +} + +func (a *ImagesCompatApiService) RemoveImage(ctx context.Context, name_ string, localVarOptionals *ImagesCompatApiRemoveImageOpts) ([]ImageDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ImageDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Noprune.IsSet() { + localVarQueryParams.Add("noprune", parameterToString(localVarOptionals.Noprune.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ImageDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Search images +Search registries for an image + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ImagesCompatApiSearchImagesOpts - Optional Parameters: + * @param "Term" (optional.String) - term to search + * @param "Limit" (optional.Int32) - maximum number of results + * @param "Filters" (optional.String) - A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-automated=(true|false)` - `is-official=(true|false)` - `stars=<number>` Matches images that has at least 'number' stars. +@return InlineResponse2006 +*/ + +type ImagesCompatApiSearchImagesOpts struct { + Term optional.String + Limit optional.Int32 + Filters optional.String +} + +func (a *ImagesCompatApiService) SearchImages(ctx context.Context, localVarOptionals *ImagesCompatApiSearchImagesOpts) (InlineResponse2006, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2006 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Term.IsSet() { + localVarQueryParams.Add("term", parameterToString(localVarOptionals.Term.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2006 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ImagesCompatApiService Tag an image +Tag an image so that it becomes part of a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the container + * @param optional nil or *ImagesCompatApiTagImageOpts - Optional Parameters: + * @param "Repo" (optional.String) - the repository to tag in + * @param "Tag" (optional.String) - the name of the new tag + +*/ + +type ImagesCompatApiTagImageOpts struct { + Repo optional.String + Tag optional.String +} + +func (a *ImagesCompatApiService) TagImage(ctx context.Context, name_ string, localVarOptionals *ImagesCompatApiTagImageOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/images/{name:.*}/tag" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Repo.IsSet() { + localVarQueryParams.Add("repo", parameterToString(localVarOptionals.Repo.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tag.IsSet() { + localVarQueryParams.Add("tag", parameterToString(localVarOptionals.Tag.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_manifests.go b/pkg/swagger/api_manifests.go new file mode 100644 index 0000000..7e2f87f --- /dev/null +++ b/pkg/swagger/api_manifests.go @@ -0,0 +1,575 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ManifestsApiService service +/* +ManifestsApiService +Add an image to a manifest list + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the manifest + * @param optional nil or *ManifestsApiAddManifestOpts - Optional Parameters: + * @param "Body" (optional.Interface of ManifestAddOpts) - options for creating a manifest + +*/ + +type ManifestsApiAddManifestOpts struct { + Body optional.Interface +} + +func (a *ManifestsApiService) AddManifest(ctx context.Context, name_ string, localVarOptionals *ManifestsApiAddManifestOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/manifests/{name:.*}/add" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ManifestsApiService Create +Create a manifest list + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name manifest list name + * @param optional nil or *ManifestsApiCreateOpts - Optional Parameters: + * @param "Image" (optional.String) - name of the image + * @param "All" (optional.Bool) - add all contents if given list + +*/ + +type ManifestsApiCreateOpts struct { + Image optional.String + All optional.Bool +} + +func (a *ManifestsApiService) Create(ctx context.Context, name string, localVarOptionals *ManifestsApiCreateOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/manifests/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("name", parameterToString(name, "")) + if localVarOptionals != nil && localVarOptionals.Image.IsSet() { + localVarQueryParams.Add("image", parameterToString(localVarOptionals.Image.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ManifestsApiService Inspect +Display a manifest list + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the name or ID of the manifest +@return List +*/ +func (a *ManifestsApiService) Inspect(ctx context.Context, name_ string) (List, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue List + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/manifests/{name:.*}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v List + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +ManifestsApiService Push +Push a manifest list or image index to a registry + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the manifest + * @param destination the destination for the manifest + * @param optional nil or *ManifestsApiPushManifestOpts - Optional Parameters: + * @param "All" (optional.Bool) - push all images + +*/ + +type ManifestsApiPushManifestOpts struct { + All optional.Bool +} + +func (a *ManifestsApiService) PushManifest(ctx context.Context, name string, destination string, localVarOptionals *ManifestsApiPushManifestOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/manifests/{name}/push" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("destination", parameterToString(destination, "")) + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +ManifestsApiService Remove +Remove an image from a manifest list + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ the image associated with the manifest + * @param optional nil or *ManifestsApiRemoveManifestOpts - Optional Parameters: + * @param "Digest" (optional.String) - image digest to be removed + +*/ + +type ManifestsApiRemoveManifestOpts struct { + Digest optional.String +} + +func (a *ManifestsApiService) RemoveManifest(ctx context.Context, name_ string, localVarOptionals *ManifestsApiRemoveManifestOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/manifests/{name:.*}" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Digest.IsSet() { + localVarQueryParams.Add("digest", parameterToString(localVarOptionals.Digest.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_networks.go b/pkg/swagger/api_networks.go new file mode 100644 index 0000000..0ad5119 --- /dev/null +++ b/pkg/swagger/api_networks.go @@ -0,0 +1,472 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type NetworksApiService service +/* +NetworksApiService Create network +Create a new CNI network configuration + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *NetworksApiLibpodCreateNetworkOpts - Optional Parameters: + * @param "Body" (optional.Interface of NetworkCreateOptions) - attributes for creating a container + * @param "Name" (optional.String) - optional name for new network +@return NetworkCreateReport +*/ + +type NetworksApiLibpodCreateNetworkOpts struct { + Body optional.Interface + Name optional.String +} + +func (a *NetworksApiService) LibpodCreateNetwork(ctx context.Context, localVarOptionals *NetworksApiLibpodCreateNetworkOpts) (NetworkCreateReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NetworkCreateReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/networks/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Name.IsSet() { + localVarQueryParams.Add("name", parameterToString(localVarOptionals.Name.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v NetworkCreateReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksApiService Inspect a network +Display low level configuration for a CNI network + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name of the network +@return []map[string]interface{} +*/ +func (a *NetworksApiService) LibpodInspectNetwork(ctx context.Context, name string) ([]map[string]interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []map[string]interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/networks/{name}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []map[string]interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksApiService List networks +Display summary of network configurations + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *NetworksApiLibpodListNetworkOpts - Optional Parameters: + * @param "Filter" (optional.String) - Provide filter values (e.g. 'name=podman') +@return []NetworkListReport +*/ + +type NetworksApiLibpodListNetworkOpts struct { + Filter optional.String +} + +func (a *NetworksApiService) LibpodListNetwork(ctx context.Context, localVarOptionals *NetworksApiLibpodListNetworkOpts) ([]NetworkListReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []NetworkListReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/networks/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []NetworkListReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksApiService Remove a network +Remove a CNI configured network + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name of the network + * @param optional nil or *NetworksApiLibpodRemoveNetworkOpts - Optional Parameters: + * @param "Force" (optional.Bool) - remove containers associated with network +@return NetworkRmReport +*/ + +type NetworksApiLibpodRemoveNetworkOpts struct { + Force optional.Bool +} + +func (a *NetworksApiService) LibpodRemoveNetwork(ctx context.Context, name string, localVarOptionals *NetworksApiLibpodRemoveNetworkOpts) (NetworkRmReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NetworkRmReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/networks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v NetworkRmReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_networks_compat.go b/pkg/swagger/api_networks_compat.go new file mode 100644 index 0000000..3778e72 --- /dev/null +++ b/pkg/swagger/api_networks_compat.go @@ -0,0 +1,440 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type NetworksCompatApiService service +/* +NetworksCompatApiService Create network +Create a network configuration + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *NetworksCompatApiCompatCreateNetworkOpts - Optional Parameters: + * @param "Body" (optional.Interface of NetworkCreateRequest) - attributes for creating a container +@return InlineResponse20016 +*/ + +type NetworksCompatApiCompatCreateNetworkOpts struct { + Body optional.Interface +} + +func (a *NetworksCompatApiService) CompatCreateNetwork(ctx context.Context, localVarOptionals *NetworksCompatApiCompatCreateNetworkOpts) (InlineResponse20016, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20016 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/networks/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20016 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksCompatApiService Inspect a network +Display low level configuration network + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name of the network +@return NetworkResource +*/ +func (a *NetworksCompatApiService) CompatInspectNetwork(ctx context.Context, name string) (NetworkResource, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NetworkResource + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/networks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v NetworkResource + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksCompatApiService List networks +Display summary of network configurations + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *NetworksCompatApiCompatListNetworkOpts - Optional Parameters: + * @param "Filters" (optional.String) - JSON encoded value of the filters (a map[string][]string) to process on the networks list. Only the name filter is supported. +@return []NetworkResource +*/ + +type NetworksCompatApiCompatListNetworkOpts struct { + Filters optional.String +} + +func (a *NetworksCompatApiService) CompatListNetwork(ctx context.Context, localVarOptionals *NetworksCompatApiCompatListNetworkOpts) ([]NetworkResource, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []NetworkResource + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/networks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []NetworkResource + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +NetworksCompatApiService Remove a network +Remove a network + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name of the network + +*/ +func (a *NetworksCompatApiService) CompatRemoveNetwork(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/networks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_pods.go b/pkg/swagger/api_pods.go new file mode 100644 index 0000000..70e4f51 --- /dev/null +++ b/pkg/swagger/api_pods.go @@ -0,0 +1,1946 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type PodsApiService service +/* +PodsApiService Create a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *PodsApiCreatePodOpts - Optional Parameters: + * @param "Body" (optional.Interface of PodSpecGenerator) - attributes for creating a pod + +*/ + +type PodsApiCreatePodOpts struct { + Body optional.Interface +} + +func (a *PodsApiService) CreatePod(ctx context.Context, localVarOptionals *PodsApiCreatePodOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +PodsApiService Inspect pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod +@return InlineResponse20011 +*/ +func (a *PodsApiService) InspectPod(ctx context.Context, name string) (InlineResponse20011, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20011 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20011 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Kill a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod + * @param optional nil or *PodsApiKillPodOpts - Optional Parameters: + * @param "Signal" (optional.String) - signal to be sent to pod +@return PodKillReport +*/ + +type PodsApiKillPodOpts struct { + Signal optional.String +} + +func (a *PodsApiService) KillPod(ctx context.Context, name string, localVarOptionals *PodsApiKillPodOpts) (PodKillReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodKillReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/kill" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Signal.IsSet() { + localVarQueryParams.Add("signal", parameterToString(localVarOptionals.Signal.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodKillReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 409 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Generate a Kubernetes YAML file. +Generate Kubernetes YAML based on a pod or container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name or ID of the container or pod. + * @param optional nil or *PodsApiLibpodGenerateKubeOpts - Optional Parameters: + * @param "Service" (optional.Bool) - Generate YAML for a Kubernetes service object. +@return *os.File +*/ + +type PodsApiLibpodGenerateKubeOpts struct { + Service optional.Bool +} + +func (a *PodsApiService) LibpodGenerateKube(ctx context.Context, name_ string, localVarOptionals *PodsApiLibpodGenerateKubeOpts) (*os.File, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/generate/{name:.*}/kube" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Service.IsSet() { + localVarQueryParams.Add("service", parameterToString(localVarOptionals.Service.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v *os.File + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Generate Systemd Units +Generate Systemd Units based on a pod or container. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name_ Name or ID of the container or pod. + * @param optional nil or *PodsApiLibpodGenerateSystemdOpts - Optional Parameters: + * @param "UseName" (optional.Bool) - Use container/pod names instead of IDs. + * @param "New" (optional.Bool) - Create a new container instead of starting an existing one. + * @param "Time" (optional.Int32) - Stop timeout override. + * @param "RestartPolicy" (optional.String) - Systemd restart-policy. + * @param "ContainerPrefix" (optional.String) - Systemd unit name prefix for containers. + * @param "PodPrefix" (optional.String) - Systemd unit name prefix for pods. + * @param "Separator" (optional.String) - Systemd unit name separator between name/id and prefix. +@return map[string]string +*/ + +type PodsApiLibpodGenerateSystemdOpts struct { + UseName optional.Bool + New optional.Bool + Time optional.Int32 + RestartPolicy optional.String + ContainerPrefix optional.String + PodPrefix optional.String + Separator optional.String +} + +func (a *PodsApiService) LibpodGenerateSystemd(ctx context.Context, name_ string, localVarOptionals *PodsApiLibpodGenerateSystemdOpts) (map[string]string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string]string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/generate/{name:.*}/systemd" + localVarPath = strings.Replace(localVarPath, "{"+"name:.*"+"}", fmt.Sprintf("%v", name_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.UseName.IsSet() { + localVarQueryParams.Add("useName", parameterToString(localVarOptionals.UseName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.New.IsSet() { + localVarQueryParams.Add("new", parameterToString(localVarOptionals.New.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Time.IsSet() { + localVarQueryParams.Add("time", parameterToString(localVarOptionals.Time.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.RestartPolicy.IsSet() { + localVarQueryParams.Add("restartPolicy", parameterToString(localVarOptionals.RestartPolicy.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.ContainerPrefix.IsSet() { + localVarQueryParams.Add("containerPrefix", parameterToString(localVarOptionals.ContainerPrefix.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PodPrefix.IsSet() { + localVarQueryParams.Add("podPrefix", parameterToString(localVarOptionals.PodPrefix.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Separator.IsSet() { + localVarQueryParams.Add("separator", parameterToString(localVarOptionals.Separator.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v map[string]string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Play a Kubernetes YAML file. +Create and run pods based on a Kubernetes YAML file (pod or service kind). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *PodsApiLibpodPlayKubeOpts - Optional Parameters: + * @param "Body" (optional.Interface of string) - Kubernetes YAML file. + * @param "Network" (optional.String) - Connect the pod to this network. + * @param "TlsVerify" (optional.Bool) - Require HTTPS and verify signatures when contacting registries. +@return PlayKubeReport +*/ + +type PodsApiLibpodPlayKubeOpts struct { + Body optional.Interface + Network optional.String + TlsVerify optional.Bool +} + +func (a *PodsApiService) LibpodPlayKube(ctx context.Context, localVarOptionals *PodsApiLibpodPlayKubeOpts) (PlayKubeReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PlayKubeReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/play/kube" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Network.IsSet() { + localVarQueryParams.Add("network", parameterToString(localVarOptionals.Network.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.TlsVerify.IsSet() { + localVarQueryParams.Add("tlsVerify", parameterToString(localVarOptionals.TlsVerify.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PlayKubeReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService List pods + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *PodsApiListPodsOpts - Optional Parameters: + * @param "Filters" (optional.String) - needs description and plumbing for filters +@return []ListPodsReport +*/ + +type PodsApiListPodsOpts struct { + Filters optional.String +} + +func (a *PodsApiService) ListPods(ctx context.Context, localVarOptionals *PodsApiListPodsOpts) ([]ListPodsReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ListPodsReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []ListPodsReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Pause a pod +Pause a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod +@return PodPauseReport +*/ +func (a *PodsApiService) PausePod(ctx context.Context, name string) (PodPauseReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodPauseReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/pause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodPauseReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Pod exists +Check if a pod exists by name or ID + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod + +*/ +func (a *PodsApiService) PodExists(ctx context.Context, name string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/exists" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +PodsApiService Prune unused pods + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return PodPruneReport +*/ +func (a *PodsApiService) PrunePods(ctx context.Context) (PodPruneReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodPruneReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodPruneReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Remove pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod + * @param optional nil or *PodsApiRemovePodOpts - Optional Parameters: + * @param "Force" (optional.Bool) - force removal of a running pod by first stopping all containers, then removing all containers in the pod +@return PodRmReport +*/ + +type PodsApiRemovePodOpts struct { + Force optional.Bool +} + +func (a *PodsApiService) RemovePod(ctx context.Context, name string, localVarOptionals *PodsApiRemovePodOpts) (PodRmReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodRmReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodRmReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Restart a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod +@return PodRestartReport +*/ +func (a *PodsApiService) RestartPod(ctx context.Context, name string) (PodRestartReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodRestartReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodRestartReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Start a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod +@return PodStartReport +*/ +func (a *PodsApiService) StartPod(ctx context.Context, name string) (PodStartReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodStartReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/start" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodStartReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Get stats for one or more pods +Display a live stream of resource usage statistics for the containers in one or more pods + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *PodsApiStatsPodOpts - Optional Parameters: + * @param "All" (optional.Bool) - Provide statistics for all running pods. + * @param "NamesOrIDs" (optional.Interface of []string) - Names or IDs of pods. +@return InlineResponse2002 +*/ + +type PodsApiStatsPodOpts struct { + All optional.Bool + NamesOrIDs optional.Interface +} + +func (a *PodsApiService) StatsPod(ctx context.Context, localVarOptionals *PodsApiStatsPodOpts) (InlineResponse2002, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2002 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/stats" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.All.IsSet() { + localVarQueryParams.Add("all", parameterToString(localVarOptionals.All.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.NamesOrIDs.IsSet() { + localVarQueryParams.Add("namesOrIDs", parameterToString(localVarOptionals.NamesOrIDs.Value(), "csv")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2002 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Stop a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod + * @param optional nil or *PodsApiStopPodOpts - Optional Parameters: + * @param "T" (optional.Int32) - timeout +@return PodStopReport +*/ + +type PodsApiStopPodOpts struct { + T optional.Int32 +} + +func (a *PodsApiService) StopPod(ctx context.Context, name string, localVarOptionals *PodsApiStopPodOpts) (PodStopReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodStopReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/stop" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.T.IsSet() { + localVarQueryParams.Add("t", parameterToString(localVarOptionals.T.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodStopReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 304 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService List processes +List processes running inside a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name Name of pod to query for processes + * @param optional nil or *PodsApiTopPodOpts - Optional Parameters: + * @param "Stream" (optional.Bool) - Stream the output + * @param "PsArgs" (optional.String) - arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. +@return InlineResponse2002 +*/ + +type PodsApiTopPodOpts struct { + Stream optional.Bool + PsArgs optional.String +} + +func (a *PodsApiService) TopPod(ctx context.Context, name string, localVarOptionals *PodsApiTopPodOpts) (InlineResponse2002, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse2002 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/top" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PsArgs.IsSet() { + localVarQueryParams.Add("ps_args", parameterToString(localVarOptionals.PsArgs.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse2002 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +PodsApiService Unpause a pod + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the pod +@return PodUnpauseReport +*/ +func (a *PodsApiService) UnpausePod(ctx context.Context, name string) (PodUnpauseReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PodUnpauseReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/pods/{name}/unpause" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v PodUnpauseReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_system.go b/pkg/swagger/api_system.go new file mode 100644 index 0000000..e88e9fe --- /dev/null +++ b/pkg/swagger/api_system.go @@ -0,0 +1,591 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type SystemApiService service +/* +SystemApiService Show disk usage +Return information about disk usage for containers, images, and volumes + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return InlineResponse20012 +*/ +func (a *SystemApiService) Df(ctx context.Context) (InlineResponse20012, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20012 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/system/df" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20012 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +SystemApiService Get events +Returns events filtered on query parameters + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *SystemApiLibpodGetEventsOpts - Optional Parameters: + * @param "Since" (optional.String) - start streaming events from this time + * @param "Until" (optional.String) - stop streaming events later than this + * @param "Filters" (optional.String) - JSON encoded map[string][]string of constraints + * @param "Stream" (optional.Bool) - when false, do not follow events + +*/ + +type SystemApiLibpodGetEventsOpts struct { + Since optional.String + Until optional.String + Filters optional.String + Stream optional.Bool +} + +func (a *SystemApiService) LibpodGetEvents(ctx context.Context, localVarOptionals *SystemApiLibpodGetEventsOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Since.IsSet() { + localVarQueryParams.Add("since", parameterToString(localVarOptionals.Since.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Until.IsSet() { + localVarQueryParams.Add("until", parameterToString(localVarOptionals.Until.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Stream.IsSet() { + localVarQueryParams.Add("stream", parameterToString(localVarOptionals.Stream.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +SystemApiService Get info +Returns information on the system and libpod configuration + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return Info +*/ +func (a *SystemApiService) LibpodGetInfo(ctx context.Context) (Info, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Info + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v Info + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +SystemApiService Ping service +Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return string +*/ +func (a *SystemApiService) LibpodPingGet(ctx context.Context) (string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/_ping" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +SystemApiService Prune unused data + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return InlineResponse20013 +*/ +func (a *SystemApiService) PruneSystem(ctx context.Context) (InlineResponse20013, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20013 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/system/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20013 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +SystemApiService Component Version information + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return InlineResponse20014 +*/ +func (a *SystemApiService) SystemVersion(ctx context.Context) (InlineResponse20014, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20014 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/version" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20014 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_system_compat.go b/pkg/swagger/api_system_compat.go new file mode 100644 index 0000000..41f9537 --- /dev/null +++ b/pkg/swagger/api_system_compat.go @@ -0,0 +1,374 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type SystemCompatApiService service +/* +SystemCompatApiService Component Version information + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return InlineResponse20014 +*/ +func (a *SystemCompatApiService) CompatSystemVersion(ctx context.Context) (InlineResponse20014, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20014 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/version" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20014 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +SystemCompatApiService Get events +Returns events filtered on query parameters + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *SystemCompatApiGetEventsOpts - Optional Parameters: + * @param "Since" (optional.String) - start streaming events from this time + * @param "Until" (optional.String) - stop streaming events later than this + * @param "Filters" (optional.String) - JSON encoded map[string][]string of constraints + +*/ + +type SystemCompatApiGetEventsOpts struct { + Since optional.String + Until optional.String + Filters optional.String +} + +func (a *SystemCompatApiService) GetEvents(ctx context.Context, localVarOptionals *SystemCompatApiGetEventsOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Since.IsSet() { + localVarQueryParams.Add("since", parameterToString(localVarOptionals.Since.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Until.IsSet() { + localVarQueryParams.Add("until", parameterToString(localVarOptionals.Until.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +SystemCompatApiService Get info +Returns information on the system and libpod configuration + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +*/ +func (a *SystemCompatApiService) GetInfo(ctx context.Context) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} +/* +SystemCompatApiService Ping service +Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return string +*/ +func (a *SystemCompatApiService) LibpodPingGet(ctx context.Context) (string, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue string + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/_ping" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"text/plain"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v string + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_volumes.go b/pkg/swagger/api_volumes.go new file mode 100644 index 0000000..f598aaf --- /dev/null +++ b/pkg/swagger/api_volumes.go @@ -0,0 +1,529 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type VolumesApiService service +/* +VolumesApiService Create a volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *VolumesApiLibpodCreateVolumeOpts - Optional Parameters: + * @param "Body" (optional.Interface of VolumeCreate) - attributes for creating a container +@return InlineResponse20015 +*/ + +type VolumesApiLibpodCreateVolumeOpts struct { + Body optional.Interface +} + +func (a *VolumesApiService) LibpodCreateVolume(ctx context.Context, localVarOptionals *VolumesApiLibpodCreateVolumeOpts) (InlineResponse20015, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20015 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/volumes/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v InlineResponse20015 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesApiService Inspect volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the volume +@return InlineResponse20015 +*/ +func (a *VolumesApiService) LibpodInspectVolume(ctx context.Context, name string) (InlineResponse20015, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20015 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/volumes/{name}/json" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20015 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesApiService List volumes +Returns a list of volumes + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *VolumesApiLibpodListVolumesOpts - Optional Parameters: + * @param "Filters" (optional.String) - JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: - driver=<volume-driver-name> Matches volumes based on their driver. - label=<key> or label=<key>:<value> Matches volumes based on the presence of a label alone or a label and a value. - name=<volume-name> Matches all of volume name. - opt=<driver-option> Matches a storage driver options +@return []Volume +*/ + +type VolumesApiLibpodListVolumesOpts struct { + Filters optional.String +} + +func (a *VolumesApiService) LibpodListVolumes(ctx context.Context, localVarOptionals *VolumesApiLibpodListVolumesOpts) ([]Volume, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Volume + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/volumes/json" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []Volume + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesApiService Prune volumes + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return []VolumePruneReport +*/ +func (a *VolumesApiService) LibpodPruneVolumes(ctx context.Context) ([]VolumePruneReport, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []VolumePruneReport + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/volumes/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v []VolumePruneReport + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesApiService Remove volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the volume + * @param optional nil or *VolumesApiLibpodRemoveVolumeOpts - Optional Parameters: + * @param "Force" (optional.Bool) - force removal + +*/ + +type VolumesApiLibpodRemoveVolumeOpts struct { + Force optional.Bool +} + +func (a *VolumesApiService) LibpodRemoveVolume(ctx context.Context, name string, localVarOptionals *VolumesApiLibpodRemoveVolumeOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/libpod/volumes/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/api_volumes_compat.go b/pkg/swagger/api_volumes_compat.go new file mode 100644 index 0000000..eeed529 --- /dev/null +++ b/pkg/swagger/api_volumes_compat.go @@ -0,0 +1,541 @@ + +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type VolumesCompatApiService service +/* +VolumesCompatApiService Create a volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *VolumesCompatApiCreateVolumeOpts - Optional Parameters: + * @param "Body" (optional.Interface of VolumeCreateBody) - attributes for creating a container. +Note: If a volume by the same name exists, a 201 response with that volume's information will be generated. + +@return InlineResponse20018 +*/ + +type VolumesCompatApiCreateVolumeOpts struct { + Body optional.Interface +} + +func (a *VolumesCompatApiService) CreateVolume(ctx context.Context, localVarOptionals *VolumesCompatApiCreateVolumeOpts) (InlineResponse20018, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20018 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/volumes/create" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json", "application/x-tar"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + + localVarOptionalBody:= localVarOptionals.Body.Value() + localVarPostBody = &localVarOptionalBody + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v InlineResponse20018 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesCompatApiService Inspect volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the volume +@return InlineResponse20018 +*/ +func (a *VolumesCompatApiService) InspectVolume(ctx context.Context, name string) (InlineResponse20018, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20018 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/volumes/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20018 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesCompatApiService List volumes +Returns a list of volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *VolumesCompatApiListVolumesOpts - Optional Parameters: + * @param "Filters" (optional.String) - JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: - driver=<volume-driver-name> Matches volumes based on their driver. - label=<key> or label=<key>:<value> Matches volumes based on the presence of a label alone or a label and a value. - name=<volume-name> Matches all of volume name. Note: The boolean `dangling` filter is not yet implemented for this endpoint. +@return InlineResponse20017 +*/ + +type VolumesCompatApiListVolumesOpts struct { + Filters optional.String +} + +func (a *VolumesCompatApiService) ListVolumes(ctx context.Context, localVarOptionals *VolumesCompatApiListVolumesOpts) (InlineResponse20017, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20017 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/volumes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20017 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesCompatApiService Prune volumes + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *VolumesCompatApiPruneVolumesOpts - Optional Parameters: + * @param "Filters" (optional.String) - JSON encoded value of filters (a map[string][]string) to match volumes against before pruning. Note: No filters are currently supported and any filters specified will cause an error response. +@return InlineResponse20019 +*/ + +type VolumesCompatApiPruneVolumesOpts struct { + Filters optional.String +} + +func (a *VolumesCompatApiService) PruneVolumes(ctx context.Context, localVarOptionals *VolumesCompatApiPruneVolumesOpts) (InlineResponse20019, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue InlineResponse20019 + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/volumes/prune" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v InlineResponse20019 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} +/* +VolumesCompatApiService Remove volume + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name the name or ID of the volume + * @param optional nil or *VolumesCompatApiRemoveVolumeOpts - Optional Parameters: + * @param "Force" (optional.Bool) - Force removal of the volume. This actually only causes errors due to the names volume not being found to be suppressed, which is the behaviour Docker implements. + +*/ + +type VolumesCompatApiRemoveVolumeOpts struct { + Force optional.Bool +} + +func (a *VolumesCompatApiService) RemoveVolume(ctx context.Context, name string, localVarOptionals *VolumesCompatApiRemoveVolumeOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/volumes/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Force.IsSet() { + localVarQueryParams.Add("force", parameterToString(localVarOptionals.Force.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/pkg/swagger/client.go b/pkg/swagger/client.go new file mode 100644 index 0000000..0aa4546 --- /dev/null +++ b/pkg/swagger/client.go @@ -0,0 +1,513 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the Provides a container compatible interface. API v0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ContainersApi *ContainersApiService + + ContainersCompatApi *ContainersCompatApiService + + ExecApi *ExecApiService + + ExecCompatApi *ExecCompatApiService + + ImagesApi *ImagesApiService + + ImagesCompatApi *ImagesCompatApiService + + ManifestsApi *ManifestsApiService + + NetworksApi *NetworksApiService + + NetworksCompatApi *NetworksCompatApiService + + PodsApi *PodsApiService + + SystemApi *SystemApiService + + SystemCompatApi *SystemCompatApiService + + VolumesApi *VolumesApiService + + VolumesCompatApi *VolumesCompatApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ContainersApi = (*ContainersApiService)(&c.common) + c.ContainersCompatApi = (*ContainersCompatApiService)(&c.common) + c.ExecApi = (*ExecApiService)(&c.common) + c.ExecCompatApi = (*ExecCompatApiService)(&c.common) + c.ImagesApi = (*ImagesApiService)(&c.common) + c.ImagesCompatApi = (*ImagesCompatApiService)(&c.common) + c.ManifestsApi = (*ManifestsApiService)(&c.common) + c.NetworksApi = (*NetworksApiService)(&c.common) + c.NetworksCompatApi = (*NetworksCompatApiService)(&c.common) + c.PodsApi = (*PodsApiService)(&c.common) + c.SystemApi = (*SystemApiService)(&c.common) + c.SystemCompatApi = (*SystemCompatApiService)(&c.common) + c.VolumesApi = (*VolumesApiService)(&c.common) + c.VolumesCompatApi = (*VolumesCompatApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} diff --git a/pkg/swagger/configuration.go b/pkg/swagger/configuration.go new file mode 100644 index 0000000..57580e1 --- /dev/null +++ b/pkg/swagger/configuration.go @@ -0,0 +1,72 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "http://podman.io/", + DefaultHeader: make(map[string]string), + UserAgent: "Swagger-Codegen/1.0.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/pkg/swagger/docs/Address.md b/pkg/swagger/docs/Address.md new file mode 100644 index 0000000..2391572 --- /dev/null +++ b/pkg/swagger/docs/Address.md @@ -0,0 +1,10 @@ +# Address + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Addr** | **string** | | [optional] [default to null] +**PrefixLen** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/AuthenticateOkBody.md b/pkg/swagger/docs/AuthenticateOkBody.md new file mode 100644 index 0000000..d035dcc --- /dev/null +++ b/pkg/swagger/docs/AuthenticateOkBody.md @@ -0,0 +1,10 @@ +# AuthenticateOkBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IdentityToken** | **string** | An opaque token used to authenticate a user after a successful login | [default to null] +**Status** | **string** | The status of the authentication | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/AutoUserNsOptions.md b/pkg/swagger/docs/AutoUserNsOptions.md new file mode 100644 index 0000000..d295665 --- /dev/null +++ b/pkg/swagger/docs/AutoUserNsOptions.md @@ -0,0 +1,14 @@ +# AutoUserNsOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalGIDMappings** | [**[]IdMap**](IDMap.md) | AdditionalGIDMappings specified additional GID mappings to include in the generated user namespace. | [optional] [default to null] +**AdditionalUIDMappings** | [**[]IdMap**](IDMap.md) | AdditionalUIDMappings specified additional UID mappings to include in the generated user namespace. | [optional] [default to null] +**GroupFile** | **string** | GroupFile to use if the container uses a volume. | [optional] [default to null] +**InitialSize** | **int32** | InitialSize defines the minimum size for the user namespace. The created user namespace will have at least this size. | [optional] [default to null] +**PasswdFile** | **string** | PasswdFile to use if the container uses a volume. | [optional] [default to null] +**Size** | **int32** | Size defines the size for the user namespace. If it is set to a value bigger than 0, the user namespace will have exactly this size. If it is not set, some heuristics will be used to find its size. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body.md b/pkg/swagger/docs/Body.md new file mode 100644 index 0000000..879770a --- /dev/null +++ b/pkg/swagger/docs/Body.md @@ -0,0 +1,18 @@ +# Body + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttachStderr** | **bool** | Attach to stderr of the exec command | [optional] [default to null] +**AttachStdin** | **bool** | Attach to stdin of the exec command | [optional] [default to null] +**AttachStdout** | **bool** | Attach to stdout of the exec command | [optional] [default to null] +**Cmd** | **[]string** | Command to run, as a string or array of strings. | [optional] [default to null] +**DetachKeys** | **string** | \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\" | [optional] [default to null] +**Env** | **[]string** | A list of environment variables in the form [\"VAR=value\", ...] | [optional] [default to null] +**Privileged** | **bool** | Runs the exec process with extended privileges | [optional] [default to false] +**Tty** | **bool** | Allocate a pseudo-TTY | [optional] [default to null] +**User** | **string** | \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" | [optional] [default to null] +**WorkingDir** | **string** | The working directory for the exec process inside the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body1.md b/pkg/swagger/docs/Body1.md new file mode 100644 index 0000000..f69f820 --- /dev/null +++ b/pkg/swagger/docs/Body1.md @@ -0,0 +1,18 @@ +# Body1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttachStderr** | **bool** | Attach to stderr of the exec command | [optional] [default to null] +**AttachStdin** | **bool** | Attach to stdin of the exec command | [optional] [default to null] +**AttachStdout** | **bool** | Attach to stdout of the exec command | [optional] [default to null] +**Cmd** | **[]string** | Command to run, as a string or array of strings. | [optional] [default to null] +**DetachKeys** | **string** | \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\" | [optional] [default to null] +**Env** | **[]string** | A list of environment variables in the form [\"VAR=value\", ...] | [optional] [default to null] +**Privileged** | **bool** | Runs the exec process with extended privileges | [optional] [default to false] +**Tty** | **bool** | Allocate a pseudo-TTY | [optional] [default to null] +**User** | **string** | \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" | [optional] [default to null] +**WorkingDir** | **string** | The working directory for the exec process inside the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body10.md b/pkg/swagger/docs/Body10.md new file mode 100644 index 0000000..4afadc2 --- /dev/null +++ b/pkg/swagger/docs/Body10.md @@ -0,0 +1,9 @@ +# Body10 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upload** | [****os.File**](*os.File.md) | tarball of container image | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body11.md b/pkg/swagger/docs/Body11.md new file mode 100644 index 0000000..e8a4917 --- /dev/null +++ b/pkg/swagger/docs/Body11.md @@ -0,0 +1,9 @@ +# Body11 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upload** | [****os.File**](*os.File.md) | tarball of container image | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body2.md b/pkg/swagger/docs/Body2.md new file mode 100644 index 0000000..63f9b6e --- /dev/null +++ b/pkg/swagger/docs/Body2.md @@ -0,0 +1,10 @@ +# Body2 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detach** | **bool** | Detach from the command. Not presently supported. | [optional] [default to null] +**Tty** | **bool** | Allocate a pseudo-TTY. Presently ignored. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body3.md b/pkg/swagger/docs/Body3.md new file mode 100644 index 0000000..4a72b0c --- /dev/null +++ b/pkg/swagger/docs/Body3.md @@ -0,0 +1,10 @@ +# Body3 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detach** | **bool** | Detach from the command. Not presently supported. | [optional] [default to null] +**Tty** | **bool** | Allocate a pseudo-TTY. Presently ignored. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body4.md b/pkg/swagger/docs/Body4.md new file mode 100644 index 0000000..5970b2f --- /dev/null +++ b/pkg/swagger/docs/Body4.md @@ -0,0 +1,18 @@ +# Body4 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttachStderr** | **bool** | Attach to stderr of the exec command | [optional] [default to null] +**AttachStdin** | **bool** | Attach to stdin of the exec command | [optional] [default to null] +**AttachStdout** | **bool** | Attach to stdout of the exec command | [optional] [default to null] +**Cmd** | **[]string** | Command to run, as a string or array of strings. | [optional] [default to null] +**DetachKeys** | **string** | \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\" | [optional] [default to null] +**Env** | **[]string** | A list of environment variables in the form [\"VAR=value\", ...] | [optional] [default to null] +**Privileged** | **bool** | Runs the exec process with extended privileges | [optional] [default to false] +**Tty** | **bool** | Allocate a pseudo-TTY | [optional] [default to null] +**User** | **string** | \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" | [optional] [default to null] +**WorkingDir** | **string** | The working directory for the exec process inside the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body5.md b/pkg/swagger/docs/Body5.md new file mode 100644 index 0000000..91f2c71 --- /dev/null +++ b/pkg/swagger/docs/Body5.md @@ -0,0 +1,18 @@ +# Body5 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttachStderr** | **bool** | Attach to stderr of the exec command | [optional] [default to null] +**AttachStdin** | **bool** | Attach to stdin of the exec command | [optional] [default to null] +**AttachStdout** | **bool** | Attach to stdout of the exec command | [optional] [default to null] +**Cmd** | **[]string** | Command to run, as a string or array of strings. | [optional] [default to null] +**DetachKeys** | **string** | \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\" | [optional] [default to null] +**Env** | **[]string** | A list of environment variables in the form [\"VAR=value\", ...] | [optional] [default to null] +**Privileged** | **bool** | Runs the exec process with extended privileges | [optional] [default to false] +**Tty** | **bool** | Allocate a pseudo-TTY | [optional] [default to null] +**User** | **string** | \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" | [optional] [default to null] +**WorkingDir** | **string** | The working directory for the exec process inside the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body6.md b/pkg/swagger/docs/Body6.md new file mode 100644 index 0000000..5aa73f0 --- /dev/null +++ b/pkg/swagger/docs/Body6.md @@ -0,0 +1,10 @@ +# Body6 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detach** | **bool** | Detach from the command. Not presently supported. | [optional] [default to null] +**Tty** | **bool** | Allocate a pseudo-TTY. Presently ignored. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body7.md b/pkg/swagger/docs/Body7.md new file mode 100644 index 0000000..c1d66e1 --- /dev/null +++ b/pkg/swagger/docs/Body7.md @@ -0,0 +1,10 @@ +# Body7 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Detach** | **bool** | Detach from the command. Not presently supported. | [optional] [default to null] +**Tty** | **bool** | Allocate a pseudo-TTY. Presently ignored. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body8.md b/pkg/swagger/docs/Body8.md new file mode 100644 index 0000000..cc339eb --- /dev/null +++ b/pkg/swagger/docs/Body8.md @@ -0,0 +1,9 @@ +# Body8 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upload** | [****os.File**](*os.File.md) | tarball for imported image | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Body9.md b/pkg/swagger/docs/Body9.md new file mode 100644 index 0000000..51f9f09 --- /dev/null +++ b/pkg/swagger/docs/Body9.md @@ -0,0 +1,9 @@ +# Body9 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upload** | [****os.File**](*os.File.md) | tarball for imported image | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/CgroupConfig.md b/pkg/swagger/docs/CgroupConfig.md new file mode 100644 index 0000000..7f1165d --- /dev/null +++ b/pkg/swagger/docs/CgroupConfig.md @@ -0,0 +1,12 @@ +# CgroupConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupMode** | **string** | | [optional] [default to null] +**CgroupParent** | **string** | | [optional] [default to null] +**Cgroupns** | **string** | | [optional] [default to null] +**Cgroups** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Change.md b/pkg/swagger/docs/Change.md new file mode 100644 index 0000000..332a8c1 --- /dev/null +++ b/pkg/swagger/docs/Change.md @@ -0,0 +1,10 @@ +# Change + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **int64** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Config.md b/pkg/swagger/docs/Config.md new file mode 100644 index 0000000..4af91e1 --- /dev/null +++ b/pkg/swagger/docs/Config.md @@ -0,0 +1,33 @@ +# Config + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArgsEscaped** | **bool** | | [optional] [default to null] +**AttachStderr** | **bool** | | [optional] [default to null] +**AttachStdin** | **bool** | | [optional] [default to null] +**AttachStdout** | **bool** | | [optional] [default to null] +**Cmd** | [***[]string**](array.md) | | [optional] [default to null] +**Domainname** | **string** | | [optional] [default to null] +**Entrypoint** | [***[]string**](array.md) | | [optional] [default to null] +**Env** | **[]string** | | [optional] [default to null] +**ExposedPorts** | [***map[string]interface{}**](map.md) | | [optional] [default to null] +**Healthcheck** | [***HealthConfig**](HealthConfig.md) | | [optional] [default to null] +**Hostname** | **string** | | [optional] [default to null] +**Image** | **string** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**MacAddress** | **string** | | [optional] [default to null] +**NetworkDisabled** | **bool** | | [optional] [default to null] +**OnBuild** | **[]string** | | [optional] [default to null] +**OpenStdin** | **bool** | | [optional] [default to null] +**Shell** | [***[]string**](array.md) | | [optional] [default to null] +**StdinOnce** | **bool** | | [optional] [default to null] +**StopSignal** | **string** | | [optional] [default to null] +**StopTimeout** | **int64** | | [optional] [default to null] +**Tty** | **bool** | | [optional] [default to null] +**User** | **string** | | [optional] [default to null] +**Volumes** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**WorkingDir** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ConfigReference.md b/pkg/swagger/docs/ConfigReference.md new file mode 100644 index 0000000..301bc80 --- /dev/null +++ b/pkg/swagger/docs/ConfigReference.md @@ -0,0 +1,9 @@ +# ConfigReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Network** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ConmonInfo.md b/pkg/swagger/docs/ConmonInfo.md new file mode 100644 index 0000000..4cbd779 --- /dev/null +++ b/pkg/swagger/docs/ConmonInfo.md @@ -0,0 +1,11 @@ +# ConmonInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Package_** | **string** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerBasicConfig.md b/pkg/swagger/docs/ContainerBasicConfig.md new file mode 100644 index 0000000..1631e5a --- /dev/null +++ b/pkg/swagger/docs/ContainerBasicConfig.md @@ -0,0 +1,37 @@ +# ContainerBasicConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | **map[string]string** | Annotations are key-value options passed into the container runtime that can be used to trigger special behavior. Optional. | [optional] [default to null] +**Command** | **[]string** | Command is the container's command. If not given and Image is specified, this will be populated by the image's configuration. Optional. | [optional] [default to null] +**ConmonPidFile** | **string** | ConmonPidFile is a path at which a PID file for Conmon will be placed. If not given, a default location will be used. Optional. | [optional] [default to null] +**ContainerCreateCommand** | **[]string** | ContainerCreateCommand is the command that was used to create this container. This will be shown in the output of Inspect() on the container, and may also be used by some tools that wish to recreate the container (e.g. `podman generate systemd --new`). Optional. | [optional] [default to null] +**Entrypoint** | **[]string** | Entrypoint is the container's entrypoint. If not given and Image is specified, this will be populated by the image's configuration. Optional. | [optional] [default to null] +**Env** | **map[string]string** | Env is a set of environment variables that will be set in the container. Optional. | [optional] [default to null] +**EnvHost** | **bool** | EnvHost indicates that the host environment should be added to container Optional. | [optional] [default to null] +**Hostname** | **string** | Hostname is the container's hostname. If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private. Optional. | [optional] [default to null] +**Httpproxy** | **bool** | EnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional. | [optional] [default to null] +**Labels** | **map[string]string** | Labels are key-value pairs that are used to add metadata to containers. Optional. | [optional] [default to null] +**LogConfiguration** | [***LogConfig**](LogConfig.md) | | [optional] [default to null] +**Name** | **string** | Name is the name the container will be given. If no name is provided, one will be randomly generated. Optional. | [optional] [default to null] +**Namespace** | **string** | Namespace is the libpod namespace the container will be placed in. Optional. | [optional] [default to null] +**OciRuntime** | **string** | OCIRuntime is the name of the OCI runtime that will be used to create the container. If not specified, the default will be used. Optional. | [optional] [default to null] +**Pidns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Pod** | **string** | Pod is the ID of the pod the container will join. Optional. | [optional] [default to null] +**RawImageName** | **string** | RawImageName is the user-specified and unprocessed input referring to a local or a remote image. | [optional] [default to null] +**Remove** | **bool** | Remove indicates if the container should be removed once it has been started and exits | [optional] [default to null] +**RestartPolicy** | **string** | RestartPolicy is the container's restart policy - an action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used. Optional. | [optional] [default to null] +**RestartTries** | **int32** | RestartRetries is the number of attempts that will be made to restart the container. Only available when RestartPolicy is set to \"on-failure\". Optional. | [optional] [default to null] +**SdnotifyMode** | **string** | Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET | [optional] [default to null] +**Stdin** | **bool** | Stdin is whether the container will keep its STDIN open. | [optional] [default to null] +**StopSignal** | **int64** | | [optional] [default to null] +**StopTimeout** | **int32** | StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead. Optional. | [optional] [default to null] +**Sysctl** | **map[string]string** | Sysctl sets kernel parameters for the container | [optional] [default to null] +**Systemd** | **string** | Systemd is whether the container will be started in systemd mode. Valid options are \"true\", \"false\", and \"always\". \"true\" enables this mode only if the binary run in the container is sbin/init or systemd. \"always\" unconditionally enables systemd mode. \"false\" unconditionally disables systemd mode. If enabled, mounts and stop signal will be modified. If set to \"always\" or set to \"true\" and conditionally triggered, conflicts with StopSignal. If not specified, \"false\" will be assumed. Optional. | [optional] [default to null] +**Terminal** | **bool** | Terminal is whether the container will create a PTY. Optional. | [optional] [default to null] +**Timezone** | **string** | Timezone is the timezone inside the container. Local means it has the same timezone as the host machine | [optional] [default to null] +**Utsns** | [***Namespace**](Namespace.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerCgroupConfig.md b/pkg/swagger/docs/ContainerCgroupConfig.md new file mode 100644 index 0000000..fd768a8 --- /dev/null +++ b/pkg/swagger/docs/ContainerCgroupConfig.md @@ -0,0 +1,11 @@ +# ContainerCgroupConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupParent** | **string** | CgroupParent is the container's CGroup parent. If not set, the default for the current cgroup driver will be used. Optional. | [optional] [default to null] +**Cgroupns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**CgroupsMode** | **string** | CgroupsMode sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerChangeResponseItem.md b/pkg/swagger/docs/ContainerChangeResponseItem.md new file mode 100644 index 0000000..17be7fb --- /dev/null +++ b/pkg/swagger/docs/ContainerChangeResponseItem.md @@ -0,0 +1,10 @@ +# ContainerChangeResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **int32** | Kind of change | [default to null] +**Path** | **string** | Path to file that has changed | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerCreateCreatedBody.md b/pkg/swagger/docs/ContainerCreateCreatedBody.md new file mode 100644 index 0000000..2b7a498 --- /dev/null +++ b/pkg/swagger/docs/ContainerCreateCreatedBody.md @@ -0,0 +1,10 @@ +# ContainerCreateCreatedBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the created container | [default to null] +**Warnings** | **[]string** | Warnings encountered when creating the container | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerHealthCheckConfig.md b/pkg/swagger/docs/ContainerHealthCheckConfig.md new file mode 100644 index 0000000..aab3ab9 --- /dev/null +++ b/pkg/swagger/docs/ContainerHealthCheckConfig.md @@ -0,0 +1,9 @@ +# ContainerHealthCheckConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Healthconfig** | [***Schema2HealthConfig**](Schema2HealthConfig.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerNamedVolume.md b/pkg/swagger/docs/ContainerNamedVolume.md new file mode 100644 index 0000000..62956dd --- /dev/null +++ b/pkg/swagger/docs/ContainerNamedVolume.md @@ -0,0 +1,11 @@ +# ContainerNamedVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dest** | **string** | Dest is the mount's destination | [optional] [default to null] +**Options** | **[]string** | Options are fstab style mount options | [optional] [default to null] +**VolumeName** | **string** | Name is the name of the volume to mount in. Must resolve to a valid volume present in this Podman. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerNetworkConfig.md b/pkg/swagger/docs/ContainerNetworkConfig.md new file mode 100644 index 0000000..453eabe --- /dev/null +++ b/pkg/swagger/docs/ContainerNetworkConfig.md @@ -0,0 +1,23 @@ +# ContainerNetworkConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CniNetworks** | **[]string** | CNINetworks is a list of CNI networks to join the container to. If this list is empty, the default CNI network will be joined instead. If at least one entry is present, we will not join the default network (unless it is part of this list). Only available if NetNS is set to bridge. Optional. | [optional] [default to null] +**DnsOption** | **[]string** | DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**DnsSearch** | **[]string** | DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**DnsServer** | [**[][]int32**](array.md) | DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**Expose** | [***interface{}**](interface{}.md) | Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set. Expose is a map of uint16 (port number) to a string representing protocol. Allowed protocols are \"tcp\", \"udp\", and \"sctp\", or some combination of the three separated by commas. If protocol is set to \"\" we will assume TCP. Only available if NetNS is set to Bridge or Slirp, and PublishExposedPorts is set. Optional. | [optional] [default to null] +**Hostadd** | **[]string** | HostAdd is a set of hosts which will be added to the container's etc/hosts file. Conflicts with UseImageHosts. Optional. | [optional] [default to null] +**Netns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**NetworkOptions** | [**map[string][]string**](array.md) | NetworkOptions are additional options for each network Optional. | [optional] [default to null] +**Portmappings** | [**[]PortMapping**](PortMapping.md) | PortBindings is a set of ports to map into the container. Only available if NetNS is set to bridge or slirp. Optional. | [optional] [default to null] +**PublishImagePorts** | **bool** | PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host. This is based on ports set in Expose below, and any ports specified by the Image (if one is given). Only available if NetNS is set to Bridge or Slirp. | [optional] [default to null] +**StaticIp** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticIpv6** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticMac** | [***[]int32**](array.md) | | [optional] [default to null] +**UseImageHosts** | **bool** | UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image. Conflicts with HostAdd. | [optional] [default to null] +**UseImageResolveConf** | **bool** | UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image. Conflicts with DNSServer, DNSSearch, DNSOption. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerNode.md b/pkg/swagger/docs/ContainerNode.md new file mode 100644 index 0000000..4d5263e --- /dev/null +++ b/pkg/swagger/docs/ContainerNode.md @@ -0,0 +1,15 @@ +# ContainerNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Addr** | **string** | | [optional] [default to null] +**Cpus** | **int64** | | [optional] [default to null] +**ID** | **string** | | [optional] [default to null] +**IP** | **string** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Memory** | **int64** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerResourceConfig.md b/pkg/swagger/docs/ContainerResourceConfig.md new file mode 100644 index 0000000..82168ab --- /dev/null +++ b/pkg/swagger/docs/ContainerResourceConfig.md @@ -0,0 +1,17 @@ +# ContainerResourceConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OomScoreAdj** | **int64** | OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional. | [optional] [default to null] +**RLimits** | [**[]PosixRlimit**](POSIXRlimit.md) | Rlimits are POSIX rlimits to apply to the container. Optional. | [optional] [default to null] +**ResourceLimits** | [***LinuxResources**](LinuxResources.md) | | [optional] [default to null] +**ThrottleReadBpsDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleReadIOPSDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, IO per second | [optional] [default to null] +**ThrottleWriteBpsDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleWriteIOPSDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, IO per second | [optional] [default to null] +**Unified** | **map[string]string** | CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional. | [optional] [default to null] +**WeightDevice** | [**map[string]LinuxWeightDevice**](LinuxWeightDevice.md) | Weight per cgroup per device, can override BlkioWeight | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerSecurityConfig.md b/pkg/swagger/docs/ContainerSecurityConfig.md new file mode 100644 index 0000000..5f9080c --- /dev/null +++ b/pkg/swagger/docs/ContainerSecurityConfig.md @@ -0,0 +1,23 @@ +# ContainerSecurityConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApparmorProfile** | **string** | ApparmorProfile is the name of the Apparmor profile the container will use. Optional. | [optional] [default to null] +**CapAdd** | **[]string** | CapAdd are capabilities which will be added to the container. Conflicts with Privileged. Optional. | [optional] [default to null] +**CapDrop** | **[]string** | CapDrop are capabilities which will be removed from the container. Conflicts with Privileged. Optional. | [optional] [default to null] +**Groups** | **[]string** | Groups are a list of supplemental groups the container's user will be granted access to. Optional. | [optional] [default to null] +**Idmappings** | [***IdMappingOptions**](IDMappingOptions.md) | | [optional] [default to null] +**NoNewPrivileges** | **bool** | NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container. | [optional] [default to null] +**Privileged** | **bool** | Privileged is whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled). TODO: this conflicts with things. TODO: this does more. | [optional] [default to null] +**ProcfsOpts** | **[]string** | ProcOpts are the options used for the proc mount. | [optional] [default to null] +**ReadOnlyFilesystem** | **bool** | ReadOnlyFilesystem indicates that everything will be mounted as read-only | [optional] [default to null] +**SeccompPolicy** | **string** | SeccompPolicy determines which seccomp profile gets applied the container. valid values: empty,default,image | [optional] [default to null] +**SeccompProfilePath** | **string** | SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile. If not specified, no Seccomp profile will be used. Optional. | [optional] [default to null] +**SelinuxOpts** | **[]string** | SelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional. | [optional] [default to null] +**Umask** | **string** | Umask is the umask the init process of the container will be run with. | [optional] [default to null] +**User** | **string** | User is the user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container's /etc/passwd. If unset, the container will be run as root. Optional. | [optional] [default to null] +**Userns** | [***Namespace**](Namespace.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerSize.md b/pkg/swagger/docs/ContainerSize.md new file mode 100644 index 0000000..0df6c60 --- /dev/null +++ b/pkg/swagger/docs/ContainerSize.md @@ -0,0 +1,10 @@ +# ContainerSize + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RootFsSize** | **int64** | | [optional] [default to null] +**RwSize** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerState.md b/pkg/swagger/docs/ContainerState.md new file mode 100644 index 0000000..382e25e --- /dev/null +++ b/pkg/swagger/docs/ContainerState.md @@ -0,0 +1,20 @@ +# ContainerState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dead** | **bool** | | [optional] [default to null] +**Error_** | **string** | | [optional] [default to null] +**ExitCode** | **int64** | | [optional] [default to null] +**FinishedAt** | **string** | | [optional] [default to null] +**Health** | [***Health**](Health.md) | | [optional] [default to null] +**OOMKilled** | **bool** | | [optional] [default to null] +**Paused** | **bool** | | [optional] [default to null] +**Pid** | **int64** | | [optional] [default to null] +**Restarting** | **bool** | | [optional] [default to null] +**Running** | **bool** | | [optional] [default to null] +**StartedAt** | **string** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerStorageConfig.md b/pkg/swagger/docs/ContainerStorageConfig.md new file mode 100644 index 0000000..270e9ca --- /dev/null +++ b/pkg/swagger/docs/ContainerStorageConfig.md @@ -0,0 +1,22 @@ +# ContainerStorageConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Devices** | [**[]LinuxDevice**](LinuxDevice.md) | Devices are devices that will be added to the container. Optional. | [optional] [default to null] +**Image** | **string** | Image is the image the container will be based on. The image will be used as the container's root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified. | [optional] [default to null] +**ImageVolumeMode** | **string** | ImageVolumeMode indicates how image volumes will be created. Supported modes are \"ignore\" (do not create), \"tmpfs\" (create as tmpfs), and \"anonymous\" (create as anonymous volumes). The default if unset is anonymous. Optional. | [optional] [default to null] +**Init** | **bool** | Init specifies that an init binary will be mounted into the container, and will be used as PID1. | [optional] [default to null] +**InitPath** | **string** | InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional. | [optional] [default to null] +**Ipcns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Mounts** | [**[]Mount**](Mount.md) | Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. | [optional] [default to null] +**OverlayVolumes** | [**[]OverlayVolume**](OverlayVolume.md) | Overlay volumes are named volumes that will be added to the container. Optional. | [optional] [default to null] +**Rootfs** | **string** | Rootfs is the path to a directory that will be used as the container's root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified. | [optional] [default to null] +**RootfsPropagation** | **string** | RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional. | [optional] [default to null] +**ShmSize** | **int64** | ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional. | [optional] [default to null] +**Volumes** | [**[]NamedVolume**](NamedVolume.md) | Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. | [optional] [default to null] +**VolumesFrom** | **[]string** | VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container. | [optional] [default to null] +**WorkDir** | **string** | WorkDir is the container's working directory. If unset, the default, /, will be used. Optional. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerStore.md b/pkg/swagger/docs/ContainerStore.md new file mode 100644 index 0000000..a32d2bb --- /dev/null +++ b/pkg/swagger/docs/ContainerStore.md @@ -0,0 +1,12 @@ +# ContainerStore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **int64** | | [optional] [default to null] +**Paused** | **int64** | | [optional] [default to null] +**Running** | **int64** | | [optional] [default to null] +**Stopped** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerTopOkBody.md b/pkg/swagger/docs/ContainerTopOkBody.md new file mode 100644 index 0000000..d7e0fbe --- /dev/null +++ b/pkg/swagger/docs/ContainerTopOkBody.md @@ -0,0 +1,10 @@ +# ContainerTopOkBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Processes** | [**[][]string**](array.md) | Each process running in the container, where each is process is an array of values corresponding to the titles. | [default to null] +**Titles** | **[]string** | The ps column titles | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerUpdateOkBody.md b/pkg/swagger/docs/ContainerUpdateOkBody.md new file mode 100644 index 0000000..7907240 --- /dev/null +++ b/pkg/swagger/docs/ContainerUpdateOkBody.md @@ -0,0 +1,9 @@ +# ContainerUpdateOkBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Warnings** | **[]string** | warnings | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerWaitOkBody.md b/pkg/swagger/docs/ContainerWaitOkBody.md new file mode 100644 index 0000000..e0c3030 --- /dev/null +++ b/pkg/swagger/docs/ContainerWaitOkBody.md @@ -0,0 +1,10 @@ +# ContainerWaitOkBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error_** | [***ContainerWaitOkBodyError**](ContainerWaitOKBodyError.md) | | [default to null] +**StatusCode** | **int64** | Exit code of the container | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainerWaitOkBodyError.md b/pkg/swagger/docs/ContainerWaitOkBodyError.md new file mode 100644 index 0000000..c0f6167 --- /dev/null +++ b/pkg/swagger/docs/ContainerWaitOkBodyError.md @@ -0,0 +1,9 @@ +# ContainerWaitOkBodyError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Details of an error | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainersApi.md b/pkg/swagger/docs/ContainersApi.md new file mode 100644 index 0000000..5a5e4b7 --- /dev/null +++ b/pkg/swagger/docs/ContainersApi.md @@ -0,0 +1,1170 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ChangesContainer**](ContainersApi.md#ChangesContainer) | **Get** /libpod/containers/{name}/changes | Report on changes to container's filesystem; adds, deletes or modifications. +[**LibpodAttachContainer**](ContainersApi.md#LibpodAttachContainer) | **Post** /libpod/containers/{name}/attach | Attach to a container +[**LibpodCheckpointContainer**](ContainersApi.md#LibpodCheckpointContainer) | **Post** /libpod/containers/{name}/checkpoint | Checkpoint a container +[**LibpodCommitContainer**](ContainersApi.md#LibpodCommitContainer) | **Post** /libpod/commit | Commit +[**LibpodContainerExists**](ContainersApi.md#LibpodContainerExists) | **Get** /libpod/containers/{name}/exists | Check if container exists +[**LibpodCreateContainer**](ContainersApi.md#LibpodCreateContainer) | **Post** /libpod/containers/create | Create a container +[**LibpodExportContainer**](ContainersApi.md#LibpodExportContainer) | **Get** /libpod/containers/{name}/export | Export a container +[**LibpodGenerateKube**](ContainersApi.md#LibpodGenerateKube) | **Get** /libpod/generate/{name:.*}/kube | Generate a Kubernetes YAML file. +[**LibpodGenerateSystemd**](ContainersApi.md#LibpodGenerateSystemd) | **Get** /libpod/generate/{name:.*}/systemd | Generate Systemd Units +[**LibpodGetContainer**](ContainersApi.md#LibpodGetContainer) | **Get** /libpod/containers/{name}/json | Inspect container +[**LibpodInitContainer**](ContainersApi.md#LibpodInitContainer) | **Post** /libpod/containers/{name}/init | Initialize a container +[**LibpodKillContainer**](ContainersApi.md#LibpodKillContainer) | **Post** /libpod/containers/{name}/kill | Kill container +[**LibpodListContainers**](ContainersApi.md#LibpodListContainers) | **Get** /libpod/containers/json | List containers +[**LibpodLogsFromContainer**](ContainersApi.md#LibpodLogsFromContainer) | **Get** /libpod/containers/{name}/logs | Get container logs +[**LibpodMountContainer**](ContainersApi.md#LibpodMountContainer) | **Post** /libpod/containers/{name}/mount | Mount a container +[**LibpodPauseContainer**](ContainersApi.md#LibpodPauseContainer) | **Post** /libpod/containers/{name}/pause | Pause a container +[**LibpodPlayKube**](ContainersApi.md#LibpodPlayKube) | **Post** /libpod/play/kube | Play a Kubernetes YAML file. +[**LibpodPruneContainers**](ContainersApi.md#LibpodPruneContainers) | **Post** /libpod/containers/prune | Delete stopped containers +[**LibpodPutArchive**](ContainersApi.md#LibpodPutArchive) | **Post** /libpod/containers/{name}/copy | Copy files into a container +[**LibpodRemoveContainer**](ContainersApi.md#LibpodRemoveContainer) | **Delete** /libpod/containers/{name} | Delete container +[**LibpodResizeContainer**](ContainersApi.md#LibpodResizeContainer) | **Post** /libpod/containers/{name}/resize | Resize a container's TTY +[**LibpodRestartContainer**](ContainersApi.md#LibpodRestartContainer) | **Post** /libpod/containers/{name}/restart | Restart a container +[**LibpodRestoreContainer**](ContainersApi.md#LibpodRestoreContainer) | **Post** /libpod/containers/{name}/restore | Restore a container +[**LibpodRunHealthCheck**](ContainersApi.md#LibpodRunHealthCheck) | **Get** /libpod/containers/{name:.*}/healthcheck | Run a container's healthcheck +[**LibpodShowMountedContainers**](ContainersApi.md#LibpodShowMountedContainers) | **Get** /libpod/containers/showmounted | Show mounted containers +[**LibpodStartContainer**](ContainersApi.md#LibpodStartContainer) | **Post** /libpod/containers/{name}/start | Start a container +[**LibpodStatsContainer**](ContainersApi.md#LibpodStatsContainer) | **Get** /libpod/containers/{name}/stats | Get stats for a container +[**LibpodStatsContainers**](ContainersApi.md#LibpodStatsContainers) | **Get** /libpod/containers/stats | Get stats for one or more containers +[**LibpodStopContainer**](ContainersApi.md#LibpodStopContainer) | **Post** /libpod/containers/{name}/stop | Stop a container +[**LibpodTopContainer**](ContainersApi.md#LibpodTopContainer) | **Get** /libpod/containers/{name}/top | List processes +[**LibpodUnmountContainer**](ContainersApi.md#LibpodUnmountContainer) | **Post** /libpod/containers/{name}/unmount | Unmount a container +[**LibpodUnpauseContainer**](ContainersApi.md#LibpodUnpauseContainer) | **Post** /libpod/containers/{name}/unpause | Unpause Container +[**LibpodWaitContainer**](ContainersApi.md#LibpodWaitContainer) | **Post** /libpod/containers/{name}/wait | Wait on a container + +# **ChangesContainer** +> ChangesContainer(ctx, name) +Report on changes to container's filesystem; adds, deletes or modifications. + +Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or id of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/plain, text/html + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodAttachContainer** +> LibpodAttachContainer(ctx, name, optional) +Attach to a container + +Hijacks the connection to forward the container's standard streams to the client. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodAttachContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodAttachContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **detachKeys** | **optional.String**| keys to use for detaching from the container | + **logs** | **optional.Bool**| Stream all logs from the container across the connection. Happens before streaming attach (if requested). At least one of logs or stream must be set | + **stream** | **optional.Bool**| Attach to the container. If unset, and logs is set, only the container's logs will be sent. At least one of stream or logs must be set | [default to true] + **stdout** | **optional.Bool**| Attach to container STDOUT | + **stderr** | **optional.Bool**| Attach to container STDERR | + **stdin** | **optional.Bool**| Attach to container STDIN | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodCheckpointContainer** +> LibpodCheckpointContainer(ctx, name, optional) +Checkpoint a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodCheckpointContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodCheckpointContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **keep** | **optional.Bool**| keep all temporary checkpoint files | + **leaveRunning** | **optional.Bool**| leave the container running after writing checkpoint to disk | + **tcpEstablished** | **optional.Bool**| checkpoint a container with established TCP connections | + **export** | **optional.Bool**| export the checkpoint image to a tar.gz | + **ignoreRootFS** | **optional.Bool**| do not include root file-system changes when exporting | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodCommitContainer** +> LibpodCommitContainer(ctx, container, optional) +Commit + +Create a new image from a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **container** | **string**| the name or ID of a container | + **optional** | ***ContainersApiLibpodCommitContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodCommitContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **repo** | **optional.String**| the repository name for the created image | + **tag** | **optional.String**| tag name for the created image | + **comment** | **optional.String**| commit message | + **author** | **optional.String**| author of the image | + **pause** | **optional.Bool**| pause the container before committing it | + **changes** | [**optional.Interface of []string**](string.md)| instructions to apply while committing in Dockerfile format (i.e. \"CMD=/bin/foo\") | + **format** | **optional.String**| format of the image manifest and metadata (default \"oci\") | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodContainerExists** +> LibpodContainerExists(ctx, name) +Check if container exists + +Quick way to determine if a container exists by name or ID + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodCreateContainer** +> InlineResponse201 LibpodCreateContainer(ctx, optional) +Create a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersApiLibpodCreateContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodCreateContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of SpecGenerator**](SpecGenerator.md)| attributes for creating a container | + +### Return type + +[**InlineResponse201**](inline_response_201.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodExportContainer** +> LibpodExportContainer(ctx, name) +Export a container + +Export the contents of a container as a tarball. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGenerateKube** +> *os.File LibpodGenerateKube(ctx, name_, optional) +Generate a Kubernetes YAML file. + +Generate Kubernetes YAML based on a pod or container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name or ID of the container or pod. | + **optional** | ***ContainersApiLibpodGenerateKubeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodGenerateKubeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **service** | **optional.Bool**| Generate YAML for a Kubernetes service object. | [default to false] + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGenerateSystemd** +> map[string]string LibpodGenerateSystemd(ctx, name_, optional) +Generate Systemd Units + +Generate Systemd Units based on a pod or container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name or ID of the container or pod. | + **optional** | ***ContainersApiLibpodGenerateSystemdOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodGenerateSystemdOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **useName** | **optional.Bool**| Use container/pod names instead of IDs. | [default to false] + **new** | **optional.Bool**| Create a new container instead of starting an existing one. | [default to false] + **time** | **optional.Int32**| Stop timeout override. | [default to 10] + **restartPolicy** | **optional.String**| Systemd restart-policy. | [default to on-failure] + **containerPrefix** | **optional.String**| Systemd unit name prefix for containers. | [default to container] + **podPrefix** | **optional.String**| Systemd unit name prefix for pods. | [default to pod] + **separator** | **optional.String**| Systemd unit name separator between name/id and prefix. | [default to -] + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGetContainer** +> InlineResponse2008 LibpodGetContainer(ctx, name, optional) +Inspect container + +Return low-level information about a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodGetContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodGetContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **size** | **optional.Bool**| display filesystem usage | + +### Return type + +[**InlineResponse2008**](inline_response_200_8.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodInitContainer** +> LibpodInitContainer(ctx, name) +Initialize a container + +Performs all tasks necessary for initializing the container but does not start the container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodKillContainer** +> LibpodKillContainer(ctx, name, optional) +Kill container + +send a signal to a container, defaults to killing the container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodKillContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodKillContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **signal** | **optional.String**| signal to be sent to container, either by integer or SIG_ name | [default to TERM] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodListContainers** +> []ListContainer LibpodListContainers(ctx, optional) +List containers + +Returns a list of containers + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersApiLibpodListContainersOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodListContainersOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **optional.Bool**| Return all containers. By default, only running containers are shown | [default to false] + **limit** | **optional.Int32**| Return this number of most recently created containers, including non-running ones. | + **pod** | **optional.Bool**| Ignored. Previously included details on pod name and ID that are currently included by default. | [default to false] + **size** | **optional.Bool**| Return the size of container as fields SizeRw and SizeRootFs. | [default to false] + **sync** | **optional.Bool**| Sync container state with OCI runtime | [default to false] + **filters** | **optional.String**| A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters: - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`) - `before`=(`<container id>` or `<container name>`) - `expose`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`) - `exited=<int>` containers with exit code of `<int>` - `health`=(`starting`, `healthy`, `unhealthy` or `none`) - `id=<ID>` a container's ID - `is-task`=(`true` or `false`) - `label`=(`key` or `\"key=value\"`) of an container label - `name=<name>` a container's name - `network`=(`<network id>` or `<network name>`) - `publish`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`) - `since`=(`<container id>` or `<container name>`) - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`) - `volume`=(`<volume name>` or `<mount point destination>`) | + +### Return type + +[**[]ListContainer**](ListContainer.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodLogsFromContainer** +> LibpodLogsFromContainer(ctx, name, optional) +Get container logs + +Get stdout and stderr logs from a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodLogsFromContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodLogsFromContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **follow** | **optional.Bool**| Keep connection after returning logs. | + **stdout** | **optional.Bool**| Return logs from stdout | + **stderr** | **optional.Bool**| Return logs from stderr | + **since** | **optional.String**| Only return logs since this time, as a UNIX timestamp | + **until** | **optional.String**| Only return logs before this time, as a UNIX timestamp | + **timestamps** | **optional.Bool**| Add timestamps to every log line | [default to false] + **tail** | **optional.String**| Only return this number of log lines from the end of the logs | [default to all] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodMountContainer** +> string LibpodMountContainer(ctx, name) +Mount a container + +Mount a container to the filesystem + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPauseContainer** +> LibpodPauseContainer(ctx, name) +Pause a container + +Use the cgroups freezer to suspend all processes in a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPlayKube** +> PlayKubeReport LibpodPlayKube(ctx, optional) +Play a Kubernetes YAML file. + +Create and run pods based on a Kubernetes YAML file (pod or service kind). + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersApiLibpodPlayKubeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodPlayKubeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of string**](string.md)| Kubernetes YAML file. | + **network** | **optional.**| Connect the pod to this network. | + **tlsVerify** | **optional.**| Require HTTPS and verify signatures when contacting registries. | [default to true] + +### Return type + +[**PlayKubeReport**](PlayKubeReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPruneContainers** +> []LibpodContainersPruneReport LibpodPruneContainers(ctx, optional) +Delete stopped containers + +Remove containers not in use + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersApiLibpodPruneContainersOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodPruneContainersOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=<timestamp>` Prune containers created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune containers with (or without, in case `label!=...` is used) the specified labels. | + +### Return type + +[**[]LibpodContainersPruneReport**](LibpodContainersPruneReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPutArchive** +> LibpodPutArchive(ctx, name, path, optional) +Copy files into a container + +Copy a tar archive of files into a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| container name or id | + **path** | **string**| Path to a directory in the container to extract | + **optional** | ***ContainersApiLibpodPutArchiveOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodPutArchiveOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**optional.Interface of string**](string.md)| tarfile of files to copy into the container | + **pause** | **optional.**| pause the container while copying (defaults to true) | [default to true] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRemoveContainer** +> LibpodRemoveContainer(ctx, name, optional) +Delete container + +Delete container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodRemoveContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodRemoveContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| need something | + **v** | **optional.Bool**| delete volumes | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodResizeContainer** +> interface{} LibpodResizeContainer(ctx, name, optional) +Resize a container's TTY + +Resize the terminal attached to a container (for use with Attach). + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodResizeContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodResizeContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **h** | **optional.Int32**| Height to set for the terminal, in characters | + **w** | **optional.Int32**| Width to set for the terminal, in characters | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRestartContainer** +> LibpodRestartContainer(ctx, name, optional) +Restart a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodRestartContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodRestartContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **t** | **optional.Int32**| timeout before sending kill signal to container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRestoreContainer** +> LibpodRestoreContainer(ctx, name, optional) +Restore a container + +Restore a container from a checkpoint. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or id of the container | + **optional** | ***ContainersApiLibpodRestoreContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodRestoreContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **name** | **optional.String**| the name of the container when restored from a tar. can only be used with import | + **keep** | **optional.Bool**| keep all temporary checkpoint files | + **leaveRunning** | **optional.Bool**| leave the container running after writing checkpoint to disk | + **tcpEstablished** | **optional.Bool**| checkpoint a container with established TCP connections | + **import_** | **optional.Bool**| import the restore from a checkpoint tar.gz | + **ignoreRootFS** | **optional.Bool**| do not include root file-system changes when exporting | + **ignoreStaticIP** | **optional.Bool**| ignore IP address if set statically | + **ignoreStaticMAC** | **optional.Bool**| ignore MAC address if set statically | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRunHealthCheck** +> InlineResponse2007 LibpodRunHealthCheck(ctx, name_) +Run a container's healthcheck + +Execute the defined healthcheck and return information about the results + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[**InlineResponse2007**](inline_response_200_7.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodShowMountedContainers** +> map[string]string LibpodShowMountedContainers(ctx, ) +Show mounted containers + +Lists all mounted containers mount points + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodStartContainer** +> LibpodStartContainer(ctx, name, optional) +Start a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodStartContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodStartContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **detachKeys** | **optional.String**| Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _. | [default to ctrl-p,ctrl-q] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodStatsContainer** +> LibpodStatsContainer(ctx, name, optional) +Get stats for a container + +DEPRECATED. This endpoint will be removed with the next major release. Please use /libpod/containers/stats instead. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodStatsContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodStatsContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **stream** | **optional.Bool**| Stream the output | [default to true] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodStatsContainers** +> LibpodStatsContainers(ctx, optional) +Get stats for one or more containers + +Return a live stream of resource usage statistics of one or more container. If no container is specified, the statistics of all containers are returned. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersApiLibpodStatsContainersOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodStatsContainersOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **containers** | [**optional.Interface of []string**](string.md)| names or IDs of containers | + **stream** | **optional.Bool**| Stream the output | [default to true] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodStopContainer** +> LibpodStopContainer(ctx, name, optional) +Stop a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodStopContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodStopContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **t** | **optional.Int32**| number of seconds to wait before killing container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodTopContainer** +> InlineResponse2002 LibpodTopContainer(ctx, name, optional) +List processes + +List processes running inside a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| Name of container to query for processes (As of version 1.xx) | + **optional** | ***ContainersApiLibpodTopContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodTopContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **stream** | **optional.Bool**| Stream the output | [default to true] + **psArgs** | **optional.String**| arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. | [default to -ef] + +### Return type + +[**InlineResponse2002**](inline_response_200_2.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodUnmountContainer** +> LibpodUnmountContainer(ctx, name) +Unmount a container + +Unmount a container from the filesystem + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodUnpauseContainer** +> LibpodUnpauseContainer(ctx, name) +Unpause Container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodWaitContainer** +> InlineResponse2003 LibpodWaitContainer(ctx, name, optional) +Wait on a container + +Wait on a container to met a given condition + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersApiLibpodWaitContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersApiLibpodWaitContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **condition** | **optional.String**| wait until container is to a given condition. default is stopped. valid conditions are: - configured - created - exited - paused - running - stopped | + +### Return type + +[**InlineResponse2003**](inline_response_200_3.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainersCompatApi.md b/pkg/swagger/docs/ContainersCompatApi.md new file mode 100644 index 0000000..e7ede44 --- /dev/null +++ b/pkg/swagger/docs/ContainersCompatApi.md @@ -0,0 +1,821 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AttachContainer**](ContainersCompatApi.md#AttachContainer) | **Post** /containers/{name}/attach | Attach to a container +[**ChangesContainer**](ContainersCompatApi.md#ChangesContainer) | **Get** /libpod/containers/{name}/changes | Report on changes to container's filesystem; adds, deletes or modifications. +[**CommitContainer**](ContainersCompatApi.md#CommitContainer) | **Post** /commit | New Image +[**CreateContainer**](ContainersCompatApi.md#CreateContainer) | **Post** /containers/create | Create a container +[**ExportContainer**](ContainersCompatApi.md#ExportContainer) | **Get** /containers/{name}/export | Export a container +[**GetArchive**](ContainersCompatApi.md#GetArchive) | **Get** /containers/{name}/archive | Get files from a container +[**GetContainer**](ContainersCompatApi.md#GetContainer) | **Get** /containers/{name}/json | Inspect container +[**KillContainer**](ContainersCompatApi.md#KillContainer) | **Post** /containers/{name}/kill | Kill container +[**LibpodGetArchive**](ContainersCompatApi.md#LibpodGetArchive) | **Get** /libpod/containers/{name}/copy | Copy files from a container +[**ListContainers**](ContainersCompatApi.md#ListContainers) | **Get** /containers/json | List containers +[**LogsFromContainer**](ContainersCompatApi.md#LogsFromContainer) | **Get** /containers/{name}/logs | Get container logs +[**PauseContainer**](ContainersCompatApi.md#PauseContainer) | **Post** /containers/{name}/pause | Pause container +[**PruneContainers**](ContainersCompatApi.md#PruneContainers) | **Post** /containers/prune | Delete stopped containers +[**PutArchive**](ContainersCompatApi.md#PutArchive) | **Put** /containers/{name}/archive | Put files into a container +[**RemoveContainer**](ContainersCompatApi.md#RemoveContainer) | **Delete** /containers/{name} | Remove a container +[**ResizeContainer**](ContainersCompatApi.md#ResizeContainer) | **Post** /containers/{name}/resize | Resize a container's TTY +[**RestartContainer**](ContainersCompatApi.md#RestartContainer) | **Post** /containers/{name}/restart | Restart container +[**StartContainer**](ContainersCompatApi.md#StartContainer) | **Post** /containers/{name}/start | Start a container +[**StatsContainer**](ContainersCompatApi.md#StatsContainer) | **Get** /containers/{name}/stats | Get stats for a container +[**StopContainer**](ContainersCompatApi.md#StopContainer) | **Post** /containers/{name}/stop | Stop a container +[**TopContainer**](ContainersCompatApi.md#TopContainer) | **Get** /containers/{name}/top | List processes running inside a container +[**UnpauseContainer**](ContainersCompatApi.md#UnpauseContainer) | **Post** /containers/{name}/unpause | Unpause container +[**WaitContainer**](ContainersCompatApi.md#WaitContainer) | **Post** /containers/{name}/wait | Wait on a container + +# **AttachContainer** +> AttachContainer(ctx, name, optional) +Attach to a container + +Hijacks the connection to forward the container's standard streams to the client. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiAttachContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiAttachContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **detachKeys** | **optional.String**| keys to use for detaching from the container | + **logs** | **optional.Bool**| Stream all logs from the container across the connection. Happens before streaming attach (if requested). At least one of logs or stream must be set | + **stream** | **optional.Bool**| Attach to the container. If unset, and logs is set, only the container's logs will be sent. At least one of stream or logs must be set | [default to true] + **stdout** | **optional.Bool**| Attach to container STDOUT | + **stderr** | **optional.Bool**| Attach to container STDERR | + **stdin** | **optional.Bool**| Attach to container STDIN | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ChangesContainer** +> ChangesContainer(ctx, name) +Report on changes to container's filesystem; adds, deletes or modifications. + +Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or id of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/plain, text/html + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CommitContainer** +> CommitContainer(ctx, optional) +New Image + +Create a new image from a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersCompatApiCommitContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiCommitContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **container** | **optional.String**| the name or ID of a container | + **repo** | **optional.String**| the repository name for the created image | + **tag** | **optional.String**| tag name for the created image | + **comment** | **optional.String**| commit message | + **author** | **optional.String**| author of the image | + **pause** | **optional.Bool**| pause the container before committing it | + **changes** | **optional.String**| instructions to apply while committing in Dockerfile format | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CreateContainer** +> InlineResponse201 CreateContainer(ctx, optional) +Create a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersCompatApiCreateContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiCreateContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **optional.String**| container name | + +### Return type + +[**InlineResponse201**](inline_response_201.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ExportContainer** +> ExportContainer(ctx, name) +Export a container + +Export the contents of a container as a tarball. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetArchive** +> *os.File GetArchive(ctx, name, path) +Get files from a container + +Get a tar archive of files from a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| container name or id | + **path** | **string**| Path to a directory in the container to extract | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetContainer** +> InlineResponse2001 GetContainer(ctx, name, optional) +Inspect container + +Return low-level information about a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or id of the container | + **optional** | ***ContainersCompatApiGetContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiGetContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **size** | **optional.Bool**| include the size of the container | [default to false] + +### Return type + +[**InlineResponse2001**](inline_response_200_1.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **KillContainer** +> KillContainer(ctx, name, optional) +Kill container + +Signal to send to the container as an integer or string (e.g. SIGINT) + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiKillContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiKillContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **signal** | **optional.String**| signal to be sent to container | [default to SIGKILL] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGetArchive** +> *os.File LibpodGetArchive(ctx, name, path) +Copy files from a container + +Copy a tar archive of files from a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| container name or id | + **path** | **string**| Path to a directory in the container to extract | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ListContainers** +> interface{} ListContainers(ctx, optional) +List containers + +Returns a list of containers + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersCompatApiListContainersOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiListContainersOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **optional.Bool**| Return all containers. By default, only running containers are shown | [default to false] + **limit** | **optional.Int32**| Return this number of most recently created containers, including non-running ones. | + **size** | **optional.Bool**| Return the size of container as fields SizeRw and SizeRootFs. | [default to false] + **filters** | **optional.String**| Returns a list of containers. - ancestor=(<image-name>[:<tag>], <image id>, or <image@digest>) - before=(<container id> or <container name>) - expose=(<port>[/<proto>]|<startport-endport>/[<proto>]) - exited=<int> containers with exit code of <int> - health=(starting|healthy|unhealthy|none) - id=<ID> a container's ID - is-task=(true|false) - label=key or label=\"key=value\" of a container label - name=<name> a container's name - network=(<network id> or <network name>) - publish=(<port>[/<proto>]|<startport-endport>/[<proto>]) - since=(<container id> or <container name>) - status=(created|restarting|running|removing|paused|exited|dead) - volume=(<volume name> or <mount point destination>) | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LogsFromContainer** +> LogsFromContainer(ctx, name, optional) +Get container logs + +Get stdout and stderr logs from a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiLogsFromContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiLogsFromContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **follow** | **optional.Bool**| Keep connection after returning logs. | + **stdout** | **optional.Bool**| Return logs from stdout | + **stderr** | **optional.Bool**| Return logs from stderr | + **since** | **optional.String**| Only return logs since this time, as a UNIX timestamp | + **until** | **optional.String**| Only return logs before this time, as a UNIX timestamp | + **timestamps** | **optional.Bool**| Add timestamps to every log line | [default to false] + **tail** | **optional.String**| Only return this number of log lines from the end of the logs | [default to all] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PauseContainer** +> PauseContainer(ctx, name) +Pause container + +Use the cgroups freezer to suspend all processes in a container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PruneContainers** +> []ContainersPruneReport PruneContainers(ctx, optional) +Delete stopped containers + +Remove containers not in use + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ContainersCompatApiPruneContainersOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiPruneContainersOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=<timestamp>` Prune containers created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune containers with (or without, in case `label!=...` is used) the specified labels. | + +### Return type + +[**[]ContainersPruneReport**](ContainersPruneReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PutArchive** +> PutArchive(ctx, name, path, optional) +Put files into a container + +Put a tar archive of files into a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| container name or id | + **path** | **string**| Path to a directory in the container to extract | + **optional** | ***ContainersCompatApiPutArchiveOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiPutArchiveOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**optional.Interface of string**](string.md)| tarfile of files to copy into the container | + **noOverwriteDirNonDir** | **optional.**| if unpacking the given content would cause an existing directory to be replaced with a non-directory and vice versa (1 or true) | + **copyUIDGID** | **optional.**| copy UID/GID maps to the dest file or di (1 or true) | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RemoveContainer** +> RemoveContainer(ctx, name, optional) +Remove a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiRemoveContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiRemoveContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| If the container is running, kill it before removing it. | [default to false] + **v** | **optional.Bool**| Remove the volumes associated with the container. | [default to false] + **link** | **optional.Bool**| not supported | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResizeContainer** +> interface{} ResizeContainer(ctx, name, optional) +Resize a container's TTY + +Resize the terminal attached to a container (for use with Attach). + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiResizeContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiResizeContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **h** | **optional.Int32**| Height to set for the terminal, in characters | + **w** | **optional.Int32**| Width to set for the terminal, in characters | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RestartContainer** +> RestartContainer(ctx, name, optional) +Restart container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiRestartContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiRestartContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **t** | **optional.Int32**| timeout before sending kill signal to container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StartContainer** +> StartContainer(ctx, name, optional) +Start a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiStartContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiStartContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **detachKeys** | **optional.String**| Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _. | [default to ctrl-p,ctrl-q] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StatsContainer** +> StatsContainer(ctx, name, optional) +Get stats for a container + +This returns a live stream of a container’s resource usage statistics. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiStatsContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiStatsContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **stream** | **optional.Bool**| Stream the output | [default to true] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StopContainer** +> StopContainer(ctx, name, optional) +Stop a container + +Stop a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiStopContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiStopContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **t** | **optional.Int32**| number of seconds to wait before killing container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **TopContainer** +> InlineResponse2002 TopContainer(ctx, name, optional) +List processes running inside a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiTopContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiTopContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **psArgs** | **optional.String**| arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. | + +### Return type + +[**InlineResponse2002**](inline_response_200_2.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **UnpauseContainer** +> UnpauseContainer(ctx, name) +Unpause container + +Resume a paused container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WaitContainer** +> InlineResponse2003 WaitContainer(ctx, name, optional) +Wait on a container + +Block until a container stops or given condition is met. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the container | + **optional** | ***ContainersCompatApiWaitContainerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ContainersCompatApiWaitContainerOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **condition** | **optional.String**| wait until container is to a given condition. default is stopped. valid conditions are: - configured - created - exited - paused - running - stopped | + +### Return type + +[**InlineResponse2003**](inline_response_200_3.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ContainersPruneReport.md b/pkg/swagger/docs/ContainersPruneReport.md new file mode 100644 index 0000000..868f24b --- /dev/null +++ b/pkg/swagger/docs/ContainersPruneReport.md @@ -0,0 +1,10 @@ +# ContainersPruneReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainersDeleted** | **[]string** | | [optional] [default to null] +**SpaceReclaimed** | **int32** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/CreateConfig.md b/pkg/swagger/docs/CreateConfig.md new file mode 100644 index 0000000..5b2446a --- /dev/null +++ b/pkg/swagger/docs/CreateConfig.md @@ -0,0 +1,58 @@ +# CreateConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | **map[string]string** | | [optional] [default to null] +**Args** | **[]string** | | [optional] [default to null] +**BuiltinImgVolumes** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**Cgroup** | [***CgroupConfig**](CgroupConfig.md) | | [optional] [default to null] +**CidFile** | **string** | | [optional] [default to null] +**Command** | **[]string** | | [optional] [default to null] +**ConmonPidFile** | **string** | | [optional] [default to null] +**Detach** | **bool** | | [optional] [default to null] +**Devices** | **[]string** | | [optional] [default to null] +**Entrypoint** | **[]string** | | [optional] [default to null] +**Env** | **map[string]string** | | [optional] [default to null] +**HealthCheck** | [***Schema2HealthConfig**](Schema2HealthConfig.md) | | [optional] [default to null] +**Image** | **string** | | [optional] [default to null] +**ImageID** | **string** | | [optional] [default to null] +**ImageVolumeType** | **string** | | [optional] [default to null] +**Init** | **bool** | | [optional] [default to null] +**InitPath** | **string** | | [optional] [default to null] +**Interactive** | **bool** | | [optional] [default to null] +**Ipc** | [***IpcConfig**](IpcConfig.md) | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**LogDriver** | **string** | | [optional] [default to null] +**LogDriverOpt** | **[]string** | | [optional] [default to null] +**Mounts** | [**[]Mount**](Mount.md) | | [optional] [default to null] +**MountsFlag** | **[]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**NamedVolumes** | [**[]ContainerNamedVolume**](ContainerNamedVolume.md) | | [optional] [default to null] +**Network** | [***NetworkConfig**](NetworkConfig.md) | | [optional] [default to null] +**Pid** | [***PidConfig**](PidConfig.md) | | [optional] [default to null] +**Pod** | **string** | | [optional] [default to null] +**PodmanPath** | **string** | | [optional] [default to null] +**Quiet** | **bool** | | [optional] [default to null] +**RawImageName** | **string** | | [optional] [default to null] +**Resources** | [***CreateResourceConfig**](CreateResourceConfig.md) | | [optional] [default to null] +**RestartPolicy** | **string** | | [optional] [default to null] +**Rm** | **bool** | | [optional] [default to null] +**Rmi** | **bool** | | [optional] [default to null] +**Rootfs** | **string** | | [optional] [default to null] +**Security** | [***SecurityConfig**](SecurityConfig.md) | | [optional] [default to null] +**StopSignal** | **int64** | | [optional] [default to null] +**StopTimeout** | **int32** | | [optional] [default to null] +**Syslog** | **bool** | | [optional] [default to null] +**Systemd** | **bool** | | [optional] [default to null] +**Tmpfs** | **[]string** | | [optional] [default to null] +**Tty** | **bool** | | [optional] [default to null] +**User** | [***UserConfig**](UserConfig.md) | | [optional] [default to null] +**UserCommand** | **[]string** | | [optional] [default to null] +**Uts** | [***UtsConfig**](UtsConfig.md) | | [optional] [default to null] +**Volumes** | **[]string** | | [optional] [default to null] +**VolumesFrom** | **[]string** | | [optional] [default to null] +**WorkDir** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/CreateResourceConfig.md b/pkg/swagger/docs/CreateResourceConfig.md new file mode 100644 index 0000000..7a0037e --- /dev/null +++ b/pkg/swagger/docs/CreateResourceConfig.md @@ -0,0 +1,34 @@ +# CreateResourceConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlkioWeight** | **int32** | | [optional] [default to null] +**BlkioWeightDevice** | **[]string** | | [optional] [default to null] +**CPUPeriod** | **int32** | | [optional] [default to null] +**CPUQuota** | **int64** | | [optional] [default to null] +**CPURtPeriod** | **int32** | | [optional] [default to null] +**CPURtRuntime** | **int64** | | [optional] [default to null] +**CPUShares** | **int32** | | [optional] [default to null] +**CPUs** | **float64** | | [optional] [default to null] +**CPUsetCPUs** | **string** | | [optional] [default to null] +**CPUsetMems** | **string** | | [optional] [default to null] +**CgroupConf** | **map[string]string** | | [optional] [default to null] +**DeviceCgroupRules** | **[]string** | | [optional] [default to null] +**DeviceReadBps** | **[]string** | | [optional] [default to null] +**DeviceReadIOps** | **[]string** | | [optional] [default to null] +**DeviceWriteBps** | **[]string** | | [optional] [default to null] +**DeviceWriteIOps** | **[]string** | | [optional] [default to null] +**DisableOomKiller** | **bool** | | [optional] [default to null] +**KernelMemory** | **int64** | | [optional] [default to null] +**Memory** | **int64** | | [optional] [default to null] +**MemoryReservation** | **int64** | | [optional] [default to null] +**MemorySwap** | **int64** | | [optional] [default to null] +**MemorySwappiness** | **int64** | | [optional] [default to null] +**OomScoreAdj** | **int64** | | [optional] [default to null] +**PidsLimit** | **int64** | | [optional] [default to null] +**ShmSize** | **int64** | | [optional] [default to null] +**Ulimit** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Data.md b/pkg/swagger/docs/Data.md new file mode 100644 index 0000000..6d1d66d --- /dev/null +++ b/pkg/swagger/docs/Data.md @@ -0,0 +1,10 @@ +# Data + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/DeviceMapping.md b/pkg/swagger/docs/DeviceMapping.md new file mode 100644 index 0000000..70e78de --- /dev/null +++ b/pkg/swagger/docs/DeviceMapping.md @@ -0,0 +1,11 @@ +# DeviceMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupPermissions** | **string** | | [optional] [default to null] +**PathInContainer** | **string** | | [optional] [default to null] +**PathOnHost** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/DeviceRequest.md b/pkg/swagger/docs/DeviceRequest.md new file mode 100644 index 0000000..ed06da9 --- /dev/null +++ b/pkg/swagger/docs/DeviceRequest.md @@ -0,0 +1,13 @@ +# DeviceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capabilities** | [**[][]string**](array.md) | | [optional] [default to null] +**Count** | **int64** | | [optional] [default to null] +**DeviceIDs** | **[]string** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/DistributionInfo.md b/pkg/swagger/docs/DistributionInfo.md new file mode 100644 index 0000000..cb1cb18 --- /dev/null +++ b/pkg/swagger/docs/DistributionInfo.md @@ -0,0 +1,10 @@ +# DistributionInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Distribution** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/DockerVolumeCreate.md b/pkg/swagger/docs/DockerVolumeCreate.md new file mode 100644 index 0000000..e54c7f2 --- /dev/null +++ b/pkg/swagger/docs/DockerVolumeCreate.md @@ -0,0 +1,8 @@ +# DockerVolumeCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/EndpointIpamConfig.md b/pkg/swagger/docs/EndpointIpamConfig.md new file mode 100644 index 0000000..e0ee12d --- /dev/null +++ b/pkg/swagger/docs/EndpointIpamConfig.md @@ -0,0 +1,11 @@ +# EndpointIpamConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IPv4Address** | **string** | | [optional] [default to null] +**IPv6Address** | **string** | | [optional] [default to null] +**LinkLocalIPs** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/EndpointResource.md b/pkg/swagger/docs/EndpointResource.md new file mode 100644 index 0000000..94696e5 --- /dev/null +++ b/pkg/swagger/docs/EndpointResource.md @@ -0,0 +1,13 @@ +# EndpointResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointID** | **string** | | [optional] [default to null] +**IPv4Address** | **string** | | [optional] [default to null] +**IPv6Address** | **string** | | [optional] [default to null] +**MacAddress** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/EndpointSettings.md b/pkg/swagger/docs/EndpointSettings.md new file mode 100644 index 0000000..f633c3e --- /dev/null +++ b/pkg/swagger/docs/EndpointSettings.md @@ -0,0 +1,21 @@ +# EndpointSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Aliases** | **[]string** | | [optional] [default to null] +**DriverOpts** | **map[string]string** | | [optional] [default to null] +**EndpointID** | **string** | | [optional] [default to null] +**Gateway** | **string** | | [optional] [default to null] +**GlobalIPv6Address** | **string** | | [optional] [default to null] +**GlobalIPv6PrefixLen** | **int64** | | [optional] [default to null] +**IPAMConfig** | [***EndpointIpamConfig**](EndpointIPAMConfig.md) | | [optional] [default to null] +**IPAddress** | **string** | | [optional] [default to null] +**IPPrefixLen** | **int64** | | [optional] [default to null] +**IPv6Gateway** | **string** | | [optional] [default to null] +**Links** | **[]string** | | [optional] [default to null] +**MacAddress** | **string** | | [optional] [default to null] +**NetworkID** | **string** | Operational data | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ErrorResponse.md b/pkg/swagger/docs/ErrorResponse.md new file mode 100644 index 0000000..5e10e70 --- /dev/null +++ b/pkg/swagger/docs/ErrorResponse.md @@ -0,0 +1,9 @@ +# ErrorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | The error message. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ExecApi.md b/pkg/swagger/docs/ExecApi.md new file mode 100644 index 0000000..e453094 --- /dev/null +++ b/pkg/swagger/docs/ExecApi.md @@ -0,0 +1,148 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LibpodCreateExec**](ExecApi.md#LibpodCreateExec) | **Post** /libpod/containers/{name}/exec | Create an exec instance +[**LibpodInspectExec**](ExecApi.md#LibpodInspectExec) | **Get** /libpod/exec/{id}/json | Inspect an exec instance +[**LibpodResizeExec**](ExecApi.md#LibpodResizeExec) | **Post** /libpod/exec/{id}/resize | Resize an exec instance +[**LibpodStartExec**](ExecApi.md#LibpodStartExec) | **Post** /libpod/exec/{id}/start | Start an exec instance + +# **LibpodCreateExec** +> LibpodCreateExec(ctx, name, optional) +Create an exec instance + +Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| name of container | + **optional** | ***ExecApiLibpodCreateExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecApiLibpodCreateExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**optional.Interface of Body4**](Body4.md)| Attributes for create | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodInspectExec** +> LibpodInspectExec(ctx, id) +Inspect an exec instance + +Return low-level information about an exec instance. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodResizeExec** +> LibpodResizeExec(ctx, id, optional) +Resize an exec instance + +Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + **optional** | ***ExecApiLibpodResizeExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecApiLibpodResizeExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **h** | **optional.Int32**| Height of the TTY session in characters | + **w** | **optional.Int32**| Width of the TTY session in characters | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodStartExec** +> LibpodStartExec(ctx, id, optional) +Start an exec instance + +Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + **optional** | ***ExecApiLibpodStartExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecApiLibpodStartExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**optional.Interface of Body6**](Body6.md)| Attributes for start | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ExecCompatApi.md b/pkg/swagger/docs/ExecCompatApi.md new file mode 100644 index 0000000..e9e0f34 --- /dev/null +++ b/pkg/swagger/docs/ExecCompatApi.md @@ -0,0 +1,148 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateExec**](ExecCompatApi.md#CreateExec) | **Post** /containers/{name}/exec | Create an exec instance +[**InspectExec**](ExecCompatApi.md#InspectExec) | **Get** /exec/{id}/json | Inspect an exec instance +[**ResizeExec**](ExecCompatApi.md#ResizeExec) | **Post** /exec/{id}/resize | Resize an exec instance +[**StartExec**](ExecCompatApi.md#StartExec) | **Post** /exec/{id}/start | Start an exec instance + +# **CreateExec** +> CreateExec(ctx, name, optional) +Create an exec instance + +Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| name of container | + **optional** | ***ExecCompatApiCreateExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecCompatApiCreateExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**optional.Interface of Body**](Body.md)| Attributes for create | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **InspectExec** +> InspectExec(ctx, id) +Inspect an exec instance + +Return low-level information about an exec instance. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResizeExec** +> ResizeExec(ctx, id, optional) +Resize an exec instance + +Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + **optional** | ***ExecCompatApiResizeExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecCompatApiResizeExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **h** | **optional.Int32**| Height of the TTY session in characters | + **w** | **optional.Int32**| Width of the TTY session in characters | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StartExec** +> StartExec(ctx, id, optional) +Start an exec instance + +Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **id** | **string**| Exec instance ID | + **optional** | ***ExecCompatApiStartExecOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ExecCompatApiStartExecOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**optional.Interface of Body2**](Body2.md)| Attributes for start | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/GraphDriverData.md b/pkg/swagger/docs/GraphDriverData.md new file mode 100644 index 0000000..d7bcf5c --- /dev/null +++ b/pkg/swagger/docs/GraphDriverData.md @@ -0,0 +1,10 @@ +# GraphDriverData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **map[string]string** | data | [default to null] +**Name** | **string** | name | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Health.md b/pkg/swagger/docs/Health.md new file mode 100644 index 0000000..4071f99 --- /dev/null +++ b/pkg/swagger/docs/Health.md @@ -0,0 +1,11 @@ +# Health + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailingStreak** | **int64** | | [optional] [default to null] +**Log** | [**[]HealthcheckResult**](HealthcheckResult.md) | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HealthCheckLog.md b/pkg/swagger/docs/HealthCheckLog.md new file mode 100644 index 0000000..2f6f521 --- /dev/null +++ b/pkg/swagger/docs/HealthCheckLog.md @@ -0,0 +1,12 @@ +# HealthCheckLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **string** | End time as a string | [optional] [default to null] +**ExitCode** | **int64** | Exitcode is 0 or 1 | [optional] [default to null] +**Output** | **string** | Output is the stdout/stderr from the healthcheck command | [optional] [default to null] +**Start** | **string** | Start time as string | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HealthCheckResults.md b/pkg/swagger/docs/HealthCheckResults.md new file mode 100644 index 0000000..0d92376 --- /dev/null +++ b/pkg/swagger/docs/HealthCheckResults.md @@ -0,0 +1,11 @@ +# HealthCheckResults + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailingStreak** | **int64** | FailingStreak is the number of consecutive failed healthchecks | [optional] [default to null] +**Log** | [**[]HealthCheckLog**](HealthCheckLog.md) | Log describes healthcheck attempts and results | [optional] [default to null] +**Status** | **string** | Status healthy or unhealthy | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HealthConfig.md b/pkg/swagger/docs/HealthConfig.md new file mode 100644 index 0000000..e96efb9 --- /dev/null +++ b/pkg/swagger/docs/HealthConfig.md @@ -0,0 +1,13 @@ +# HealthConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interval** | **int64** | | [optional] [default to null] +**Retries** | **int64** | Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit. | [optional] [default to null] +**StartPeriod** | **int64** | | [optional] [default to null] +**Test** | **[]string** | Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell | [optional] [default to null] +**Timeout** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HealthcheckResult.md b/pkg/swagger/docs/HealthcheckResult.md new file mode 100644 index 0000000..888dcef --- /dev/null +++ b/pkg/swagger/docs/HealthcheckResult.md @@ -0,0 +1,12 @@ +# HealthcheckResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**ExitCode** | **int64** | | [optional] [default to null] +**Output** | **string** | | [optional] [default to null] +**Start** | [**time.Time**](time.Time.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/History.md b/pkg/swagger/docs/History.md new file mode 100644 index 0000000..7d1130a --- /dev/null +++ b/pkg/swagger/docs/History.md @@ -0,0 +1,13 @@ +# History + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Author** | **string** | Author is the author of the build point. | [optional] [default to null] +**Comment** | **string** | Comment is a custom message set when creating the layer. | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | Created is the combined date and time at which the layer was created, formatted as defined by RFC 3339, section 5.6. | [optional] [default to null] +**CreatedBy** | **string** | CreatedBy is the command which created the layer. | [optional] [default to null] +**EmptyLayer** | **bool** | EmptyLayer is used to mark if the history item created a filesystem diff. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HistoryResponseItem.md b/pkg/swagger/docs/HistoryResponseItem.md new file mode 100644 index 0000000..457cc65 --- /dev/null +++ b/pkg/swagger/docs/HistoryResponseItem.md @@ -0,0 +1,14 @@ +# HistoryResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | **string** | comment | [default to null] +**Created** | **int64** | created | [default to null] +**CreatedBy** | **string** | created by | [default to null] +**Id** | **string** | Id | [default to null] +**Size** | **int64** | size | [default to null] +**Tags** | **[]string** | tags | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HostConfig.md b/pkg/swagger/docs/HostConfig.md new file mode 100644 index 0000000..1a46731 --- /dev/null +++ b/pkg/swagger/docs/HostConfig.md @@ -0,0 +1,78 @@ +# HostConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoRemove** | **bool** | | [optional] [default to null] +**Binds** | **[]string** | Applicable to all platforms | [optional] [default to null] +**BlkioDeviceReadBps** | [**[]ThrottleDevice**](ThrottleDevice.md) | | [optional] [default to null] +**BlkioDeviceReadIOps** | [**[]ThrottleDevice**](ThrottleDevice.md) | | [optional] [default to null] +**BlkioDeviceWriteBps** | [**[]ThrottleDevice**](ThrottleDevice.md) | | [optional] [default to null] +**BlkioDeviceWriteIOps** | [**[]ThrottleDevice**](ThrottleDevice.md) | | [optional] [default to null] +**BlkioWeight** | **int32** | | [optional] [default to null] +**BlkioWeightDevice** | [**[]WeightDevice**](WeightDevice.md) | | [optional] [default to null] +**CapAdd** | [***[]string**](array.md) | | [optional] [default to null] +**CapDrop** | [***[]string**](array.md) | | [optional] [default to null] +**Cgroup** | **string** | | [optional] [default to null] +**CgroupParent** | **string** | Applicable to UNIX platforms | [optional] [default to null] +**CgroupnsMode** | **string** | | [optional] [default to null] +**ConsoleSize** | **[]int32** | Applicable to Windows | [optional] [default to null] +**ContainerIDFile** | **string** | | [optional] [default to null] +**CpuCount** | **int64** | Applicable to Windows | [optional] [default to null] +**CpuPercent** | **int64** | | [optional] [default to null] +**CpuPeriod** | **int64** | | [optional] [default to null] +**CpuQuota** | **int64** | | [optional] [default to null] +**CpuRealtimePeriod** | **int64** | | [optional] [default to null] +**CpuRealtimeRuntime** | **int64** | | [optional] [default to null] +**CpuShares** | **int64** | Applicable to all platforms | [optional] [default to null] +**CpusetCpus** | **string** | | [optional] [default to null] +**CpusetMems** | **string** | | [optional] [default to null] +**DeviceCgroupRules** | **[]string** | | [optional] [default to null] +**DeviceRequests** | [**[]DeviceRequest**](DeviceRequest.md) | | [optional] [default to null] +**Devices** | [**[]DeviceMapping**](DeviceMapping.md) | | [optional] [default to null] +**Dns** | **[]string** | | [optional] [default to null] +**DnsOptions** | **[]string** | | [optional] [default to null] +**DnsSearch** | **[]string** | | [optional] [default to null] +**ExtraHosts** | **[]string** | | [optional] [default to null] +**GroupAdd** | **[]string** | | [optional] [default to null] +**IOMaximumBandwidth** | **int32** | | [optional] [default to null] +**IOMaximumIOps** | **int32** | | [optional] [default to null] +**Init** | **bool** | Run a custom init inside the container, if null, use the daemon's configured settings | [optional] [default to null] +**IpcMode** | **string** | | [optional] [default to null] +**Isolation** | **string** | | [optional] [default to null] +**KernelMemory** | **int64** | | [optional] [default to null] +**KernelMemoryTCP** | **int64** | | [optional] [default to null] +**Links** | **[]string** | | [optional] [default to null] +**LogConfig** | [***LogConfig**](LogConfig.md) | | [optional] [default to null] +**MaskedPaths** | **[]string** | MaskedPaths is the list of paths to be masked inside the container (this overrides the default set of paths) | [optional] [default to null] +**Memory** | **int64** | | [optional] [default to null] +**MemoryReservation** | **int64** | | [optional] [default to null] +**MemorySwap** | **int64** | | [optional] [default to null] +**MemorySwappiness** | **int64** | | [optional] [default to null] +**Mounts** | [**[]Mount**](Mount.md) | Mounts specs used by the container | [optional] [default to null] +**NanoCpus** | **int64** | | [optional] [default to null] +**NetworkMode** | **string** | | [optional] [default to null] +**OomKillDisable** | **bool** | | [optional] [default to null] +**OomScoreAdj** | **int64** | | [optional] [default to null] +**PidMode** | **string** | | [optional] [default to null] +**PidsLimit** | **int64** | | [optional] [default to null] +**PortBindings** | [***map[string][]PortBinding**](map.md) | | [optional] [default to null] +**Privileged** | **bool** | | [optional] [default to null] +**PublishAllPorts** | **bool** | | [optional] [default to null] +**ReadonlyPaths** | **[]string** | ReadonlyPaths is the list of paths to be set as read-only inside the container (this overrides the default set of paths) | [optional] [default to null] +**ReadonlyRootfs** | **bool** | | [optional] [default to null] +**RestartPolicy** | [***RestartPolicy**](RestartPolicy.md) | | [optional] [default to null] +**Runtime** | **string** | | [optional] [default to null] +**SecurityOpt** | **[]string** | | [optional] [default to null] +**ShmSize** | **int64** | | [optional] [default to null] +**StorageOpt** | **map[string]string** | | [optional] [default to null] +**Sysctls** | **map[string]string** | | [optional] [default to null] +**Tmpfs** | **map[string]string** | | [optional] [default to null] +**UTSMode** | **string** | | [optional] [default to null] +**Ulimits** | [**[]Ulimit**](Ulimit.md) | | [optional] [default to null] +**UsernsMode** | **string** | | [optional] [default to null] +**VolumeDriver** | **string** | | [optional] [default to null] +**VolumesFrom** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/HostInfo.md b/pkg/swagger/docs/HostInfo.md new file mode 100644 index 0000000..29f53f7 --- /dev/null +++ b/pkg/swagger/docs/HostInfo.md @@ -0,0 +1,31 @@ +# HostInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Arch** | **string** | | [optional] [default to null] +**BuildahVersion** | **string** | | [optional] [default to null] +**CgroupManager** | **string** | | [optional] [default to null] +**CgroupVersion** | **string** | | [optional] [default to null] +**Conmon** | [***ConmonInfo**](ConmonInfo.md) | | [optional] [default to null] +**Cpus** | **int64** | | [optional] [default to null] +**Distribution** | [***DistributionInfo**](DistributionInfo.md) | | [optional] [default to null] +**EventLogger** | **string** | | [optional] [default to null] +**Hostname** | **string** | | [optional] [default to null] +**IdMappings** | [***IdMappings**](IDMappings.md) | | [optional] [default to null] +**Kernel** | **string** | | [optional] [default to null] +**Linkmode** | **string** | | [optional] [default to null] +**MemFree** | **int64** | | [optional] [default to null] +**MemTotal** | **int64** | | [optional] [default to null] +**OciRuntime** | [***OciRuntimeInfo**](OCIRuntimeInfo.md) | | [optional] [default to null] +**Os** | **string** | | [optional] [default to null] +**RemoteSocket** | [***RemoteSocket**](RemoteSocket.md) | | [optional] [default to null] +**Rootless** | **bool** | | [optional] [default to null] +**RuntimeInfo** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**Slirp4netns** | [***SlirpInfo**](SlirpInfo.md) | | [optional] [default to null] +**SwapFree** | **int64** | | [optional] [default to null] +**SwapTotal** | **int64** | | [optional] [default to null] +**Uptime** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IdMap.md b/pkg/swagger/docs/IdMap.md new file mode 100644 index 0000000..29fc3c3 --- /dev/null +++ b/pkg/swagger/docs/IdMap.md @@ -0,0 +1,11 @@ +# IdMap + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | **int64** | | [optional] [default to null] +**HostId** | **int64** | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IdMappingOptions.md b/pkg/swagger/docs/IdMappingOptions.md new file mode 100644 index 0000000..0ed09ce --- /dev/null +++ b/pkg/swagger/docs/IdMappingOptions.md @@ -0,0 +1,14 @@ +# IdMappingOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoUserNs** | **bool** | | [optional] [default to null] +**AutoUserNsOpts** | [***AutoUserNsOptions**](AutoUserNsOptions.md) | | [optional] [default to null] +**GIDMap** | [**[]IdMap**](IDMap.md) | | [optional] [default to null] +**HostGIDMapping** | **bool** | | [optional] [default to null] +**HostUIDMapping** | **bool** | UIDMap and GIDMap are used for setting up a layer's root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer's mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used. | [optional] [default to null] +**UIDMap** | [**[]IdMap**](IDMap.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IdMappings.md b/pkg/swagger/docs/IdMappings.md new file mode 100644 index 0000000..e201223 --- /dev/null +++ b/pkg/swagger/docs/IdMappings.md @@ -0,0 +1,10 @@ +# IdMappings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Gidmap** | [**[]IdMap**](IDMap.md) | | [optional] [default to null] +**Uidmap** | [**[]IdMap**](IDMap.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IdResponse.md b/pkg/swagger/docs/IdResponse.md new file mode 100644 index 0000000..c4b300b --- /dev/null +++ b/pkg/swagger/docs/IdResponse.md @@ -0,0 +1,9 @@ +# IdResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the newly created object. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageConfig.md b/pkg/swagger/docs/ImageConfig.md new file mode 100644 index 0000000..6ca25ec --- /dev/null +++ b/pkg/swagger/docs/ImageConfig.md @@ -0,0 +1,17 @@ +# ImageConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cmd** | **[]string** | Cmd defines the default arguments to the entrypoint of the container. | [optional] [default to null] +**Entrypoint** | **[]string** | Entrypoint defines a list of arguments to use as the command to execute when the container starts. | [optional] [default to null] +**Env** | **[]string** | Env is a list of environment variables to be used in a container. | [optional] [default to null] +**ExposedPorts** | [**map[string]interface{}**](interface{}.md) | ExposedPorts a set of ports to expose from a container running this image. | [optional] [default to null] +**Labels** | **map[string]string** | Labels contains arbitrary metadata for the container. | [optional] [default to null] +**StopSignal** | **string** | StopSignal contains the system call signal that will be sent to the container to exit. | [optional] [default to null] +**User** | **string** | User defines the username or UID which the process in the container should run as. | [optional] [default to null] +**Volumes** | [**map[string]interface{}**](interface{}.md) | Volumes is a set of directories describing where the process is likely write data specific to a container instance. | [optional] [default to null] +**WorkingDir** | **string** | WorkingDir sets the current working directory of the entrypoint process in the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageDeleteResponse.md b/pkg/swagger/docs/ImageDeleteResponse.md new file mode 100644 index 0000000..4588cd5 --- /dev/null +++ b/pkg/swagger/docs/ImageDeleteResponse.md @@ -0,0 +1,10 @@ +# ImageDeleteResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deleted** | **string** | | [optional] [default to null] +**Untagged** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageDeleteResponseItem.md b/pkg/swagger/docs/ImageDeleteResponseItem.md new file mode 100644 index 0000000..1305b70 --- /dev/null +++ b/pkg/swagger/docs/ImageDeleteResponseItem.md @@ -0,0 +1,10 @@ +# ImageDeleteResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deleted** | **string** | The image ID of an image that was deleted | [optional] [default to null] +**Untagged** | **string** | The image ID of an image that was untagged | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageImportReport.md b/pkg/swagger/docs/ImageImportReport.md new file mode 100644 index 0000000..fd23013 --- /dev/null +++ b/pkg/swagger/docs/ImageImportReport.md @@ -0,0 +1,9 @@ +# ImageImportReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageLayer.md b/pkg/swagger/docs/ImageLayer.md new file mode 100644 index 0000000..3c1c2b2 --- /dev/null +++ b/pkg/swagger/docs/ImageLayer.md @@ -0,0 +1,8 @@ +# ImageLayer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageLoadReport.md b/pkg/swagger/docs/ImageLoadReport.md new file mode 100644 index 0000000..bbf80a2 --- /dev/null +++ b/pkg/swagger/docs/ImageLoadReport.md @@ -0,0 +1,9 @@ +# ImageLoadReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Names** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageMetadata.md b/pkg/swagger/docs/ImageMetadata.md new file mode 100644 index 0000000..09e21d8 --- /dev/null +++ b/pkg/swagger/docs/ImageMetadata.md @@ -0,0 +1,9 @@ +# ImageMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTagTime** | [**time.Time**](time.Time.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageStore.md b/pkg/swagger/docs/ImageStore.md new file mode 100644 index 0000000..ef7ad11 --- /dev/null +++ b/pkg/swagger/docs/ImageStore.md @@ -0,0 +1,9 @@ +# ImageStore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Number** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImageSummary.md b/pkg/swagger/docs/ImageSummary.md new file mode 100644 index 0000000..8f28424 --- /dev/null +++ b/pkg/swagger/docs/ImageSummary.md @@ -0,0 +1,18 @@ +# ImageSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Containers** | **int64** | containers | [default to null] +**Created** | **int64** | created | [default to null] +**Id** | **string** | Id | [default to null] +**Labels** | **map[string]string** | labels | [default to null] +**ParentId** | **string** | parent Id | [default to null] +**RepoDigests** | **[]string** | repo digests | [default to null] +**RepoTags** | **[]string** | repo tags | [default to null] +**SharedSize** | **int64** | shared size | [default to null] +**Size** | **int64** | size | [default to null] +**VirtualSize** | **int64** | virtual size | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImagesApi.md b/pkg/swagger/docs/ImagesApi.md new file mode 100644 index 0000000..d89d7ad --- /dev/null +++ b/pkg/swagger/docs/ImagesApi.md @@ -0,0 +1,710 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LibpodBuildImage**](ImagesApi.md#LibpodBuildImage) | **Post** /libpod/build | Create image +[**LibpodChangesImages**](ImagesApi.md#LibpodChangesImages) | **Get** /libpod/images/{name}/changes | Report on changes to images's filesystem; adds, deletes or modifications. +[**LibpodExportImage**](ImagesApi.md#LibpodExportImage) | **Get** /libpod/images/{name:.*}/get | Export an image +[**LibpodExportImages**](ImagesApi.md#LibpodExportImages) | **Get** /libpod/images/export | Export multiple images +[**LibpodImageExists**](ImagesApi.md#LibpodImageExists) | **Get** /libpod/images/{name:.*}/exists | Image exists +[**LibpodImageHistory**](ImagesApi.md#LibpodImageHistory) | **Get** /libpod/images/{name:.*}/history | History of an image +[**LibpodImageTree**](ImagesApi.md#LibpodImageTree) | **Get** /libpod/images/{name:.*}/tree | Image tree +[**LibpodImagesImport**](ImagesApi.md#LibpodImagesImport) | **Post** /libpod/images/import | Import image +[**LibpodImagesLoad**](ImagesApi.md#LibpodImagesLoad) | **Post** /libpod/images/load | Load image +[**LibpodImagesPull**](ImagesApi.md#LibpodImagesPull) | **Post** /libpod/images/pull | Pull images +[**LibpodImagesRemove**](ImagesApi.md#LibpodImagesRemove) | **Delete** /libpod/images/remove | Remove one or more images from the storage. +[**LibpodInspectImage**](ImagesApi.md#LibpodInspectImage) | **Get** /libpod/images/{name:.*}/json | Inspect an image +[**LibpodListImages**](ImagesApi.md#LibpodListImages) | **Get** /libpod/images/json | List Images +[**LibpodPruneImages**](ImagesApi.md#LibpodPruneImages) | **Post** /libpod/images/prune | Prune unused images +[**LibpodPushImage**](ImagesApi.md#LibpodPushImage) | **Post** /libpod/images/{name:.*}/push | Push Image +[**LibpodRemoveImage**](ImagesApi.md#LibpodRemoveImage) | **Delete** /libpod/images/{name:.*} | Remove an image from the local storage. +[**LibpodSearchImages**](ImagesApi.md#LibpodSearchImages) | **Get** /libpod/images/search | Search images +[**LibpodTagImage**](ImagesApi.md#LibpodTagImage) | **Post** /libpod/images/{name:.*}/tag | Tag an image +[**LibpodUntagImage**](ImagesApi.md#LibpodUntagImage) | **Post** /libpod/images/{name:.*}/untag | Untag an image + +# **LibpodBuildImage** +> InlineResponse200 LibpodBuildImage(ctx, optional) +Create image + +Build an image from the given Dockerfile(s) + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodBuildImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodBuildImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dockerfile** | **optional.String**| Path within the build context to the `Dockerfile`. This is ignored if remote is specified and points to an external `Dockerfile`. | [default to Dockerfile] + **t** | **optional.String**| A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default latest value is assumed. You can provide several t parameters. | [default to latest] + **extrahosts** | **optional.String**| TBD Extra hosts to add to /etc/hosts (As of version 1.xx) | + **remote** | **optional.String**| A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball. (As of version 1.xx) | + **q** | **optional.Bool**| Suppress verbose build output | [default to false] + **nocache** | **optional.Bool**| Do not use the cache when building the image (As of version 1.xx) | [default to false] + **cachefrom** | **optional.String**| JSON array of images used to build cache resolution (As of version 1.xx) | + **pull** | **optional.Bool**| Attempt to pull the image even if an older image exists locally (As of version 1.xx) | [default to false] + **rm** | **optional.Bool**| Remove intermediate containers after a successful build (As of version 1.xx) | [default to true] + **forcerm** | **optional.Bool**| Always remove intermediate containers, even upon failure (As of version 1.xx) | [default to false] + **memory** | **optional.Int32**| Memory is the upper limit (in bytes) on how much memory running containers can use (As of version 1.xx) | + **memswap** | **optional.Int32**| MemorySwap limits the amount of memory and swap together (As of version 1.xx) | + **cpushares** | **optional.Int32**| CPUShares (relative weight (As of version 1.xx) | + **cpusetcpus** | **optional.String**| CPUSetCPUs in which to allow execution (0-3, 0,1) (As of version 1.xx) | + **cpuperiod** | **optional.Int32**| CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period (As of version 1.xx) | + **cpuquota** | **optional.Int32**| CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota (As of version 1.xx) | + **buildargs** | **optional.String**| JSON map of string pairs denoting build-time variables. For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `[\"Foo\":\"bar\"]`. For example, buildargs={\"Foo\":\"bar\"}. Note(s): * This should not be used to pass secrets. * The value of buildargs should be URI component encoded before being passed to the API. (As of version 1.xx) | + **shmsize** | **optional.Int32**| ShmSize is the \"size\" value to use when mounting an shmfs on the container's /dev/shm directory. Default is 64MB (As of version 1.xx) | [default to 67108864] + **squash** | **optional.Bool**| Silently ignored. Squash the resulting images layers into a single layer (As of version 1.xx) | [default to false] + **labels** | **optional.String**| JSON map of key, value pairs to set as labels on the new image (As of version 1.xx) | + **networkmode** | **optional.String**| Sets the networking mode for the run commands during build. Supported standard values are: * `bridge` limited to containers within a single host, port mapping required for external access * `host` no isolation between host and containers on this network * `none` disable all networking for this container * container:<nameOrID> share networking with given container ---All other values are assumed to be a custom network's name (As of version 1.xx) | [default to bridge] + **platform** | **optional.String**| Platform format os[/arch[/variant]] (As of version 1.xx) | + **target** | **optional.String**| Target build stage (As of version 1.xx) | + **outputs** | **optional.String**| output configuration TBD (As of version 1.xx) | + **httpproxy** | **optional.Bool**| Inject http proxy environment variables into container (As of version 2.0.0) | + +### Return type + +[**InlineResponse200**](inline_response_200.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodChangesImages** +> LibpodChangesImages(ctx, name) +Report on changes to images's filesystem; adds, deletes or modifications. + +Returns which files in a images's filesystem have been added, deleted, or modified. The Kind of modification can be one of: 0: Modified 1: Added 2: Deleted + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or id of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/plain, text/html + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodExportImage** +> *os.File LibpodExportImage(ctx, name_, optional) +Export an image + +Export an image + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + **optional** | ***ImagesApiLibpodExportImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodExportImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **format** | **optional.String**| format for exported image | + **compress** | **optional.Bool**| use compression on image | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodExportImages** +> *os.File LibpodExportImages(ctx, optional) +Export multiple images + +Export multiple images into a single object. Only `docker-archive` is currently supported. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodExportImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodExportImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **optional.String**| format for exported image (only docker-archive is supported) | + **references** | [**optional.Interface of []string**](string.md)| references to images to export | + **compress** | **optional.Bool**| use compression on image | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImageExists** +> LibpodImageExists(ctx, name_) +Image exists + +Check if image exists in local store + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImageHistory** +> InlineResponse2004 LibpodImageHistory(ctx, name_) +History of an image + +Return parent layers of an image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[**InlineResponse2004**](inline_response_200_4.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImageTree** +> InlineResponse20010 LibpodImageTree(ctx, name_, optional) +Image tree + +Retrieve the image tree for the provided image name or ID + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + **optional** | ***ImagesApiLibpodImageTreeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodImageTreeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **whatrequires** | **optional.Bool**| show all child images and layers of the specified image | + +### Return type + +[**InlineResponse20010**](inline_response_200_10.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImagesImport** +> ImageImportReport LibpodImagesImport(ctx, body, optional) +Import image + +Import a previously exported tarball as an image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **body** | [**Body8**](Body8.md)| | + **optional** | ***ImagesApiLibpodImagesImportOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodImagesImportOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **changes** | [**optional.Interface of []string**](string.md)| Apply the following possible instructions to the created image: CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR. JSON encoded string | + **message** | **optional.**| Set commit message for imported image | + **reference** | **optional.**| Optional Name[:TAG] for the image | + **url** | **optional.**| Load image from the specified URL | + +### Return type + +[**ImageImportReport**](ImageImportReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImagesLoad** +> ImageLoadReport LibpodImagesLoad(ctx, body, optional) +Load image + +Load an image (oci-archive or docker-archive) stream. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **body** | [**Body10**](Body10.md)| | + **optional** | ***ImagesApiLibpodImagesLoadOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodImagesLoadOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **reference** | **optional.**| Optional Name[:TAG] for the image | + +### Return type + +[**ImageLoadReport**](ImageLoadReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImagesPull** +> LibpodImagesPullReport LibpodImagesPull(ctx, optional) +Pull images + +Pull one or more images from a container registry. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodImagesPullOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodImagesPullOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reference** | **optional.String**| Mandatory reference to the image (e.g., quay.io/image/name:tag) | + **credentials** | **optional.String**| username:password for the registry | + **overrideArch** | **optional.String**| Pull image for the specified architecture. | + **overrideOS** | **optional.String**| Pull image for the specified operating system. | + **overrideVariant** | **optional.String**| Pull image for the specified variant. | + **tlsVerify** | **optional.Bool**| Require TLS verification. | [default to true] + **allTags** | **optional.Bool**| Pull all tagged images in the repository. | + +### Return type + +[**LibpodImagesPullReport**](LibpodImagesPullReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodImagesRemove** +> LibpodImagesRemoveReport LibpodImagesRemove(ctx, optional) +Remove one or more images from the storage. + +Remove one or more images from the storage. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodImagesRemoveOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodImagesRemoveOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **images** | [**optional.Interface of []string**](string.md)| Images IDs or names to remove. | + **all** | **optional.Bool**| Remove all images. | [default to true] + **force** | **optional.Bool**| Force image removal (including containers using the images). | + +### Return type + +[**LibpodImagesRemoveReport**](LibpodImagesRemoveReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodInspectImage** +> InlineResponse2009 LibpodInspectImage(ctx, name_) +Inspect an image + +Obtain low-level information about an image + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[**InlineResponse2009**](inline_response_200_9.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodListImages** +> []ImageSummary LibpodListImages(ctx, optional) +List Images + +Returns a list of images on the server + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodListImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodListImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **optional.Bool**| Show all images. Only images from a final layer (no children) are shown by default. | [default to false] + **filters** | **optional.String**| A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) - `dangling=true` - `label=key` or `label=\"key=value\"` of an image label - `reference`=(`<image-name>[:<tag>]`) - `id`=(`<image-id>`) - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) | + +### Return type + +[**[]ImageSummary**](ImageSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPruneImages** +> []ImageDeleteResponse LibpodPruneImages(ctx, optional) +Prune unused images + +Remove images that are not being used by a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodPruneImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodPruneImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. | + +### Return type + +[**[]ImageDeleteResponse**](ImageDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPushImage** +> *os.File LibpodPushImage(ctx, name_, optional) +Push Image + +Push an image to a container registry + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name of image to push. | + **optional** | ***ImagesApiLibpodPushImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodPushImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **destination** | **optional.String**| Allows for pushing the image to a different destintation than the image refers to. | + **tlsVerify** | **optional.Bool**| Require TLS verification. | [default to true] + **xRegistryAuth** | **optional.String**| A base64-encoded auth configuration. | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRemoveImage** +> []ImageDeleteResponse LibpodRemoveImage(ctx, name_, optional) +Remove an image from the local storage. + +Remove an image from the local storage. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| name or ID of image to remove | + **optional** | ***ImagesApiLibpodRemoveImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodRemoveImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| remove the image even if used by containers or has other tags | + +### Return type + +[**[]ImageDeleteResponse**](ImageDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodSearchImages** +> InlineResponse2006 LibpodSearchImages(ctx, optional) +Search images + +Search registries for images + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesApiLibpodSearchImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodSearchImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **term** | **optional.String**| term to search | + **limit** | **optional.Int32**| maximum number of results | + **noTrunc** | **optional.Bool**| do not truncate any of the result strings | + **filters** | **optional.String**| A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-automated=(true|false)` - `is-official=(true|false)` - `stars=<number>` Matches images that has at least 'number' stars. | + +### Return type + +[**InlineResponse2006**](inline_response_200_6.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodTagImage** +> LibpodTagImage(ctx, name_, optional) +Tag an image + +Tag an image so that it becomes part of a repository. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + **optional** | ***ImagesApiLibpodTagImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodTagImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **repo** | **optional.String**| the repository to tag in | + **tag** | **optional.String**| the name of the new tag | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodUntagImage** +> LibpodUntagImage(ctx, name_, optional) +Untag an image + +Untag an image. If not repo and tag are specified, all tags are removed from the image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + **optional** | ***ImagesApiLibpodUntagImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesApiLibpodUntagImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **repo** | **optional.String**| the repository to untag | + **tag** | **optional.String**| the name of the tag to untag | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ImagesCompatApi.md b/pkg/swagger/docs/ImagesCompatApi.md new file mode 100644 index 0000000..237376e --- /dev/null +++ b/pkg/swagger/docs/ImagesCompatApi.md @@ -0,0 +1,450 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**BuildImage**](ImagesCompatApi.md#BuildImage) | **Post** /build | Create image +[**CreateImage**](ImagesCompatApi.md#CreateImage) | **Post** /images/create | Create an image +[**ExportImage**](ImagesCompatApi.md#ExportImage) | **Get** /images/{name:.*}/get | Export an image +[**ImageHistory**](ImagesCompatApi.md#ImageHistory) | **Get** /images/{name:.*}/history | History of an image +[**ImportImage**](ImagesCompatApi.md#ImportImage) | **Post** /images/load | Import image +[**InspectImage**](ImagesCompatApi.md#InspectImage) | **Get** /images/{name:.*}/json | Inspect an image +[**ListImages**](ImagesCompatApi.md#ListImages) | **Get** /images/json | List Images +[**PruneImages**](ImagesCompatApi.md#PruneImages) | **Post** /images/prune | Prune unused images +[**PushImage**](ImagesCompatApi.md#PushImage) | **Post** /images/{name:.*}/push | Push Image +[**RemoveImage**](ImagesCompatApi.md#RemoveImage) | **Delete** /images/{name:.*} | Remove Image +[**SearchImages**](ImagesCompatApi.md#SearchImages) | **Get** /images/search | Search images +[**TagImage**](ImagesCompatApi.md#TagImage) | **Post** /images/{name:.*}/tag | Tag an image + +# **BuildImage** +> InlineResponse200 BuildImage(ctx, optional) +Create image + +Build an image from the given Dockerfile(s) + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiBuildImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiBuildImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dockerfile** | **optional.String**| Path within the build context to the `Dockerfile`. This is ignored if remote is specified and points to an external `Dockerfile`. | [default to Dockerfile] + **t** | **optional.String**| A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default latest value is assumed. You can provide several t parameters. | [default to latest] + **extrahosts** | **optional.String**| TBD Extra hosts to add to /etc/hosts (As of version 1.xx) | + **remote** | **optional.String**| A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball. (As of version 1.xx) | + **q** | **optional.Bool**| Suppress verbose build output | [default to false] + **nocache** | **optional.Bool**| Do not use the cache when building the image (As of version 1.xx) | [default to false] + **cachefrom** | **optional.String**| JSON array of images used to build cache resolution (As of version 1.xx) | + **pull** | **optional.Bool**| Attempt to pull the image even if an older image exists locally (As of version 1.xx) | [default to false] + **rm** | **optional.Bool**| Remove intermediate containers after a successful build (As of version 1.xx) | [default to true] + **forcerm** | **optional.Bool**| Always remove intermediate containers, even upon failure (As of version 1.xx) | [default to false] + **memory** | **optional.Int32**| Memory is the upper limit (in bytes) on how much memory running containers can use (As of version 1.xx) | + **memswap** | **optional.Int32**| MemorySwap limits the amount of memory and swap together (As of version 1.xx) | + **cpushares** | **optional.Int32**| CPUShares (relative weight (As of version 1.xx) | + **cpusetcpus** | **optional.String**| CPUSetCPUs in which to allow execution (0-3, 0,1) (As of version 1.xx) | + **cpuperiod** | **optional.Int32**| CPUPeriod limits the CPU CFS (Completely Fair Scheduler) period (As of version 1.xx) | + **cpuquota** | **optional.Int32**| CPUQuota limits the CPU CFS (Completely Fair Scheduler) quota (As of version 1.xx) | + **buildargs** | **optional.String**| JSON map of string pairs denoting build-time variables. For example, the build argument `Foo` with the value of `bar` would be encoded in JSON as `[\"Foo\":\"bar\"]`. For example, buildargs={\"Foo\":\"bar\"}. Note(s): * This should not be used to pass secrets. * The value of buildargs should be URI component encoded before being passed to the API. (As of version 1.xx) | + **shmsize** | **optional.Int32**| ShmSize is the \"size\" value to use when mounting an shmfs on the container's /dev/shm directory. Default is 64MB (As of version 1.xx) | [default to 67108864] + **squash** | **optional.Bool**| Silently ignored. Squash the resulting images layers into a single layer (As of version 1.xx) | [default to false] + **labels** | **optional.String**| JSON map of key, value pairs to set as labels on the new image (As of version 1.xx) | + **networkmode** | **optional.String**| Sets the networking mode for the run commands during build. Supported standard values are: * `bridge` limited to containers within a single host, port mapping required for external access * `host` no isolation between host and containers on this network * `none` disable all networking for this container * container:<nameOrID> share networking with given container ---All other values are assumed to be a custom network's name (As of version 1.xx) | [default to bridge] + **platform** | **optional.String**| Platform format os[/arch[/variant]] (As of version 1.xx) | + **target** | **optional.String**| Target build stage (As of version 1.xx) | + **outputs** | **optional.String**| output configuration TBD (As of version 1.xx) | + +### Return type + +[**InlineResponse200**](inline_response_200.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CreateImage** +> interface{} CreateImage(ctx, optional) +Create an image + +Create an image by either pulling it from a registry or importing it. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiCreateImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiCreateImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of string**](string.md)| Image content if fromSrc parameter was used | + **fromImage** | **optional.**| needs description | + **fromSrc** | **optional.**| needs description | + **tag** | **optional.**| needs description | + **xRegistryAuth** | **optional.**| A base64-encoded auth configuration. | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ExportImage** +> *os.File ExportImage(ctx, name_) +Export an image + +Export an image in tarball format + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ImageHistory** +> InlineResponse2004 ImageHistory(ctx, name_) +History of an image + +Return parent layers of an image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[**InlineResponse2004**](inline_response_200_4.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ImportImage** +> ImportImage(ctx, optional) +Import image + +Load a set of images and tags into a repository. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiImportImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiImportImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of string**](string.md)| tarball of container image | + **quiet** | **optional.**| not supported | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **InspectImage** +> InlineResponse2005 InspectImage(ctx, name_) +Inspect an image + +Return low-level information about an image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + +### Return type + +[**InlineResponse2005**](inline_response_200_5.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ListImages** +> []ImageSummary ListImages(ctx, optional) +List Images + +Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiListImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiListImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **optional.Bool**| Show all images. Only images from a final layer (no children) are shown by default. | [default to false] + **filters** | **optional.String**| A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) - `dangling=true` - `label=key` or `label=\"key=value\"` of an image label - `reference`=(`<image-name>[:<tag>]`) - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) | + **digests** | **optional.Bool**| Not supported | [default to false] + +### Return type + +[**[]ImageSummary**](ImageSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PruneImages** +> []ImageDeleteResponse PruneImages(ctx, optional) +Prune unused images + +Remove images from local storage that are not being used by a container + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiPruneImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiPruneImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. | + +### Return type + +[**[]ImageDeleteResponse**](ImageDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PushImage** +> *os.File PushImage(ctx, name_, optional) +Push Image + +Push an image to a container registry + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name of image to push. | + **optional** | ***ImagesCompatApiPushImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiPushImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **tag** | **optional.String**| The tag to associate with the image on the registry. | + **xRegistryAuth** | **optional.String**| A base64-encoded auth configuration. | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RemoveImage** +> []ImageDeleteResponse RemoveImage(ctx, name_, optional) +Remove Image + +Delete an image from local storage + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| name or ID of image to delete | + **optional** | ***ImagesCompatApiRemoveImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiRemoveImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| remove the image even if used by containers or has other tags | + **noprune** | **optional.Bool**| not supported. will be logged as an invalid parameter if enabled | + +### Return type + +[**[]ImageDeleteResponse**](ImageDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **SearchImages** +> InlineResponse2006 SearchImages(ctx, optional) +Search images + +Search registries for an image + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ImagesCompatApiSearchImagesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiSearchImagesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **term** | **optional.String**| term to search | + **limit** | **optional.Int32**| maximum number of results | + **filters** | **optional.String**| A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-automated=(true|false)` - `is-official=(true|false)` - `stars=<number>` Matches images that has at least 'number' stars. | + +### Return type + +[**InlineResponse2006**](inline_response_200_6.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **TagImage** +> TagImage(ctx, name_, optional) +Tag an image + +Tag an image so that it becomes part of a repository. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the container | + **optional** | ***ImagesCompatApiTagImageOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ImagesCompatApiTagImageOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **repo** | **optional.String**| the repository to tag in | + **tag** | **optional.String**| the name of the new tag | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Info.md b/pkg/swagger/docs/Info.md new file mode 100644 index 0000000..3508547 --- /dev/null +++ b/pkg/swagger/docs/Info.md @@ -0,0 +1,12 @@ +# Info + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | [***HostInfo**](HostInfo.md) | | [optional] [default to null] +**Registries** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**Store** | [***StoreInfo**](StoreInfo.md) | | [optional] [default to null] +**Version** | [***Version**](Version.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse200.md b/pkg/swagger/docs/InlineResponse200.md new file mode 100644 index 0000000..981ca21 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse200.md @@ -0,0 +1,9 @@ +# InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stream** | **string** | output from build process | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2001.md b/pkg/swagger/docs/InlineResponse2001.md new file mode 100644 index 0000000..db8d6ba --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2001.md @@ -0,0 +1,34 @@ +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppArmorProfile** | **string** | | [optional] [default to null] +**Args** | **[]string** | | [optional] [default to null] +**Config** | [***Config**](Config.md) | | [optional] [default to null] +**Created** | **string** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**ExecIDs** | **[]string** | | [optional] [default to null] +**GraphDriver** | [***GraphDriverData**](GraphDriverData.md) | | [optional] [default to null] +**HostConfig** | [***HostConfig**](HostConfig.md) | | [optional] [default to null] +**HostnamePath** | **string** | | [optional] [default to null] +**HostsPath** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Image** | **string** | | [optional] [default to null] +**LogPath** | **string** | | [optional] [default to null] +**MountLabel** | **string** | | [optional] [default to null] +**Mounts** | [**[]MountPoint**](MountPoint.md) | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**NetworkSettings** | [***NetworkSettings**](NetworkSettings.md) | | [optional] [default to null] +**Node** | [***ContainerNode**](ContainerNode.md) | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] +**Platform** | **string** | | [optional] [default to null] +**ProcessLabel** | **string** | | [optional] [default to null] +**ResolvConfPath** | **string** | | [optional] [default to null] +**RestartCount** | **int64** | | [optional] [default to null] +**SizeRootFs** | **int64** | | [optional] [default to null] +**SizeRw** | **int64** | | [optional] [default to null] +**State** | [***ContainerState**](ContainerState.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20010.md b/pkg/swagger/docs/InlineResponse20010.md new file mode 100644 index 0000000..50ede6a --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20010.md @@ -0,0 +1,12 @@ +# InlineResponse20010 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] +**Layers** | [**[]ImageLayer**](ImageLayer.md) | | [optional] [default to null] +**Size** | **string** | | [optional] [default to null] +**Tags** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20011.md b/pkg/swagger/docs/InlineResponse20011.md new file mode 100644 index 0000000..6bbc2e7 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20011.md @@ -0,0 +1,25 @@ +# InlineResponse20011 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupParent** | **string** | CgroupParent is the parent of the pod's CGroup. | [optional] [default to null] +**CgroupPath** | **string** | CgroupPath is the path to the pod's CGroup. | [optional] [default to null] +**Containers** | [**[]InspectPodContainerInfo**](InspectPodContainerInfo.md) | Containers gives a brief summary of all containers in the pod and their current status. | [optional] [default to null] +**CreateCgroup** | **bool** | CreateCgroup is whether this pod will create its own CGroup to group containers under. | [optional] [default to null] +**CreateCommand** | **[]string** | CreateCommand is the full command plus arguments of the process the container has been created with. | [optional] [default to null] +**CreateInfra** | **bool** | CreateInfra is whether this pod will create an infra container to share namespaces. | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | Created is the time when the pod was created. | [optional] [default to null] +**Hostname** | **string** | Hostname is the hostname that the pod will set. | [optional] [default to null] +**Id** | **string** | ID is the ID of the pod. | [optional] [default to null] +**InfraConfig** | [***InspectPodInfraConfig**](InspectPodInfraConfig.md) | | [optional] [default to null] +**InfraContainerID** | **string** | InfraContainerID is the ID of the pod's infra container, if one is present. | [optional] [default to null] +**Labels** | **map[string]string** | Labels is a set of key-value labels that have been applied to the pod. | [optional] [default to null] +**Name** | **string** | Name is the name of the pod. | [optional] [default to null] +**Namespace** | **string** | Namespace is the Libpod namespace the pod is placed in. | [optional] [default to null] +**NumContainers** | **int32** | NumContainers is the number of containers in the pod, including the infra container. | [optional] [default to null] +**SharedNamespaces** | **[]string** | SharedNamespaces contains a list of namespaces that will be shared by containers within the pod. Can only be set if CreateInfra is true. | [optional] [default to null] +**State** | **string** | State represents the current state of the pod. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20012.md b/pkg/swagger/docs/InlineResponse20012.md new file mode 100644 index 0000000..a1d75a0 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20012.md @@ -0,0 +1,11 @@ +# InlineResponse20012 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Containers** | [**[]SystemDfContainerReport**](SystemDfContainerReport.md) | | [optional] [default to null] +**Images** | [**[]SystemDfImageReport**](SystemDfImageReport.md) | | [optional] [default to null] +**Volumes** | [**[]SystemDfVolumeReport**](SystemDfVolumeReport.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20013.md b/pkg/swagger/docs/InlineResponse20013.md new file mode 100644 index 0000000..69df371 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20013.md @@ -0,0 +1,14 @@ +# InlineResponse20013 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **map[string]string** | | [optional] [default to null] +**ID** | **map[string]int64** | | [optional] [default to null] +**PodPruneReport** | [**[]PodPruneReport**](PodPruneReport.md) | | [optional] [default to null] +**Report** | [***Report**](Report.md) | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**VolumePruneReport** | [**[]VolumePruneReport**](VolumePruneReport.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20014.md b/pkg/swagger/docs/InlineResponse20014.md new file mode 100644 index 0000000..ffbff13 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20014.md @@ -0,0 +1,10 @@ +# InlineResponse20014 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Client** | [***Version**](Version.md) | | [optional] [default to null] +**Server** | [***Version**](Version.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20015.md b/pkg/swagger/docs/InlineResponse20015.md new file mode 100644 index 0000000..990fd76 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20015.md @@ -0,0 +1,19 @@ +# InlineResponse20015 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Anonymous** | **bool** | Anonymous indicates that the volume was created as an anonymous volume for a specific container, and will be be removed when any container using it is removed. | [optional] [default to null] +**CreatedAt** | [**time.Time**](time.Time.md) | CreatedAt is the date and time the volume was created at. This is not stored for older Libpod volumes; if so, it will be omitted. | [optional] [default to null] +**Driver** | **string** | Driver is the driver used to create the volume. This will be properly implemented in a future version. | [optional] [default to null] +**GID** | **int64** | GID is the GID that the volume was created with. | [optional] [default to null] +**Labels** | **map[string]string** | Labels includes the volume's configured labels, key:value pairs that can be passed during volume creation to provide information for third party tools. | [optional] [default to null] +**Mountpoint** | **string** | Mountpoint is the path on the host where the volume is mounted. | [optional] [default to null] +**Name** | **string** | Name is the name of the volume. | [optional] [default to null] +**Options** | **map[string]string** | Options is a set of options that were used when creating the volume. It is presently not used. | [optional] [default to null] +**Scope** | **string** | Scope is unused and provided solely for Docker compatibility. It is unconditionally set to \"local\". | [optional] [default to null] +**Status** | **map[string]string** | Status is presently unused and provided only for Docker compatibility. In the future it will be used to return information on the volume's current state. | [optional] [default to null] +**UID** | **int64** | UID is the UID that the volume was created with. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20016.md b/pkg/swagger/docs/InlineResponse20016.md new file mode 100644 index 0000000..2732159 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20016.md @@ -0,0 +1,20 @@ +# InlineResponse20016 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attachable** | **bool** | | [optional] [default to null] +**CheckDuplicate** | **bool** | Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. | [optional] [default to null] +**ConfigFrom** | [***ConfigReference**](ConfigReference.md) | | [optional] [default to null] +**ConfigOnly** | **bool** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**EnableIPv6** | **bool** | | [optional] [default to null] +**IPAM** | [***Ipam**](IPAM.md) | | [optional] [default to null] +**Ingress** | **bool** | | [optional] [default to null] +**Internal** | **bool** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] +**Scope** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20017.md b/pkg/swagger/docs/InlineResponse20017.md new file mode 100644 index 0000000..03dab15 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20017.md @@ -0,0 +1,9 @@ +# InlineResponse20017 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Volumes** | [**[]VolumeInfo**](VolumeInfo.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20018.md b/pkg/swagger/docs/InlineResponse20018.md new file mode 100644 index 0000000..e24afe1 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20018.md @@ -0,0 +1,17 @@ +# InlineResponse20018 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **string** | Date/Time the volume was created. | [optional] [default to null] +**Driver** | **string** | Name of the volume driver used by the volume. | [default to null] +**Labels** | **map[string]string** | User-defined key/value metadata. | [default to null] +**Mountpoint** | **string** | Mount path of the volume on the host. | [default to null] +**Name** | **string** | Name of the volume. | [default to null] +**Options** | **map[string]string** | The driver specific options used when creating the volume. | [default to null] +**Scope** | **string** | The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. | [default to null] +**Status** | [**map[string]interface{}**](interface{}.md) | Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. | [optional] [default to null] +**UsageData** | [***VolumeUsageData**](VolumeUsageData.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse20019.md b/pkg/swagger/docs/InlineResponse20019.md new file mode 100644 index 0000000..d2fff1a --- /dev/null +++ b/pkg/swagger/docs/InlineResponse20019.md @@ -0,0 +1,10 @@ +# InlineResponse20019 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SpaceReclaimed** | **int32** | | [optional] [default to null] +**VolumesDeleted** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2002.md b/pkg/swagger/docs/InlineResponse2002.md new file mode 100644 index 0000000..c898d00 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2002.md @@ -0,0 +1,10 @@ +# InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Processes** | [**[][]string**](array.md) | Each process running in the container, where each is process is an array of values corresponding to the titles. | [default to null] +**Titles** | **[]string** | The ps column titles | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2003.md b/pkg/swagger/docs/InlineResponse2003.md new file mode 100644 index 0000000..59bdcd8 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2003.md @@ -0,0 +1,10 @@ +# InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error_** | [***InlineResponse2003Error**](inline_response_200_3_Error.md) | | [optional] [default to null] +**StatusCode** | **int64** | container exit code | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2003Error.md b/pkg/swagger/docs/InlineResponse2003Error.md new file mode 100644 index 0000000..923e31b --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2003Error.md @@ -0,0 +1,9 @@ +# InlineResponse2003Error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2004.md b/pkg/swagger/docs/InlineResponse2004.md new file mode 100644 index 0000000..3d98684 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2004.md @@ -0,0 +1,14 @@ +# InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | **string** | | [optional] [default to null] +**Created** | **int64** | | [optional] [default to null] +**CreatedBy** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**Tags** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2005.md b/pkg/swagger/docs/InlineResponse2005.md new file mode 100644 index 0000000..6ad7c3a --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2005.md @@ -0,0 +1,28 @@ +# InlineResponse2005 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Architecture** | **string** | | [optional] [default to null] +**Author** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] +**Config** | [***Config**](Config.md) | | [optional] [default to null] +**Container** | **string** | | [optional] [default to null] +**ContainerConfig** | [***Config**](Config.md) | | [optional] [default to null] +**Created** | **string** | | [optional] [default to null] +**DockerVersion** | **string** | | [optional] [default to null] +**GraphDriver** | [***GraphDriverData**](GraphDriverData.md) | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Metadata** | [***ImageMetadata**](ImageMetadata.md) | | [optional] [default to null] +**Os** | **string** | | [optional] [default to null] +**OsVersion** | **string** | | [optional] [default to null] +**Parent** | **string** | | [optional] [default to null] +**RepoDigests** | **[]string** | | [optional] [default to null] +**RepoTags** | **[]string** | | [optional] [default to null] +**RootFS** | [***RootFs**](RootFS.md) | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**Variant** | **string** | | [optional] [default to null] +**VirtualSize** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2006.md b/pkg/swagger/docs/InlineResponse2006.md new file mode 100644 index 0000000..3dd0b6b --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2006.md @@ -0,0 +1,14 @@ +# InlineResponse2006 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Automated** | **string** | Automated indicates if the image was created by an automated build. | [optional] [default to null] +**Description** | **string** | Description of the image. | [optional] [default to null] +**Index** | **string** | Index is the image index (e.g., \"docker.io\" or \"quay.io\") | [optional] [default to null] +**Name** | **string** | Name is the canoncical name of the image (e.g., \"docker.io/library/alpine\"). | [optional] [default to null] +**Official** | **string** | Official indicates if it's an official image. | [optional] [default to null] +**Stars** | **int64** | Stars is the number of stars of the image. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2007.md b/pkg/swagger/docs/InlineResponse2007.md new file mode 100644 index 0000000..dea9e91 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2007.md @@ -0,0 +1,11 @@ +# InlineResponse2007 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailingStreak** | **int64** | FailingStreak is the number of consecutive failed healthchecks | [optional] [default to null] +**Log** | [**[]HealthCheckLog**](HealthCheckLog.md) | Log describes healthcheck attempts and results | [optional] [default to null] +**Status** | **string** | Status healthy or unhealthy | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2008.md b/pkg/swagger/docs/InlineResponse2008.md new file mode 100644 index 0000000..f3bff7c --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2008.md @@ -0,0 +1,46 @@ +# InlineResponse2008 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppArmorProfile** | **string** | | [optional] [default to null] +**Args** | **[]string** | | [optional] [default to null] +**BoundingCaps** | **[]string** | | [optional] [default to null] +**Config** | [***InspectContainerConfig**](InspectContainerConfig.md) | | [optional] [default to null] +**ConmonPidFile** | **string** | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Dependencies** | **[]string** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**EffectiveCaps** | **[]string** | | [optional] [default to null] +**ExecIDs** | **[]string** | | [optional] [default to null] +**ExitCommand** | **[]string** | | [optional] [default to null] +**GraphDriver** | [***Data**](Data.md) | | [optional] [default to null] +**HostConfig** | [***InspectContainerHostConfig**](InspectContainerHostConfig.md) | | [optional] [default to null] +**HostnamePath** | **string** | | [optional] [default to null] +**HostsPath** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Image** | **string** | | [optional] [default to null] +**ImageName** | **string** | | [optional] [default to null] +**IsInfra** | **bool** | | [optional] [default to null] +**LogPath** | **string** | | [optional] [default to null] +**LogTag** | **string** | | [optional] [default to null] +**MountLabel** | **string** | | [optional] [default to null] +**Mounts** | [**[]InspectMount**](InspectMount.md) | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Namespace** | **string** | | [optional] [default to null] +**NetworkSettings** | [***InspectNetworkSettings**](InspectNetworkSettings.md) | | [optional] [default to null] +**OCIConfigPath** | **string** | | [optional] [default to null] +**OCIRuntime** | **string** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] +**Pod** | **string** | | [optional] [default to null] +**ProcessLabel** | **string** | | [optional] [default to null] +**ResolvConfPath** | **string** | | [optional] [default to null] +**RestartCount** | **int32** | | [optional] [default to null] +**Rootfs** | **string** | | [optional] [default to null] +**SizeRootFs** | **int64** | | [optional] [default to null] +**SizeRw** | **int64** | | [optional] [default to null] +**State** | [***InspectContainerState**](InspectContainerState.md) | | [optional] [default to null] +**StaticDir** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse2009.md b/pkg/swagger/docs/InlineResponse2009.md new file mode 100644 index 0000000..8c8afe1 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse2009.md @@ -0,0 +1,31 @@ +# InlineResponse2009 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | **map[string]string** | | [optional] [default to null] +**Architecture** | **string** | | [optional] [default to null] +**Author** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] +**Config** | [***ImageConfig**](ImageConfig.md) | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Digest** | **string** | | [optional] [default to null] +**GraphDriver** | [***Data**](Data.md) | | [optional] [default to null] +**Healthcheck** | [***Schema2HealthConfig**](Schema2HealthConfig.md) | | [optional] [default to null] +**History** | [**[]History**](History.md) | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**ManifestType** | **string** | | [optional] [default to null] +**NamesHistory** | **[]string** | | [optional] [default to null] +**Os** | **string** | | [optional] [default to null] +**Parent** | **string** | | [optional] [default to null] +**RepoDigests** | **[]string** | | [optional] [default to null] +**RepoTags** | **[]string** | | [optional] [default to null] +**RootFS** | [***RootFs**](RootFS.md) | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**User** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] +**VirtualSize** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse201.md b/pkg/swagger/docs/InlineResponse201.md new file mode 100644 index 0000000..3235f72 --- /dev/null +++ b/pkg/swagger/docs/InlineResponse201.md @@ -0,0 +1,10 @@ +# InlineResponse201 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | ID of the container created | [optional] [default to null] +**Warnings** | **[]string** | Warnings during container creation | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InlineResponse400.md b/pkg/swagger/docs/InlineResponse400.md new file mode 100644 index 0000000..d7ba02a --- /dev/null +++ b/pkg/swagger/docs/InlineResponse400.md @@ -0,0 +1,11 @@ +# InlineResponse400 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | **string** | API root cause formatted for automated parsing | [optional] [default to null] +**Message** | **string** | human error message, formatted for a human to read | [optional] [default to null] +**Response** | **int64** | http response code | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectAdditionalNetwork.md b/pkg/swagger/docs/InspectAdditionalNetwork.md new file mode 100644 index 0000000..d8fce9d --- /dev/null +++ b/pkg/swagger/docs/InspectAdditionalNetwork.md @@ -0,0 +1,23 @@ +# InspectAdditionalNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalMACAddresses** | **[]string** | AdditionalMacAddresses is a set of additional MAC Addresses beyond the first. CNI may configure more than one interface for a single network, which can cause this. | [optional] [default to null] +**DriverOpts** | **map[string]string** | DriverOpts is presently unused and maintained exclusively for compatibility. | [optional] [default to null] +**EndpointID** | **string** | EndpointID is unused, maintained exclusively for compatibility. | [optional] [default to null] +**Gateway** | **string** | Gateway is the IP address of the gateway this network will use. | [optional] [default to null] +**GlobalIPv6Address** | **string** | GlobalIPv6Address is the global-scope IPv6 Address for this network. | [optional] [default to null] +**GlobalIPv6PrefixLen** | **int64** | GlobalIPv6PrefixLen is the length of the subnet mask of this network. | [optional] [default to null] +**IPAMConfig** | **map[string]string** | IPAMConfig is presently unused and maintained exclusively for compatibility. | [optional] [default to null] +**IPAddress** | **string** | IPAddress is the IP address for this network. | [optional] [default to null] +**IPPrefixLen** | **int64** | IPPrefixLen is the length of the subnet mask of this network. | [optional] [default to null] +**IPv6Gateway** | **string** | IPv6Gateway is the IPv6 gateway this network will use. | [optional] [default to null] +**Links** | **[]string** | Links is presently unused and maintained exclusively for compatibility. | [optional] [default to null] +**MacAddress** | **string** | MacAddress is the MAC address for the interface in this network. | [optional] [default to null] +**NetworkID** | **string** | Name of the network we're connecting to. | [optional] [default to null] +**SecondaryIPAddresses** | **[]string** | SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network. | [optional] [default to null] +**SecondaryIPv6Addresses** | **[]string** | SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this networ. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectBlkioThrottleDevice.md b/pkg/swagger/docs/InspectBlkioThrottleDevice.md new file mode 100644 index 0000000..77ef7a5 --- /dev/null +++ b/pkg/swagger/docs/InspectBlkioThrottleDevice.md @@ -0,0 +1,10 @@ +# InspectBlkioThrottleDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | Path is the path to the device this applies to. | [optional] [default to null] +**Rate** | **int32** | Rate is the maximum rate. It is in either bytes per second or iops per second, determined by where it is used - documentation will indicate which is appropriate. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectBlkioWeightDevice.md b/pkg/swagger/docs/InspectBlkioWeightDevice.md new file mode 100644 index 0000000..defc6da --- /dev/null +++ b/pkg/swagger/docs/InspectBlkioWeightDevice.md @@ -0,0 +1,10 @@ +# InspectBlkioWeightDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | Path is the path to the device this applies to. | [optional] [default to null] +**Weight** | **int32** | Weight is the relative weight the scheduler will use when scheduling I/O. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectContainerConfig.md b/pkg/swagger/docs/InspectContainerConfig.md new file mode 100644 index 0000000..9616d6f --- /dev/null +++ b/pkg/swagger/docs/InspectContainerConfig.md @@ -0,0 +1,32 @@ +# InspectContainerConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | **map[string]string** | Container annotations | [optional] [default to null] +**AttachStderr** | **bool** | Unused, at present | [optional] [default to null] +**AttachStdin** | **bool** | Unused, at present | [optional] [default to null] +**AttachStdout** | **bool** | Unused, at present | [optional] [default to null] +**Cmd** | **[]string** | Container command | [optional] [default to null] +**CreateCommand** | **[]string** | CreateCommand is the full command plus arguments of the process the container has been created with. | [optional] [default to null] +**Domainname** | **string** | Container domain name - unused at present | [optional] [default to null] +**Entrypoint** | **string** | Container entrypoint | [optional] [default to null] +**Env** | **[]string** | Container environment variables | [optional] [default to null] +**Healthcheck** | [***Schema2HealthConfig**](Schema2HealthConfig.md) | | [optional] [default to null] +**Hostname** | **string** | Container hostname | [optional] [default to null] +**Image** | **string** | Container image | [optional] [default to null] +**Labels** | **map[string]string** | Container labels | [optional] [default to null] +**OnBuild** | **string** | On-build arguments - presently unused. More of Buildah's domain. | [optional] [default to null] +**OpenStdin** | **bool** | Whether the container leaves STDIN open | [optional] [default to null] +**StdinOnce** | **bool** | Whether STDIN is only left open once. Presently not supported by Podman, unused. | [optional] [default to null] +**StopSignal** | **int32** | Container stop signal | [optional] [default to null] +**SystemdMode** | **bool** | SystemdMode is whether the container is running in systemd mode. In systemd mode, the container configuration is customized to optimize running systemd in the container. | [optional] [default to null] +**Timezone** | **string** | Timezone is the timezone inside the container. Local means it has the same timezone as the host machine | [optional] [default to null] +**Tty** | **bool** | Whether the container creates a TTY | [optional] [default to null] +**Umask** | **string** | Umask is the umask inside the container. | [optional] [default to null] +**User** | **string** | User the container was launched with | [optional] [default to null] +**Volumes** | [**map[string]interface{}**](interface{}.md) | Unused, at present. I've never seen this field populated. | [optional] [default to null] +**WorkingDir** | **string** | Container working directory | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectContainerHostConfig.md b/pkg/swagger/docs/InspectContainerHostConfig.md new file mode 100644 index 0000000..bb77b10 --- /dev/null +++ b/pkg/swagger/docs/InspectContainerHostConfig.md @@ -0,0 +1,73 @@ +# InspectContainerHostConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoRemove** | **bool** | AutoRemove is whether the container will be automatically removed on exiting. It is not handled directly within libpod and is stored in an annotation. | [optional] [default to null] +**Binds** | **[]string** | Binds contains an array of user-added mounts. Both volume mounts and named volumes are included. Tmpfs mounts are NOT included. In 'docker inspect' this is separated into 'Binds' and 'Mounts' based on how a mount was added. We do not make this distinction and do not include a Mounts field in inspect. Format: <src>:<destination>[:<comma-separated options>] | [optional] [default to null] +**BlkioDeviceReadBps** | [**[]InspectBlkioThrottleDevice**](InspectBlkioThrottleDevice.md) | BlkioDeviceReadBps is an array of I/O throttle parameters for individual device nodes. This specifically sets read rate cap in bytes per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). | [optional] [default to null] +**BlkioDeviceReadIOps** | [**[]InspectBlkioThrottleDevice**](InspectBlkioThrottleDevice.md) | BlkioDeviceReadIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the read rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). | [optional] [default to null] +**BlkioDeviceWriteBps** | [**[]InspectBlkioThrottleDevice**](InspectBlkioThrottleDevice.md) | BlkioDeviceWriteBps is an array of I/O throttle parameters for individual device nodes. this specifically sets write rate cap in bytes per second for device nodes. as with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). | [optional] [default to null] +**BlkioDeviceWriteIOps** | [**[]InspectBlkioThrottleDevice**](InspectBlkioThrottleDevice.md) | BlkioDeviceWriteIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the write rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). | [optional] [default to null] +**BlkioWeight** | **int32** | BlkioWeight indicates the I/O resources allocated to the container. It is a relative weight in the scheduler for assigning I/O time versus other CGroups. | [optional] [default to null] +**BlkioWeightDevice** | [**[]InspectBlkioWeightDevice**](InspectBlkioWeightDevice.md) | BlkioWeightDevice is an array of I/O resource priorities for individual device nodes. Unfortunately, the spec only stores the device's Major/Minor numbers and not the path, which is used here. Fortunately, the kernel provides an interface for retrieving the path of a given node by major:minor at /sys/dev/. However, the exact path in use may not be what was used in the original CLI invocation - though it is guaranteed that the device node will be the same, and using the given path will be functionally identical. | [optional] [default to null] +**CapAdd** | **[]string** | CapAdd is a list of capabilities added to the container. It is not directly stored by Libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities. | [optional] [default to null] +**CapDrop** | **[]string** | CapDrop is a list of capabilities removed from the container. It is not directly stored by libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities. | [optional] [default to null] +**Cgroup** | **string** | Cgroup contains the container's cgroup. It is presently not populated. TODO. | [optional] [default to null] +**CgroupConf** | **map[string]string** | CgroupConf is the configuration for cgroup v2. | [optional] [default to null] +**CgroupMode** | **string** | CgroupMode is the configuration of the container's cgroup namespace. Populated as follows: private - a cgroup namespace has been created host - No cgroup namespace created container:<id> - Using another container's cgroup namespace ns:<path> - A path to a cgroup namespace has been specified | [optional] [default to null] +**CgroupParent** | **string** | CgroupParent is the CGroup parent of the container. Only set if not default. | [optional] [default to null] +**Cgroups** | **string** | Cgroups contains the container's CGroup mode. Allowed values are \"default\" (container is creating CGroups) and \"disabled\" (container is not creating CGroups). This is Libpod-specific and not included in `docker inspect`. | [optional] [default to null] +**ConsoleSize** | **[]int32** | ConsoleSize is an array of 2 integers showing the size of the container's console. It is only set if the container is creating a terminal. TODO. | [optional] [default to null] +**ContainerIDFile** | **string** | ContainerIDFile is a file created during container creation to hold the ID of the created container. This is not handled within libpod and is stored in an annotation. | [optional] [default to null] +**CpuCount** | **int32** | CpuCount is Windows-only and not presently implemented. | [optional] [default to null] +**CpuPercent** | **int32** | CpuPercent is Windows-only and not presently implemented. | [optional] [default to null] +**CpuPeriod** | **int32** | CpuPeriod is the length of a CPU period in microseconds. It relates directly to CpuQuota. | [optional] [default to null] +**CpuQuota** | **int64** | CpuPeriod is the amount of time (in microseconds) that a container can use the CPU in every CpuPeriod. | [optional] [default to null] +**CpuRealtimePeriod** | **int32** | CpuRealtimePeriod is the length of time (in microseconds) of the CPU realtime period. If set to 0, no time will be allocated to realtime tasks. | [optional] [default to null] +**CpuRealtimeRuntime** | **int64** | CpuRealtimeRuntime is the length of time (in microseconds) allocated for realtime tasks within every CpuRealtimePeriod. | [optional] [default to null] +**CpuShares** | **int32** | CpuShares indicates the CPU resources allocated to the container. It is a relative weight in the scheduler for assigning CPU time versus other CGroups. | [optional] [default to null] +**CpusetCpus** | **string** | CpusetCpus is the is the set of CPUs that the container will execute on. Formatted as `0-3` or `0,2`. Default (if unset) is all CPUs. | [optional] [default to null] +**CpusetMems** | **string** | CpusetMems is the set of memory nodes the container will use. Formatted as `0-3` or `0,2`. Default (if unset) is all memory nodes. | [optional] [default to null] +**Devices** | [**[]InspectDevice**](InspectDevice.md) | Devices is a list of device nodes that will be added to the container. These are stored in the OCI spec only as type, major, minor while we display the host path. We convert this with /sys/dev, but we cannot guarantee that the host path will be identical - only that the actual device will be. | [optional] [default to null] +**DiskQuota** | **int32** | DiskQuota is the maximum amount of disk space the container may use (in bytes). Presently not populated. TODO. | [optional] [default to null] +**Dns** | **[]string** | Dns is a list of DNS nameservers that will be added to the container's resolv.conf | [optional] [default to null] +**DnsOptions** | **[]string** | DnsOptions is a list of DNS options that will be set in the container's resolv.conf | [optional] [default to null] +**DnsSearch** | **[]string** | DnsSearch is a list of DNS search domains that will be set in the container's resolv.conf | [optional] [default to null] +**ExtraHosts** | **[]string** | ExtraHosts contains hosts that will be aded to the container's etc/hosts. | [optional] [default to null] +**GroupAdd** | **[]string** | GroupAdd contains groups that the user inside the container will be added to. | [optional] [default to null] +**IOMaximumBandwidth** | **int32** | IOMaximumBandwidth is Windows-only and not presently implemented. | [optional] [default to null] +**IOMaximumIOps** | **int32** | IOMaximumIOps is Windows-only and not presently implemented. | [optional] [default to null] +**Init** | **bool** | Init indicates whether the container has an init mounted into it. | [optional] [default to null] +**IpcMode** | **string** | IpcMode represents the configuration of the container's IPC namespace. Populated as follows: \"\" (empty string) - Default, an IPC namespace will be created host - No IPC namespace created container:<id> - Using another container's IPC namespace ns:<path> - A path to an IPC namespace has been specified | [optional] [default to null] +**Isolation** | **string** | Isolation is presently unused and provided solely for Docker compatibility. | [optional] [default to null] +**KernelMemory** | **int64** | KernelMemory is the maximum amount of memory the kernel will devote to the container. | [optional] [default to null] +**Links** | **[]string** | Links is unused, and provided purely for Docker compatibility. | [optional] [default to null] +**LogConfig** | [***InspectLogConfig**](InspectLogConfig.md) | | [optional] [default to null] +**Memory** | **int64** | Memory indicates the memory resources allocated to the container. This is the limit (in bytes) of RAM the container may use. | [optional] [default to null] +**MemoryReservation** | **int64** | MemoryReservation is the reservation (soft limit) of memory available to the container. Soft limits are warnings only and can be exceeded. | [optional] [default to null] +**MemorySwap** | **int64** | MemorySwap is the total limit for all memory available to the container, including swap. 0 indicates that there is no limit to the amount of memory available. | [optional] [default to null] +**MemorySwappiness** | **int64** | MemorySwappiness is the willingness of the kernel to page container memory to swap. It is an integer from 0 to 100, with low numbers being more likely to be put into swap. 1, the default, will not set swappiness and use the system defaults. | [optional] [default to null] +**NanoCpus** | **int64** | NanoCpus indicates number of CPUs allocated to the container. It is an integer where one full CPU is indicated by 1000000000 (one billion). Thus, 2.5 CPUs (fractional portions of CPUs are allowed) would be 2500000000 (2.5 billion). In 'docker inspect' this is set exclusively of two further options in the output (CpuPeriod and CpuQuota) which are both used to implement this functionality. We can't distinguish here, so if CpuQuota is set to the default of 100000, we will set both CpuQuota, CpuPeriod, and NanoCpus. If CpuQuota is not the default, we will not set NanoCpus. | [optional] [default to null] +**NetworkMode** | **string** | NetworkMode is the configuration of the container's network namespace. Populated as follows: default - A network namespace is being created and configured via CNI none - A network namespace is being created, not configured via CNI host - No network namespace created container:<id> - Using another container's network namespace ns:<path> - A path to a network namespace has been specified | [optional] [default to null] +**OomKillDisable** | **bool** | OomKillDisable indicates whether the kernel OOM killer is disabled for the container. | [optional] [default to null] +**OomScoreAdj** | **int64** | OOMScoreAdj is an adjustment that will be made to the container's OOM score. | [optional] [default to null] +**PidMode** | **string** | PidMode represents the configuration of the container's PID namespace. Populated as follows: \"\" (empty string) - Default, a PID namespace will be created host - No PID namespace created container:<id> - Using another container's PID namespace ns:<path> - A path to a PID namespace has been specified | [optional] [default to null] +**PidsLimit** | **int64** | PidsLimit is the maximum number of PIDs what may be created within the container. 0, the default, indicates no limit. | [optional] [default to null] +**PortBindings** | [**map[string][]InspectHostPort**](array.md) | PortBindings contains the container's port bindings. It is formatted as map[string][]InspectHostPort. The string key here is formatted as <integer port number>/<protocol> and represents the container port. A single container port may be bound to multiple host ports (on different IPs). | [optional] [default to null] +**Privileged** | **bool** | Privileged indicates whether the container is running with elevated privileges. This has a very specific meaning in the Docker sense, so it's very difficult to decode from the spec and config, and so is stored as an annotation. | [optional] [default to null] +**PublishAllPorts** | **bool** | PublishAllPorts indicates whether image ports are being published. This is not directly stored in libpod and is saved as an annotation. | [optional] [default to null] +**ReadonlyRootfs** | **bool** | ReadonlyRootfs is whether the container will be mounted read-only. | [optional] [default to null] +**RestartPolicy** | [***InspectRestartPolicy**](InspectRestartPolicy.md) | | [optional] [default to null] +**Runtime** | **string** | Runtime is provided purely for Docker compatibility. It is set unconditionally to \"oci\" as Podman does not presently support non-OCI runtimes. | [optional] [default to null] +**SecurityOpt** | **[]string** | SecurityOpt is a list of security-related options that are set in the container. | [optional] [default to null] +**ShmSize** | **int64** | ShmSize is the size of the container's SHM device. | [optional] [default to null] +**Tmpfs** | **map[string]string** | Tmpfs is a list of tmpfs filesystems that will be mounted into the container. It is a map of destination path to options for the mount. | [optional] [default to null] +**UTSMode** | **string** | UTSMode represents the configuration of the container's UID namespace. Populated as follows: \"\" (empty string) - Default, a UTS namespace will be created host - no UTS namespace created container:<id> - Using another container's UTS namespace ns:<path> - A path to a UTS namespace has been specified | [optional] [default to null] +**Ulimits** | [**[]InspectUlimit**](InspectUlimit.md) | Ulimits is a set of ulimits that will be set within the container. | [optional] [default to null] +**UsernsMode** | **string** | UsernsMode represents the configuration of the container's user namespace. When running rootless, a user namespace is created outside of libpod to allow some privileged operations. This will not be reflected here. Populated as follows: \"\" (empty string) - No user namespace will be created private - The container will be run in a user namespace container:<id> - Using another container's user namespace ns:<path> - A path to a user namespace has been specified TODO Rootless has an additional 'keep-id' option, presently not reflected here. | [optional] [default to null] +**VolumeDriver** | **string** | VolumeDriver is presently unused and is retained for Docker compatibility. | [optional] [default to null] +**VolumesFrom** | **[]string** | VolumesFrom is a list of containers which this container uses volumes from. This is not handled directly within libpod and is stored in an annotation. It is formatted as an array of container names and IDs. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectContainerState.md b/pkg/swagger/docs/InspectContainerState.md new file mode 100644 index 0000000..3b883b6 --- /dev/null +++ b/pkg/swagger/docs/InspectContainerState.md @@ -0,0 +1,22 @@ +# InspectContainerState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConmonPid** | **int64** | | [optional] [default to null] +**Dead** | **bool** | | [optional] [default to null] +**Error_** | **string** | | [optional] [default to null] +**ExitCode** | **int32** | | [optional] [default to null] +**FinishedAt** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Healthcheck** | [***HealthCheckResults**](HealthCheckResults.md) | | [optional] [default to null] +**OOMKilled** | **bool** | | [optional] [default to null] +**OciVersion** | **string** | | [optional] [default to null] +**Paused** | **bool** | | [optional] [default to null] +**Pid** | **int64** | | [optional] [default to null] +**Restarting** | **bool** | | [optional] [default to null] +**Running** | **bool** | | [optional] [default to null] +**StartedAt** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectDevice.md b/pkg/swagger/docs/InspectDevice.md new file mode 100644 index 0000000..804f8b2 --- /dev/null +++ b/pkg/swagger/docs/InspectDevice.md @@ -0,0 +1,11 @@ +# InspectDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupPermissions** | **string** | CgroupPermissions is the permissions of the mounted device. Presently not populated. TODO. | [optional] [default to null] +**PathInContainer** | **string** | PathInContainer is the path of the device within the container. | [optional] [default to null] +**PathOnHost** | **string** | PathOnHost is the path of the device on the host. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectHostPort.md b/pkg/swagger/docs/InspectHostPort.md new file mode 100644 index 0000000..7dfdaa1 --- /dev/null +++ b/pkg/swagger/docs/InspectHostPort.md @@ -0,0 +1,10 @@ +# InspectHostPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostIp** | **string** | IP on the host we are bound to. \"\" if not specified (binding to all IPs). | [optional] [default to null] +**HostPort** | **string** | Port on the host we are bound to. No special formatting - just an integer stuffed into a string. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectLogConfig.md b/pkg/swagger/docs/InspectLogConfig.md new file mode 100644 index 0000000..67e47f6 --- /dev/null +++ b/pkg/swagger/docs/InspectLogConfig.md @@ -0,0 +1,10 @@ +# InspectLogConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]string** | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectMount.md b/pkg/swagger/docs/InspectMount.md new file mode 100644 index 0000000..ab0b809 --- /dev/null +++ b/pkg/swagger/docs/InspectMount.md @@ -0,0 +1,17 @@ +# InspectMount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Destination** | **string** | The destination directory for the volume. Specified as a path within the container, as it would be passed into the OCI runtime. | [optional] [default to null] +**Driver** | **string** | The driver used for the named volume. Empty for bind mounts. | [optional] [default to null] +**Mode** | **string** | Contains SELinux :z/:Z mount options. Unclear what, if anything, else goes in here. | [optional] [default to null] +**Name** | **string** | The name of the volume. Empty for bind mounts. | [optional] [default to null] +**Options** | **[]string** | All remaining mount options. Additional data, not present in the original output. | [optional] [default to null] +**Propagation** | **string** | Mount propagation for the mount. Can be empty if not specified, but is always printed - no omitempty. | [optional] [default to null] +**RW** | **bool** | Whether the volume is read-write | [optional] [default to null] +**Source** | **string** | The source directory for the volume. | [optional] [default to null] +**Type_** | **string** | Whether the mount is a volume or bind mount. Allowed values are \"volume\" and \"bind\". | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectNetworkSettings.md b/pkg/swagger/docs/InspectNetworkSettings.md new file mode 100644 index 0000000..2e4437a --- /dev/null +++ b/pkg/swagger/docs/InspectNetworkSettings.md @@ -0,0 +1,27 @@ +# InspectNetworkSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalMACAddresses** | **[]string** | AdditionalMacAddresses is a set of additional MAC Addresses beyond the first. CNI may configure more than one interface for a single network, which can cause this. | [optional] [default to null] +**Bridge** | **string** | | [optional] [default to null] +**EndpointID** | **string** | EndpointID is unused, maintained exclusively for compatibility. | [optional] [default to null] +**Gateway** | **string** | Gateway is the IP address of the gateway this network will use. | [optional] [default to null] +**GlobalIPv6Address** | **string** | GlobalIPv6Address is the global-scope IPv6 Address for this network. | [optional] [default to null] +**GlobalIPv6PrefixLen** | **int64** | GlobalIPv6PrefixLen is the length of the subnet mask of this network. | [optional] [default to null] +**HairpinMode** | **bool** | | [optional] [default to null] +**IPAddress** | **string** | IPAddress is the IP address for this network. | [optional] [default to null] +**IPPrefixLen** | **int64** | IPPrefixLen is the length of the subnet mask of this network. | [optional] [default to null] +**IPv6Gateway** | **string** | IPv6Gateway is the IPv6 gateway this network will use. | [optional] [default to null] +**LinkLocalIPv6Address** | **string** | | [optional] [default to null] +**LinkLocalIPv6PrefixLen** | **int64** | | [optional] [default to null] +**MacAddress** | **string** | MacAddress is the MAC address for the interface in this network. | [optional] [default to null] +**Networks** | [**map[string]InspectAdditionalNetwork**](InspectAdditionalNetwork.md) | Networks contains information on non-default CNI networks this container has joined. It is a map of network name to network information. | [optional] [default to null] +**Ports** | [**map[string][]InspectHostPort**](array.md) | | [optional] [default to null] +**SandboxID** | **string** | | [optional] [default to null] +**SandboxKey** | **string** | | [optional] [default to null] +**SecondaryIPAddresses** | **[]string** | SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network. | [optional] [default to null] +**SecondaryIPv6Addresses** | **[]string** | SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this networ. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectPodContainerInfo.md b/pkg/swagger/docs/InspectPodContainerInfo.md new file mode 100644 index 0000000..730df3f --- /dev/null +++ b/pkg/swagger/docs/InspectPodContainerInfo.md @@ -0,0 +1,11 @@ +# InspectPodContainerInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | ID is the ID of the container. | [optional] [default to null] +**Name** | **string** | Name is the name of the container. | [optional] [default to null] +**State** | **string** | State is the current status of the container. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectPodInfraConfig.md b/pkg/swagger/docs/InspectPodInfraConfig.md new file mode 100644 index 0000000..5e0ecf1 --- /dev/null +++ b/pkg/swagger/docs/InspectPodInfraConfig.md @@ -0,0 +1,20 @@ +# InspectPodInfraConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DNSOption** | **[]string** | DNSOption is a set of DNS options that will be used by the infra container's resolv.conf and shared with the remainder of the pod. | [optional] [default to null] +**DNSSearch** | **[]string** | DNSSearch is a set of DNS search domains that will be used by the infra container's resolv.conf and shared with the remainder of the pod. | [optional] [default to null] +**DNSServer** | **[]string** | DNSServer is a set of DNS Servers that will be used by the infra container's resolv.conf and shared with the remainder of the pod. | [optional] [default to null] +**HostAdd** | **[]string** | HostAdd adds a number of hosts to the infra container's resolv.conf which will be shared with the rest of the pod. | [optional] [default to null] +**HostNetwork** | **bool** | HostNetwork is whether the infra container (and thus the whole pod) will use the host's network and not create a network namespace. | [optional] [default to null] +**NetworkOptions** | [**map[string][]string**](array.md) | NetworkOptions are additional options for each network | [optional] [default to null] +**Networks** | **[]string** | Networks is a list of CNI networks the pod will join. | [optional] [default to null] +**NoManageHosts** | **bool** | NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own. | [optional] [default to null] +**NoManageResolvConf** | **bool** | NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own. | [optional] [default to null] +**PortBindings** | [**map[string][]InspectHostPort**](array.md) | PortBindings are ports that will be forwarded to the infra container and then shared with the pod. | [optional] [default to null] +**StaticIP** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticMAC** | [***[]int32**](array.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectRestartPolicy.md b/pkg/swagger/docs/InspectRestartPolicy.md new file mode 100644 index 0000000..c761a9a --- /dev/null +++ b/pkg/swagger/docs/InspectRestartPolicy.md @@ -0,0 +1,10 @@ +# InspectRestartPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaximumRetryCount** | **int32** | MaximumRetryCount is the maximum number of retries allowed if the \"on-failure\" restart policy is in use. Not used if \"on-failure\" is not set. | [optional] [default to null] +**Name** | **string** | Name contains the container's restart policy. Allowable values are \"no\" or \"\" (take no action), \"on-failure\" (restart on non-zero exit code, with an optional max retry count), and \"always\" (always restart on container stop, unless explicitly requested by API). Note that this is NOT actually a name of any sort - the poor naming is for Docker compatibility. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/InspectUlimit.md b/pkg/swagger/docs/InspectUlimit.md new file mode 100644 index 0000000..5816204 --- /dev/null +++ b/pkg/swagger/docs/InspectUlimit.md @@ -0,0 +1,11 @@ +# InspectUlimit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hard** | **int32** | Hard is the hard limit that will be applied. | [optional] [default to null] +**Name** | **string** | Name is the name (type) of the ulimit. | [optional] [default to null] +**Soft** | **int32** | Soft is the soft limit that will be applied. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IpNet.md b/pkg/swagger/docs/IpNet.md new file mode 100644 index 0000000..a666d4c --- /dev/null +++ b/pkg/swagger/docs/IpNet.md @@ -0,0 +1,10 @@ +# IpNet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IP** | [***[]int32**](array.md) | | [optional] [default to null] +**Mask** | [***[]int32**](array.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Ipam.md b/pkg/swagger/docs/Ipam.md new file mode 100644 index 0000000..0200d10 --- /dev/null +++ b/pkg/swagger/docs/Ipam.md @@ -0,0 +1,11 @@ +# Ipam + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**[]IpamConfig**](IPAMConfig.md) | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IpamConfig.md b/pkg/swagger/docs/IpamConfig.md new file mode 100644 index 0000000..721e114 --- /dev/null +++ b/pkg/swagger/docs/IpamConfig.md @@ -0,0 +1,12 @@ +# IpamConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuxiliaryAddresses** | **map[string]string** | | [optional] [default to null] +**Gateway** | **string** | | [optional] [default to null] +**IPRange** | **string** | | [optional] [default to null] +**Subnet** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/IpcConfig.md b/pkg/swagger/docs/IpcConfig.md new file mode 100644 index 0000000..1473391 --- /dev/null +++ b/pkg/swagger/docs/IpcConfig.md @@ -0,0 +1,9 @@ +# IpcConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpcMode** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LibpodContainersPruneReport.md b/pkg/swagger/docs/LibpodContainersPruneReport.md new file mode 100644 index 0000000..bacef8f --- /dev/null +++ b/pkg/swagger/docs/LibpodContainersPruneReport.md @@ -0,0 +1,11 @@ +# LibpodContainersPruneReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error_** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Space** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LibpodImagesPullReport.md b/pkg/swagger/docs/LibpodImagesPullReport.md new file mode 100644 index 0000000..469521a --- /dev/null +++ b/pkg/swagger/docs/LibpodImagesPullReport.md @@ -0,0 +1,12 @@ +# LibpodImagesPullReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error_** | **string** | Error contains text of errors from c/image | [optional] [default to null] +**Id** | **string** | ID contains image id (retained for backwards compatibility) | [optional] [default to null] +**Images** | **[]string** | Images contains the ID's of the images pulled | [optional] [default to null] +**Stream** | **string** | Stream used to provide output from c/image | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LibpodImagesRemoveReport.md b/pkg/swagger/docs/LibpodImagesRemoveReport.md new file mode 100644 index 0000000..9cccea9 --- /dev/null +++ b/pkg/swagger/docs/LibpodImagesRemoveReport.md @@ -0,0 +1,12 @@ +# LibpodImagesRemoveReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deleted** | **[]string** | Deleted images. | [optional] [default to null] +**Errors** | **[]string** | Image removal requires is to return data and an error. | [optional] [default to null] +**ExitCode** | **int64** | ExitCode describes the exit codes as described in the `podman rmi` man page. | [optional] [default to null] +**Untagged** | **[]string** | Untagged images. Can be longer than Deleted. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxBlockIo.md b/pkg/swagger/docs/LinuxBlockIo.md new file mode 100644 index 0000000..0bd1826 --- /dev/null +++ b/pkg/swagger/docs/LinuxBlockIo.md @@ -0,0 +1,15 @@ +# LinuxBlockIo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeafWeight** | **int32** | Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only | [optional] [default to null] +**ThrottleReadBpsDevice** | [**[]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleReadIOPSDevice** | [**[]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, IO per second | [optional] [default to null] +**ThrottleWriteBpsDevice** | [**[]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleWriteIOPSDevice** | [**[]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, IO per second | [optional] [default to null] +**Weight** | **int32** | Specifies per cgroup weight | [optional] [default to null] +**WeightDevice** | [**[]LinuxWeightDevice**](LinuxWeightDevice.md) | Weight per cgroup per device, can override BlkioWeight | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxBlockIoDevice.md b/pkg/swagger/docs/LinuxBlockIoDevice.md new file mode 100644 index 0000000..a2947e2 --- /dev/null +++ b/pkg/swagger/docs/LinuxBlockIoDevice.md @@ -0,0 +1,10 @@ +# LinuxBlockIoDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Major** | **int64** | Major is the device's major number. | [optional] [default to null] +**Minor** | **int64** | Minor is the device's minor number. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxCpu.md b/pkg/swagger/docs/LinuxCpu.md new file mode 100644 index 0000000..b343bca --- /dev/null +++ b/pkg/swagger/docs/LinuxCpu.md @@ -0,0 +1,15 @@ +# LinuxCpu + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpus** | **string** | CPUs to use within the cpuset. Default is to use any CPU available. | [optional] [default to null] +**Mems** | **string** | List of memory nodes in the cpuset. Default is to use any available memory node. | [optional] [default to null] +**Period** | **int32** | CPU period to be used for hardcapping (in usecs). | [optional] [default to null] +**Quota** | **int64** | CPU hardcap limit (in usecs). Allowed cpu time in a given period. | [optional] [default to null] +**RealtimePeriod** | **int32** | CPU period to be used for realtime scheduling (in usecs). | [optional] [default to null] +**RealtimeRuntime** | **int64** | How much time realtime scheduling may use (in usecs). | [optional] [default to null] +**Shares** | **int32** | CPU shares (relative weight (ratio) vs. other cgroups with cpu shares). | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxDevice.md b/pkg/swagger/docs/LinuxDevice.md new file mode 100644 index 0000000..79a089d --- /dev/null +++ b/pkg/swagger/docs/LinuxDevice.md @@ -0,0 +1,15 @@ +# LinuxDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileMode** | **int32** | | [optional] [default to null] +**Gid** | **int32** | Gid of the device. | [optional] [default to null] +**Major** | **int64** | Major is the device's major number. | [optional] [default to null] +**Minor** | **int64** | Minor is the device's minor number. | [optional] [default to null] +**Path** | **string** | Path to the device. | [optional] [default to null] +**Type_** | **string** | Device type, block, char, etc. | [optional] [default to null] +**Uid** | **int32** | UID of the device. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxDeviceCgroup.md b/pkg/swagger/docs/LinuxDeviceCgroup.md new file mode 100644 index 0000000..362383c --- /dev/null +++ b/pkg/swagger/docs/LinuxDeviceCgroup.md @@ -0,0 +1,13 @@ +# LinuxDeviceCgroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Access** | **string** | Cgroup access permissions format, rwm. | [optional] [default to null] +**Allow** | **bool** | Allow or deny | [optional] [default to null] +**Major** | **int64** | Major is the device's major number. | [optional] [default to null] +**Minor** | **int64** | Minor is the device's minor number. | [optional] [default to null] +**Type_** | **string** | Device type, block, char, etc. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxHugepageLimit.md b/pkg/swagger/docs/LinuxHugepageLimit.md new file mode 100644 index 0000000..dbb1be8 --- /dev/null +++ b/pkg/swagger/docs/LinuxHugepageLimit.md @@ -0,0 +1,10 @@ +# LinuxHugepageLimit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limit** | **int32** | Limit is the limit of \"hugepagesize\" hugetlb usage | [optional] [default to null] +**PageSize** | **string** | Pagesize is the hugepage size Format: \"<size><unit-prefix>B' (e.g. 64KB, 2MB, 1GB, etc.) | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxInterfacePriority.md b/pkg/swagger/docs/LinuxInterfacePriority.md new file mode 100644 index 0000000..fe1efc6 --- /dev/null +++ b/pkg/swagger/docs/LinuxInterfacePriority.md @@ -0,0 +1,10 @@ +# LinuxInterfacePriority + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name is the name of the network interface | [optional] [default to null] +**Priority** | **int32** | Priority for the interface | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxMemory.md b/pkg/swagger/docs/LinuxMemory.md new file mode 100644 index 0000000..37bec6a --- /dev/null +++ b/pkg/swagger/docs/LinuxMemory.md @@ -0,0 +1,16 @@ +# LinuxMemory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisableOOMKiller** | **bool** | DisableOOMKiller disables the OOM killer for out of memory conditions | [optional] [default to null] +**Kernel** | **int64** | Kernel memory limit (in bytes). | [optional] [default to null] +**KernelTCP** | **int64** | Kernel memory limit for tcp (in bytes) | [optional] [default to null] +**Limit** | **int64** | Memory limit (in bytes). | [optional] [default to null] +**Reservation** | **int64** | Memory reservation or soft_limit (in bytes). | [optional] [default to null] +**Swap** | **int64** | Total memory limit (memory + swap). | [optional] [default to null] +**Swappiness** | **int32** | How aggressive the kernel will swap memory pages. | [optional] [default to null] +**UseHierarchy** | **bool** | Enables hierarchical memory accounting | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxNetwork.md b/pkg/swagger/docs/LinuxNetwork.md new file mode 100644 index 0000000..9c3a67e --- /dev/null +++ b/pkg/swagger/docs/LinuxNetwork.md @@ -0,0 +1,10 @@ +# LinuxNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClassID** | **int32** | Set class identifier for container's network packets | [optional] [default to null] +**Priorities** | [**[]LinuxInterfacePriority**](LinuxInterfacePriority.md) | Set priority of network traffic for container | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxPids.md b/pkg/swagger/docs/LinuxPids.md new file mode 100644 index 0000000..d09e536 --- /dev/null +++ b/pkg/swagger/docs/LinuxPids.md @@ -0,0 +1,9 @@ +# LinuxPids + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limit** | **int64** | Maximum number of PIDs. Default is \"no limit\". | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxRdma.md b/pkg/swagger/docs/LinuxRdma.md new file mode 100644 index 0000000..b1f12d6 --- /dev/null +++ b/pkg/swagger/docs/LinuxRdma.md @@ -0,0 +1,10 @@ +# LinuxRdma + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HcaHandles** | **int32** | Maximum number of HCA handles that can be opened. Default is \"no limit\". | [optional] [default to null] +**HcaObjects** | **int32** | Maximum number of HCA objects that can be created. Default is \"no limit\". | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxResources.md b/pkg/swagger/docs/LinuxResources.md new file mode 100644 index 0000000..2930e3b --- /dev/null +++ b/pkg/swagger/docs/LinuxResources.md @@ -0,0 +1,17 @@ +# LinuxResources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockIO** | [***LinuxBlockIo**](LinuxBlockIO.md) | | [optional] [default to null] +**Cpu** | [***LinuxCpu**](LinuxCPU.md) | | [optional] [default to null] +**Devices** | [**[]LinuxDeviceCgroup**](LinuxDeviceCgroup.md) | Devices configures the device allowlist. | [optional] [default to null] +**HugepageLimits** | [**[]LinuxHugepageLimit**](LinuxHugepageLimit.md) | Hugetlb limit (in bytes) | [optional] [default to null] +**Memory** | [***LinuxMemory**](LinuxMemory.md) | | [optional] [default to null] +**Network** | [***LinuxNetwork**](LinuxNetwork.md) | | [optional] [default to null] +**Pids** | [***LinuxPids**](LinuxPids.md) | | [optional] [default to null] +**Rdma** | [**map[string]LinuxRdma**](LinuxRdma.md) | Rdma resource restriction configuration. Limits are a set of key value pairs that define RDMA resource limits, where the key is device name and value is resource limits. | [optional] [default to null] +**Unified** | **map[string]string** | Unified resources. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxThrottleDevice.md b/pkg/swagger/docs/LinuxThrottleDevice.md new file mode 100644 index 0000000..9e8e2f5 --- /dev/null +++ b/pkg/swagger/docs/LinuxThrottleDevice.md @@ -0,0 +1,11 @@ +# LinuxThrottleDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Major** | **int64** | Major is the device's major number. | [optional] [default to null] +**Minor** | **int64** | Minor is the device's minor number. | [optional] [default to null] +**Rate** | **int32** | Rate is the IO rate limit per cgroup per device | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LinuxWeightDevice.md b/pkg/swagger/docs/LinuxWeightDevice.md new file mode 100644 index 0000000..a08da7a --- /dev/null +++ b/pkg/swagger/docs/LinuxWeightDevice.md @@ -0,0 +1,12 @@ +# LinuxWeightDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LeafWeight** | **int32** | LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only | [optional] [default to null] +**Major** | **int64** | Major is the device's major number. | [optional] [default to null] +**Minor** | **int64** | Minor is the device's minor number. | [optional] [default to null] +**Weight** | **int32** | Weight is the bandwidth rate for the device. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/List.md b/pkg/swagger/docs/List.md new file mode 100644 index 0000000..80a4767 --- /dev/null +++ b/pkg/swagger/docs/List.md @@ -0,0 +1,11 @@ +# List + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Clone** | [***List**](List.md) | | [optional] [default to null] +**Instances** | **[]string** | Instances returns a list of the manifests that this list knows of, other than its own. | [optional] [default to null] +**MIMEType** | **string** | MIMEType returns the MIME type of this particular manifest list. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ListContainer.md b/pkg/swagger/docs/ListContainer.md new file mode 100644 index 0000000..52b0b5c --- /dev/null +++ b/pkg/swagger/docs/ListContainer.md @@ -0,0 +1,30 @@ +# ListContainer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | **[]string** | Container command | [optional] [default to null] +**Created** | **int64** | Container creation time | [optional] [default to null] +**CreatedAt** | **string** | Human readable container creation time. | [optional] [default to null] +**ExitCode** | **int32** | If container has exited, the return code from the command | [optional] [default to null] +**Exited** | **bool** | If container has exited/stopped | [optional] [default to null] +**ExitedAt** | **int64** | Time container exited | [optional] [default to null] +**Id** | **string** | The unique identifier for the container | [optional] [default to null] +**Image** | **string** | Container image | [optional] [default to null] +**ImageID** | **string** | Container image ID | [optional] [default to null] +**IsInfra** | **bool** | If this container is a Pod infra container | [optional] [default to null] +**Labels** | **map[string]string** | Labels for container | [optional] [default to null] +**Mounts** | **[]string** | User volume mounts | [optional] [default to null] +**Names** | **[]string** | The names assigned to the container | [optional] [default to null] +**Namespaces** | [***ListContainerNamespaces**](ListContainerNamespaces.md) | | [optional] [default to null] +**Pid** | **int64** | The process id of the container | [optional] [default to null] +**Pod** | **string** | If the container is part of Pod, the Pod ID. Requires the pod boolean to be set | [optional] [default to null] +**PodName** | **string** | If the container is part of Pod, the Pod name. Requires the pod boolean to be set | [optional] [default to null] +**Ports** | [**[]PortMapping**](PortMapping.md) | Port mappings | [optional] [default to null] +**Size** | [***ContainerSize**](ContainerSize.md) | | [optional] [default to null] +**StartedAt** | **int64** | Time when container started | [optional] [default to null] +**State** | **string** | State of container | [optional] [default to null] +**Status** | **string** | Status is a human-readable approximation of a duration for json output | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ListContainerNamespaces.md b/pkg/swagger/docs/ListContainerNamespaces.md new file mode 100644 index 0000000..7a6c040 --- /dev/null +++ b/pkg/swagger/docs/ListContainerNamespaces.md @@ -0,0 +1,15 @@ +# ListContainerNamespaces + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cgroup** | **string** | Cgroup namespace | [optional] [default to null] +**Ipc** | **string** | IPC namespace | [optional] [default to null] +**Mnt** | **string** | Mount namespace | [optional] [default to null] +**Net** | **string** | Network namespace | [optional] [default to null] +**Pidns** | **string** | PID namespace | [optional] [default to null] +**User** | **string** | User namespace | [optional] [default to null] +**Uts** | **string** | UTS namespace | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ListPodContainer.md b/pkg/swagger/docs/ListPodContainer.md new file mode 100644 index 0000000..763ddf9 --- /dev/null +++ b/pkg/swagger/docs/ListPodContainer.md @@ -0,0 +1,11 @@ +# ListPodContainer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] +**Names** | **string** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ListPodsReport.md b/pkg/swagger/docs/ListPodsReport.md new file mode 100644 index 0000000..5870bed --- /dev/null +++ b/pkg/swagger/docs/ListPodsReport.md @@ -0,0 +1,17 @@ +# ListPodsReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cgroup** | **string** | | [optional] [default to null] +**Containers** | [**[]ListPodContainer**](ListPodContainer.md) | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**InfraId** | **string** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Namespace** | **string** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ListRegistriesReport.md b/pkg/swagger/docs/ListRegistriesReport.md new file mode 100644 index 0000000..4ccc5a7 --- /dev/null +++ b/pkg/swagger/docs/ListRegistriesReport.md @@ -0,0 +1,9 @@ +# ListRegistriesReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Registries** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/LogConfig.md b/pkg/swagger/docs/LogConfig.md new file mode 100644 index 0000000..0c75f14 --- /dev/null +++ b/pkg/swagger/docs/LogConfig.md @@ -0,0 +1,11 @@ +# LogConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Driver** | **string** | LogDriver is the container's log driver. Optional. | [optional] [default to null] +**Options** | **map[string]string** | A set of options to accompany the log driver. Optional. | [optional] [default to null] +**Path** | **string** | LogPath is the path the container's logs will be stored at. Only available if LogDriver is set to \"json-file\" or \"k8s-file\". Optional. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ManifestAddOpts.md b/pkg/swagger/docs/ManifestAddOpts.md new file mode 100644 index 0000000..237fd20 --- /dev/null +++ b/pkg/swagger/docs/ManifestAddOpts.md @@ -0,0 +1,16 @@ +# ManifestAddOpts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**All** | **bool** | | [optional] [default to null] +**Annotation** | **map[string]string** | | [optional] [default to null] +**Arch** | **string** | | [optional] [default to null] +**Features** | **[]string** | | [optional] [default to null] +**Images** | **[]string** | | [optional] [default to null] +**Os** | **string** | | [optional] [default to null] +**OsVersion** | **string** | | [optional] [default to null] +**Variant** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ManifestsApi.md b/pkg/swagger/docs/ManifestsApi.md new file mode 100644 index 0000000..eac8888 --- /dev/null +++ b/pkg/swagger/docs/ManifestsApi.md @@ -0,0 +1,187 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddManifest**](ManifestsApi.md#AddManifest) | **Post** /libpod/manifests/{name:.*}/add | +[**Create**](ManifestsApi.md#Create) | **Post** /libpod/manifests/create | Create +[**Inspect**](ManifestsApi.md#Inspect) | **Get** /libpod/manifests/{name:.*}/json | Inspect +[**PushManifest**](ManifestsApi.md#PushManifest) | **Post** /libpod/manifests/{name}/push | Push +[**RemoveManifest**](ManifestsApi.md#RemoveManifest) | **Delete** /libpod/manifests/{name:.*} | Remove + +# **AddManifest** +> AddManifest(ctx, name_, optional) + + +Add an image to a manifest list + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the manifest | + **optional** | ***ManifestsApiAddManifestOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ManifestsApiAddManifestOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**optional.Interface of ManifestAddOpts**](ManifestAddOpts.md)| options for creating a manifest | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **Create** +> Create(ctx, name, optional) +Create + +Create a manifest list + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| manifest list name | + **optional** | ***ManifestsApiCreateOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ManifestsApiCreateOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **image** | **optional.String**| name of the image | + **all** | **optional.Bool**| add all contents if given list | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **Inspect** +> List Inspect(ctx, name_) +Inspect + +Display a manifest list + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the name or ID of the manifest | + +### Return type + +[**List**](List.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PushManifest** +> PushManifest(ctx, name, destination, optional) +Push + +Push a manifest list or image index to a registry + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the manifest | + **destination** | **string**| the destination for the manifest | + **optional** | ***ManifestsApiPushManifestOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ManifestsApiPushManifestOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **all** | **optional.Bool**| push all images | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RemoveManifest** +> RemoveManifest(ctx, name_, optional) +Remove + +Remove an image from a manifest list + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| the image associated with the manifest | + **optional** | ***ManifestsApiRemoveManifestOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ManifestsApiRemoveManifestOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **digest** | **optional.String**| image digest to be removed | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Mount.md b/pkg/swagger/docs/Mount.md new file mode 100644 index 0000000..ada0c90 --- /dev/null +++ b/pkg/swagger/docs/Mount.md @@ -0,0 +1,12 @@ +# Mount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Destination** | **string** | Destination is the absolute path where the mount will be placed in the container. | [optional] [default to null] +**Options** | **[]string** | Options are fstab style mount options. | [optional] [default to null] +**Source** | **string** | Source specifies the source path of the mount. | [optional] [default to null] +**Type_** | **string** | Type specifies the mount kind. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/MountPoint.md b/pkg/swagger/docs/MountPoint.md new file mode 100644 index 0000000..0032229 --- /dev/null +++ b/pkg/swagger/docs/MountPoint.md @@ -0,0 +1,16 @@ +# MountPoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Destination** | **string** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**Mode** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Propagation** | **string** | | [optional] [default to null] +**RW** | **bool** | | [optional] [default to null] +**Source** | **string** | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NamedVolume.md b/pkg/swagger/docs/NamedVolume.md new file mode 100644 index 0000000..e3add63 --- /dev/null +++ b/pkg/swagger/docs/NamedVolume.md @@ -0,0 +1,11 @@ +# NamedVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dest** | **string** | Destination to mount the named volume within the container. Must be an absolute path. Path will be created if it does not exist. | [optional] [default to null] +**Name** | **string** | Name is the name of the named volume to be mounted. May be empty. If empty, a new named volume with a pseudorandomly generated name will be mounted at the given destination. | [optional] [default to null] +**Options** | **[]string** | Options are options that the named volume will be mounted with. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Namespace.md b/pkg/swagger/docs/Namespace.md new file mode 100644 index 0000000..6c3a20c --- /dev/null +++ b/pkg/swagger/docs/Namespace.md @@ -0,0 +1,10 @@ +# Namespace + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Nsmode** | **string** | | [optional] [default to null] +**String_** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkConfig.md b/pkg/swagger/docs/NetworkConfig.md new file mode 100644 index 0000000..a51d8bf --- /dev/null +++ b/pkg/swagger/docs/NetworkConfig.md @@ -0,0 +1,23 @@ +# NetworkConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DNSOpt** | **[]string** | | [optional] [default to null] +**DNSSearch** | **[]string** | | [optional] [default to null] +**DNSServers** | **[]string** | | [optional] [default to null] +**ExposedPorts** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**HTTPProxy** | **bool** | | [optional] [default to null] +**IP6Address** | **string** | | [optional] [default to null] +**IPAddress** | **string** | | [optional] [default to null] +**LinkLocalIP** | **[]string** | | [optional] [default to null] +**MacAddress** | **string** | | [optional] [default to null] +**NetMode** | **string** | | [optional] [default to null] +**Network** | **string** | | [optional] [default to null] +**NetworkAlias** | **[]string** | | [optional] [default to null] +**PortBindings** | [***map[string][]PortBinding**](map.md) | | [optional] [default to null] +**Publish** | **[]string** | | [optional] [default to null] +**PublishAll** | **bool** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkCreate.md b/pkg/swagger/docs/NetworkCreate.md new file mode 100644 index 0000000..8897969 --- /dev/null +++ b/pkg/swagger/docs/NetworkCreate.md @@ -0,0 +1,20 @@ +# NetworkCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attachable** | **bool** | | [optional] [default to null] +**CheckDuplicate** | **bool** | Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. | [optional] [default to null] +**ConfigFrom** | [***ConfigReference**](ConfigReference.md) | | [optional] [default to null] +**ConfigOnly** | **bool** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**EnableIPv6** | **bool** | | [optional] [default to null] +**IPAM** | [***Ipam**](IPAM.md) | | [optional] [default to null] +**Ingress** | **bool** | | [optional] [default to null] +**Internal** | **bool** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] +**Scope** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkCreateOptions.md b/pkg/swagger/docs/NetworkCreateOptions.md new file mode 100644 index 0000000..a03e2c9 --- /dev/null +++ b/pkg/swagger/docs/NetworkCreateOptions.md @@ -0,0 +1,15 @@ +# NetworkCreateOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisableDNS** | **bool** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**Gateway** | [***[]int32**](array.md) | | [optional] [default to null] +**Internal** | **bool** | | [optional] [default to null] +**MacVLAN** | **string** | | [optional] [default to null] +**Range_** | [***IpNet**](IPNet.md) | | [optional] [default to null] +**Subnet** | [***IpNet**](IPNet.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkCreateReport.md b/pkg/swagger/docs/NetworkCreateReport.md new file mode 100644 index 0000000..2a5b3bb --- /dev/null +++ b/pkg/swagger/docs/NetworkCreateReport.md @@ -0,0 +1,9 @@ +# NetworkCreateReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filename** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkCreateRequest.md b/pkg/swagger/docs/NetworkCreateRequest.md new file mode 100644 index 0000000..cde4ab1 --- /dev/null +++ b/pkg/swagger/docs/NetworkCreateRequest.md @@ -0,0 +1,21 @@ +# NetworkCreateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attachable** | **bool** | | [optional] [default to null] +**CheckDuplicate** | **bool** | Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. | [optional] [default to null] +**ConfigFrom** | [***ConfigReference**](ConfigReference.md) | | [optional] [default to null] +**ConfigOnly** | **bool** | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**EnableIPv6** | **bool** | | [optional] [default to null] +**IPAM** | [***Ipam**](IPAM.md) | | [optional] [default to null] +**Ingress** | **bool** | | [optional] [default to null] +**Internal** | **bool** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] +**Scope** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkListReport.md b/pkg/swagger/docs/NetworkListReport.md new file mode 100644 index 0000000..fe38312 --- /dev/null +++ b/pkg/swagger/docs/NetworkListReport.md @@ -0,0 +1,13 @@ +# NetworkListReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bytes** | **[]int32** | | [optional] [default to null] +**CNIVersion** | **string** | | [optional] [default to null] +**DisableCheck** | **bool** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Plugins** | [**[]NetworkConfig**](NetworkConfig.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkResource.md b/pkg/swagger/docs/NetworkResource.md new file mode 100644 index 0000000..9a9396c --- /dev/null +++ b/pkg/swagger/docs/NetworkResource.md @@ -0,0 +1,25 @@ +# NetworkResource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attachable** | **bool** | | [optional] [default to null] +**ConfigFrom** | [***ConfigReference**](ConfigReference.md) | | [optional] [default to null] +**ConfigOnly** | **bool** | | [optional] [default to null] +**Containers** | [**map[string]EndpointResource**](EndpointResource.md) | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Driver** | **string** | | [optional] [default to null] +**EnableIPv6** | **bool** | | [optional] [default to null] +**IPAM** | [***Ipam**](IPAM.md) | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] +**Ingress** | **bool** | | [optional] [default to null] +**Internal** | **bool** | | [optional] [default to null] +**Labels** | **map[string]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Options** | **map[string]string** | | [optional] [default to null] +**Peers** | [**[]PeerInfo**](PeerInfo.md) | | [optional] [default to null] +**Scope** | **string** | | [optional] [default to null] +**Services** | [**map[string]ServiceInfo**](ServiceInfo.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkRmReport.md b/pkg/swagger/docs/NetworkRmReport.md new file mode 100644 index 0000000..bb004d7 --- /dev/null +++ b/pkg/swagger/docs/NetworkRmReport.md @@ -0,0 +1,10 @@ +# NetworkRmReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworkSettings.md b/pkg/swagger/docs/NetworkSettings.md new file mode 100644 index 0000000..d8e2e22 --- /dev/null +++ b/pkg/swagger/docs/NetworkSettings.md @@ -0,0 +1,26 @@ +# NetworkSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bridge** | **string** | | [optional] [default to null] +**EndpointID** | **string** | | [optional] [default to null] +**Gateway** | **string** | | [optional] [default to null] +**GlobalIPv6Address** | **string** | | [optional] [default to null] +**GlobalIPv6PrefixLen** | **int64** | | [optional] [default to null] +**HairpinMode** | **bool** | | [optional] [default to null] +**IPAddress** | **string** | | [optional] [default to null] +**IPPrefixLen** | **int64** | | [optional] [default to null] +**IPv6Gateway** | **string** | | [optional] [default to null] +**LinkLocalIPv6Address** | **string** | | [optional] [default to null] +**LinkLocalIPv6PrefixLen** | **int64** | | [optional] [default to null] +**MacAddress** | **string** | | [optional] [default to null] +**Networks** | [**map[string]EndpointSettings**](EndpointSettings.md) | | [optional] [default to null] +**Ports** | [***map[string][]PortBinding**](map.md) | | [optional] [default to null] +**SandboxID** | **string** | | [optional] [default to null] +**SandboxKey** | **string** | | [optional] [default to null] +**SecondaryIPAddresses** | [**[]Address**](Address.md) | | [optional] [default to null] +**SecondaryIPv6Addresses** | [**[]Address**](Address.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworksApi.md b/pkg/swagger/docs/NetworksApi.md new file mode 100644 index 0000000..a42dcd9 --- /dev/null +++ b/pkg/swagger/docs/NetworksApi.md @@ -0,0 +1,144 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LibpodCreateNetwork**](NetworksApi.md#LibpodCreateNetwork) | **Post** /libpod/networks/create | Create network +[**LibpodInspectNetwork**](NetworksApi.md#LibpodInspectNetwork) | **Get** /libpod/networks/{name}/json | Inspect a network +[**LibpodListNetwork**](NetworksApi.md#LibpodListNetwork) | **Get** /libpod/networks/json | List networks +[**LibpodRemoveNetwork**](NetworksApi.md#LibpodRemoveNetwork) | **Delete** /libpod/networks/{name} | Remove a network + +# **LibpodCreateNetwork** +> NetworkCreateReport LibpodCreateNetwork(ctx, optional) +Create network + +Create a new CNI network configuration + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***NetworksApiLibpodCreateNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a NetworksApiLibpodCreateNetworkOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of NetworkCreateOptions**](NetworkCreateOptions.md)| attributes for creating a container | + **name** | **optional.**| optional name for new network | + +### Return type + +[**NetworkCreateReport**](NetworkCreateReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodInspectNetwork** +> []map[string]interface{} LibpodInspectNetwork(ctx, name) +Inspect a network + +Display low level configuration for a CNI network + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name of the network | + +### Return type + +[**[]map[string]interface{}**](map.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodListNetwork** +> []NetworkListReport LibpodListNetwork(ctx, optional) +List networks + +Display summary of network configurations + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***NetworksApiLibpodListNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a NetworksApiLibpodListNetworkOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **optional.String**| Provide filter values (e.g. 'name=podman') | + +### Return type + +[**[]NetworkListReport**](NetworkListReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRemoveNetwork** +> NetworkRmReport LibpodRemoveNetwork(ctx, name, optional) +Remove a network + +Remove a CNI configured network + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name of the network | + **optional** | ***NetworksApiLibpodRemoveNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a NetworksApiLibpodRemoveNetworkOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| remove containers associated with network | + +### Return type + +[**NetworkRmReport**](NetworkRmReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/NetworksCompatApi.md b/pkg/swagger/docs/NetworksCompatApi.md new file mode 100644 index 0000000..32af141 --- /dev/null +++ b/pkg/swagger/docs/NetworksCompatApi.md @@ -0,0 +1,135 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CompatCreateNetwork**](NetworksCompatApi.md#CompatCreateNetwork) | **Post** /networks/create | Create network +[**CompatInspectNetwork**](NetworksCompatApi.md#CompatInspectNetwork) | **Get** /networks/{name} | Inspect a network +[**CompatListNetwork**](NetworksCompatApi.md#CompatListNetwork) | **Get** /networks | List networks +[**CompatRemoveNetwork**](NetworksCompatApi.md#CompatRemoveNetwork) | **Delete** /networks/{name} | Remove a network + +# **CompatCreateNetwork** +> InlineResponse20016 CompatCreateNetwork(ctx, optional) +Create network + +Create a network configuration + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***NetworksCompatApiCompatCreateNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a NetworksCompatApiCompatCreateNetworkOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of NetworkCreateRequest**](NetworkCreateRequest.md)| attributes for creating a container | + +### Return type + +[**InlineResponse20016**](inline_response_200_16.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CompatInspectNetwork** +> NetworkResource CompatInspectNetwork(ctx, name) +Inspect a network + +Display low level configuration network + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name of the network | + +### Return type + +[**NetworkResource**](NetworkResource.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CompatListNetwork** +> []NetworkResource CompatListNetwork(ctx, optional) +List networks + +Display summary of network configurations + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***NetworksCompatApiCompatListNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a NetworksCompatApiCompatListNetworkOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| JSON encoded value of the filters (a map[string][]string) to process on the networks list. Only the name filter is supported. | + +### Return type + +[**[]NetworkResource**](NetworkResource.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CompatRemoveNetwork** +> CompatRemoveNetwork(ctx, name) +Remove a network + +Remove a network + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name of the network | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/OciRuntimeInfo.md b/pkg/swagger/docs/OciRuntimeInfo.md new file mode 100644 index 0000000..168cd18 --- /dev/null +++ b/pkg/swagger/docs/OciRuntimeInfo.md @@ -0,0 +1,12 @@ +# OciRuntimeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] [default to null] +**Package_** | **string** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/OverlayVolume.md b/pkg/swagger/docs/OverlayVolume.md new file mode 100644 index 0000000..296ce8a --- /dev/null +++ b/pkg/swagger/docs/OverlayVolume.md @@ -0,0 +1,10 @@ +# OverlayVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Destination** | **string** | Destination is the absolute path where the mount will be placed in the container. | [optional] [default to null] +**Source** | **string** | Source specifies the source path of the mount. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PeerInfo.md b/pkg/swagger/docs/PeerInfo.md new file mode 100644 index 0000000..d9aa62a --- /dev/null +++ b/pkg/swagger/docs/PeerInfo.md @@ -0,0 +1,10 @@ +# PeerInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IP** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PidConfig.md b/pkg/swagger/docs/PidConfig.md new file mode 100644 index 0000000..19997ec --- /dev/null +++ b/pkg/swagger/docs/PidConfig.md @@ -0,0 +1,9 @@ +# PidConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PidMode** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PlayKubePod.md b/pkg/swagger/docs/PlayKubePod.md new file mode 100644 index 0000000..9f73343 --- /dev/null +++ b/pkg/swagger/docs/PlayKubePod.md @@ -0,0 +1,11 @@ +# PlayKubePod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Containers** | **[]string** | Containers - the IDs of the containers running in the created pod. | [optional] [default to null] +**ID** | **string** | ID - ID of the pod created as a result of play kube. | [optional] [default to null] +**Logs** | **[]string** | Logs - non-fatal errors and log messages while processing. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PlayKubeReport.md b/pkg/swagger/docs/PlayKubeReport.md new file mode 100644 index 0000000..4797b83 --- /dev/null +++ b/pkg/swagger/docs/PlayKubeReport.md @@ -0,0 +1,9 @@ +# PlayKubeReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pods** | [**[]PlayKubePod**](PlayKubePod.md) | Pods - pods created by play kube. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Plugin.md b/pkg/swagger/docs/Plugin.md new file mode 100644 index 0000000..af6b135 --- /dev/null +++ b/pkg/swagger/docs/Plugin.md @@ -0,0 +1,14 @@ +# Plugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [***PluginConfig**](PluginConfig.md) | | [default to null] +**Enabled** | **bool** | True if the plugin is running. False if the plugin is not running, only installed. | [default to null] +**Id** | **string** | Id | [optional] [default to null] +**Name** | **string** | name | [default to null] +**PluginReference** | **string** | plugin remote reference used to push/pull the plugin | [optional] [default to null] +**Settings** | [***PluginSettings**](PluginSettings.md) | | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfig.md b/pkg/swagger/docs/PluginConfig.md new file mode 100644 index 0000000..303ba41 --- /dev/null +++ b/pkg/swagger/docs/PluginConfig.md @@ -0,0 +1,24 @@ +# PluginConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Args** | [***PluginConfigArgs**](PluginConfigArgs.md) | | [default to null] +**Description** | **string** | description | [default to null] +**DockerVersion** | **string** | Docker Version used to create the plugin | [optional] [default to null] +**Documentation** | **string** | documentation | [default to null] +**Entrypoint** | **[]string** | entrypoint | [default to null] +**Env** | [**[]PluginEnv**](PluginEnv.md) | env | [default to null] +**Interface_** | [***PluginConfigInterface**](PluginConfigInterface.md) | | [default to null] +**IpcHost** | **bool** | ipc host | [default to null] +**Linux** | [***PluginConfigLinux**](PluginConfigLinux.md) | | [default to null] +**Mounts** | [**[]PluginMount**](PluginMount.md) | mounts | [default to null] +**Network** | [***PluginConfigNetwork**](PluginConfigNetwork.md) | | [default to null] +**PidHost** | **bool** | pid host | [default to null] +**PropagatedMount** | **string** | propagated mount | [default to null] +**User** | [***PluginConfigUser**](PluginConfigUser.md) | | [optional] [default to null] +**WorkDir** | **string** | work dir | [default to null] +**Rootfs** | [***PluginConfigRootfs**](PluginConfigRootfs.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigArgs.md b/pkg/swagger/docs/PluginConfigArgs.md new file mode 100644 index 0000000..f712193 --- /dev/null +++ b/pkg/swagger/docs/PluginConfigArgs.md @@ -0,0 +1,12 @@ +# PluginConfigArgs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | description | [default to null] +**Name** | **string** | name | [default to null] +**Settable** | **[]string** | settable | [default to null] +**Value** | **[]string** | value | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigInterface.md b/pkg/swagger/docs/PluginConfigInterface.md new file mode 100644 index 0000000..1c40ffb --- /dev/null +++ b/pkg/swagger/docs/PluginConfigInterface.md @@ -0,0 +1,11 @@ +# PluginConfigInterface + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProtocolScheme** | **string** | Protocol to use for clients connecting to the plugin. | [optional] [default to null] +**Socket** | **string** | socket | [default to null] +**Types** | [**[]PluginInterfaceType**](PluginInterfaceType.md) | types | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigLinux.md b/pkg/swagger/docs/PluginConfigLinux.md new file mode 100644 index 0000000..0a2910e --- /dev/null +++ b/pkg/swagger/docs/PluginConfigLinux.md @@ -0,0 +1,11 @@ +# PluginConfigLinux + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowAllDevices** | **bool** | allow all devices | [default to null] +**Capabilities** | **[]string** | capabilities | [default to null] +**Devices** | [**[]PluginDevice**](PluginDevice.md) | devices | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigNetwork.md b/pkg/swagger/docs/PluginConfigNetwork.md new file mode 100644 index 0000000..1b09263 --- /dev/null +++ b/pkg/swagger/docs/PluginConfigNetwork.md @@ -0,0 +1,9 @@ +# PluginConfigNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | **string** | type | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigRootfs.md b/pkg/swagger/docs/PluginConfigRootfs.md new file mode 100644 index 0000000..0694fed --- /dev/null +++ b/pkg/swagger/docs/PluginConfigRootfs.md @@ -0,0 +1,10 @@ +# PluginConfigRootfs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiffIds** | **[]string** | diff ids | [optional] [default to null] +**Type_** | **string** | type | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginConfigUser.md b/pkg/swagger/docs/PluginConfigUser.md new file mode 100644 index 0000000..cfdeb81 --- /dev/null +++ b/pkg/swagger/docs/PluginConfigUser.md @@ -0,0 +1,10 @@ +# PluginConfigUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GID** | **int32** | g ID | [optional] [default to null] +**UID** | **int32** | UID | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginDevice.md b/pkg/swagger/docs/PluginDevice.md new file mode 100644 index 0000000..b029a63 --- /dev/null +++ b/pkg/swagger/docs/PluginDevice.md @@ -0,0 +1,12 @@ +# PluginDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | description | [default to null] +**Name** | **string** | name | [default to null] +**Path** | **string** | path | [default to null] +**Settable** | **[]string** | settable | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginEnv.md b/pkg/swagger/docs/PluginEnv.md new file mode 100644 index 0000000..93221e4 --- /dev/null +++ b/pkg/swagger/docs/PluginEnv.md @@ -0,0 +1,12 @@ +# PluginEnv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | description | [default to null] +**Name** | **string** | name | [default to null] +**Settable** | **[]string** | settable | [default to null] +**Value** | **string** | value | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginInterfaceType.md b/pkg/swagger/docs/PluginInterfaceType.md new file mode 100644 index 0000000..f61e7f2 --- /dev/null +++ b/pkg/swagger/docs/PluginInterfaceType.md @@ -0,0 +1,11 @@ +# PluginInterfaceType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capability** | **string** | capability | [default to null] +**Prefix** | **string** | prefix | [default to null] +**Version** | **string** | version | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginMount.md b/pkg/swagger/docs/PluginMount.md new file mode 100644 index 0000000..37cd947 --- /dev/null +++ b/pkg/swagger/docs/PluginMount.md @@ -0,0 +1,15 @@ +# PluginMount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | description | [default to null] +**Destination** | **string** | destination | [default to null] +**Name** | **string** | name | [default to null] +**Options** | **[]string** | options | [default to null] +**Settable** | **[]string** | settable | [default to null] +**Source** | **string** | source | [default to null] +**Type_** | **string** | type | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PluginSettings.md b/pkg/swagger/docs/PluginSettings.md new file mode 100644 index 0000000..0f27e40 --- /dev/null +++ b/pkg/swagger/docs/PluginSettings.md @@ -0,0 +1,12 @@ +# PluginSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Args** | **[]string** | args | [default to null] +**Devices** | [**[]PluginDevice**](PluginDevice.md) | devices | [default to null] +**Env** | **[]string** | env | [default to null] +**Mounts** | [**[]PluginMount**](PluginMount.md) | mounts | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodBasicConfig.md b/pkg/swagger/docs/PodBasicConfig.md new file mode 100644 index 0000000..20f4f86 --- /dev/null +++ b/pkg/swagger/docs/PodBasicConfig.md @@ -0,0 +1,17 @@ +# PodBasicConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | Hostname is the pod's hostname. If not set, the name of the pod will be used (if a name was not provided here, the name auto-generated for the pod will be used). This will be used by the infra container and all containers in the pod as long as the UTS namespace is shared. Optional. | [optional] [default to null] +**InfraCommand** | **[]string** | InfraCommand sets the command that will be used to start the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**InfraConmonPidFile** | **string** | InfraConmonPidFile is a custom path to store the infra container's conmon PID. | [optional] [default to null] +**InfraImage** | **string** | InfraImage is the image that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**Labels** | **map[string]string** | Labels are key-value pairs that are used to add metadata to pods. Optional. | [optional] [default to null] +**Name** | **string** | Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional. | [optional] [default to null] +**NoInfra** | **bool** | NoInfra tells the pod not to create an infra container. If this is done, many networking-related options will become unavailable. Conflicts with setting any options in PodNetworkConfig, and the InfraCommand and InfraImages in this struct. Optional. | [optional] [default to null] +**PodCreateCommand** | **[]string** | PodCreateCommand is the command used to create this pod. This will be shown in the output of Inspect() on the pod, and may also be used by some tools that wish to recreate the pod (e.g. `podman generate systemd --new`). Optional. | [optional] [default to null] +**SharedNamespaces** | **[]string** | SharedNamespaces instructs the pod to share a set of namespaces. Shared namespaces will be joined (by default) by every container which joins the pod. If not set and NoInfra is false, the pod will set a default set of namespaces to share. Conflicts with NoInfra=true. Optional. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodCgroupConfig.md b/pkg/swagger/docs/PodCgroupConfig.md new file mode 100644 index 0000000..3b25a0e --- /dev/null +++ b/pkg/swagger/docs/PodCgroupConfig.md @@ -0,0 +1,9 @@ +# PodCgroupConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupParent** | **string** | CgroupParent is the parent for the CGroup that the pod will create. This pod cgroup will, in turn, be the default cgroup parent for all containers in the pod. Optional. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodCreateConfig.md b/pkg/swagger/docs/PodCreateConfig.md new file mode 100644 index 0000000..817d299 --- /dev/null +++ b/pkg/swagger/docs/PodCreateConfig.md @@ -0,0 +1,17 @@ +# PodCreateConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupParent** | **string** | | [optional] [default to null] +**Hostname** | **string** | | [optional] [default to null] +**Infra** | **bool** | | [optional] [default to null] +**InfraCommand** | **string** | | [optional] [default to null] +**InfraImage** | **string** | | [optional] [default to null] +**Labels** | **[]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Publish** | **[]string** | | [optional] [default to null] +**Share** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodKillReport.md b/pkg/swagger/docs/PodKillReport.md new file mode 100644 index 0000000..b7f1f8e --- /dev/null +++ b/pkg/swagger/docs/PodKillReport.md @@ -0,0 +1,10 @@ +# PodKillReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodNetworkConfig.md b/pkg/swagger/docs/PodNetworkConfig.md new file mode 100644 index 0000000..e8a59ed --- /dev/null +++ b/pkg/swagger/docs/PodNetworkConfig.md @@ -0,0 +1,20 @@ +# PodNetworkConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CniNetworks** | **[]string** | CNINetworks is a list of CNI networks that the infra container will join. As, by default, containers share their network with the infra container, these networks will effectively be joined by the entire pod. Only available when NetNS is set to Bridge, the default for root. Optional. | [optional] [default to null] +**DnsOption** | **[]string** | DNSOption is a set of DNS options that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**DnsSearch** | **[]string** | DNSSearch is a set of DNS search domains that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, DNS search domains from the host's resolv.conf will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**DnsServer** | [**[][]int32**](array.md) | DNSServer is a set of DNS servers that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, the host's DNS servers will be used, unless the only server set is a localhost address. As the container cannot connect to the host's localhost, a default server will instead be set. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**Hostadd** | **[]string** | HostAdd is a set of hosts that will be added to the infra container's etc/hosts that will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true and NoManageHosts. Optional. | [optional] [default to null] +**Netns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**NetworkOptions** | [**map[string][]string**](array.md) | NetworkOptions are additional options for each network Optional. | [optional] [default to null] +**NoManageHosts** | **bool** | NoManageHosts indicates that /etc/hosts should not be managed by the pod. Instead, each container will create a separate /etc/hosts as they would if not in a pod. Conflicts with HostAdd. | [optional] [default to null] +**NoManageResolvConf** | **bool** | NoManageResolvConf indicates that /etc/resolv.conf should not be managed by the pod. Instead, each container will create and manage a separate resolv.conf as if they had not joined a pod. Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. Optional. | [optional] [default to null] +**Portmappings** | [**[]PortMapping**](PortMapping.md) | PortMappings is a set of ports to map into the infra container. As, by default, containers share their network with the infra container, this will forward the ports to the entire pod. Only available if NetNS is set to Bridge or Slirp. Optional. | [optional] [default to null] +**StaticIp** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticMac** | [***[]int32**](array.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodPauseReport.md b/pkg/swagger/docs/PodPauseReport.md new file mode 100644 index 0000000..182f3a9 --- /dev/null +++ b/pkg/swagger/docs/PodPauseReport.md @@ -0,0 +1,10 @@ +# PodPauseReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodPruneReport.md b/pkg/swagger/docs/PodPruneReport.md new file mode 100644 index 0000000..723a084 --- /dev/null +++ b/pkg/swagger/docs/PodPruneReport.md @@ -0,0 +1,10 @@ +# PodPruneReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodRestartReport.md b/pkg/swagger/docs/PodRestartReport.md new file mode 100644 index 0000000..07c5a16 --- /dev/null +++ b/pkg/swagger/docs/PodRestartReport.md @@ -0,0 +1,10 @@ +# PodRestartReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodRmReport.md b/pkg/swagger/docs/PodRmReport.md new file mode 100644 index 0000000..c450d46 --- /dev/null +++ b/pkg/swagger/docs/PodRmReport.md @@ -0,0 +1,10 @@ +# PodRmReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodSpecGenerator.md b/pkg/swagger/docs/PodSpecGenerator.md new file mode 100644 index 0000000..69d405e --- /dev/null +++ b/pkg/swagger/docs/PodSpecGenerator.md @@ -0,0 +1,30 @@ +# PodSpecGenerator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CgroupParent** | **string** | CgroupParent is the parent for the CGroup that the pod will create. This pod cgroup will, in turn, be the default cgroup parent for all containers in the pod. Optional. | [optional] [default to null] +**CniNetworks** | **[]string** | CNINetworks is a list of CNI networks that the infra container will join. As, by default, containers share their network with the infra container, these networks will effectively be joined by the entire pod. Only available when NetNS is set to Bridge, the default for root. Optional. | [optional] [default to null] +**DnsOption** | **[]string** | DNSOption is a set of DNS options that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**DnsSearch** | **[]string** | DNSSearch is a set of DNS search domains that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, DNS search domains from the host's resolv.conf will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**DnsServer** | [**[][]int32**](array.md) | DNSServer is a set of DNS servers that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, the host's DNS servers will be used, unless the only server set is a localhost address. As the container cannot connect to the host's localhost, a default server will instead be set. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**Hostadd** | **[]string** | HostAdd is a set of hosts that will be added to the infra container's etc/hosts that will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true and NoManageHosts. Optional. | [optional] [default to null] +**Hostname** | **string** | Hostname is the pod's hostname. If not set, the name of the pod will be used (if a name was not provided here, the name auto-generated for the pod will be used). This will be used by the infra container and all containers in the pod as long as the UTS namespace is shared. Optional. | [optional] [default to null] +**InfraCommand** | **[]string** | InfraCommand sets the command that will be used to start the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**InfraConmonPidFile** | **string** | InfraConmonPidFile is a custom path to store the infra container's conmon PID. | [optional] [default to null] +**InfraImage** | **string** | InfraImage is the image that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**Labels** | **map[string]string** | Labels are key-value pairs that are used to add metadata to pods. Optional. | [optional] [default to null] +**Name** | **string** | Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional. | [optional] [default to null] +**Netns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**NetworkOptions** | [**map[string][]string**](array.md) | NetworkOptions are additional options for each network Optional. | [optional] [default to null] +**NoInfra** | **bool** | NoInfra tells the pod not to create an infra container. If this is done, many networking-related options will become unavailable. Conflicts with setting any options in PodNetworkConfig, and the InfraCommand and InfraImages in this struct. Optional. | [optional] [default to null] +**NoManageHosts** | **bool** | NoManageHosts indicates that /etc/hosts should not be managed by the pod. Instead, each container will create a separate /etc/hosts as they would if not in a pod. Conflicts with HostAdd. | [optional] [default to null] +**NoManageResolvConf** | **bool** | NoManageResolvConf indicates that /etc/resolv.conf should not be managed by the pod. Instead, each container will create and manage a separate resolv.conf as if they had not joined a pod. Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. Optional. | [optional] [default to null] +**PodCreateCommand** | **[]string** | PodCreateCommand is the command used to create this pod. This will be shown in the output of Inspect() on the pod, and may also be used by some tools that wish to recreate the pod (e.g. `podman generate systemd --new`). Optional. | [optional] [default to null] +**Portmappings** | [**[]PortMapping**](PortMapping.md) | PortMappings is a set of ports to map into the infra container. As, by default, containers share their network with the infra container, this will forward the ports to the entire pod. Only available if NetNS is set to Bridge or Slirp. Optional. | [optional] [default to null] +**SharedNamespaces** | **[]string** | SharedNamespaces instructs the pod to share a set of namespaces. Shared namespaces will be joined (by default) by every container which joins the pod. If not set and NoInfra is false, the pod will set a default set of namespaces to share. Conflicts with NoInfra=true. Optional. | [optional] [default to null] +**StaticIp** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticMac** | [***[]int32**](array.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodStartReport.md b/pkg/swagger/docs/PodStartReport.md new file mode 100644 index 0000000..9b6d25d --- /dev/null +++ b/pkg/swagger/docs/PodStartReport.md @@ -0,0 +1,10 @@ +# PodStartReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodStatsReport.md b/pkg/swagger/docs/PodStatsReport.md new file mode 100644 index 0000000..9030db3 --- /dev/null +++ b/pkg/swagger/docs/PodStatsReport.md @@ -0,0 +1,17 @@ +# PodStatsReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockIO** | **string** | | [optional] [default to null] +**CID** | **string** | | [optional] [default to null] +**CPU** | **string** | | [optional] [default to null] +**Mem** | **string** | | [optional] [default to null] +**MemUsage** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**NetIO** | **string** | | [optional] [default to null] +**PIDS** | **string** | | [optional] [default to null] +**Pod** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodStopReport.md b/pkg/swagger/docs/PodStopReport.md new file mode 100644 index 0000000..8123523 --- /dev/null +++ b/pkg/swagger/docs/PodStopReport.md @@ -0,0 +1,10 @@ +# PodStopReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodUnpauseReport.md b/pkg/swagger/docs/PodUnpauseReport.md new file mode 100644 index 0000000..59efca8 --- /dev/null +++ b/pkg/swagger/docs/PodUnpauseReport.md @@ -0,0 +1,10 @@ +# PodUnpauseReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errs** | **[]string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PodsApi.md b/pkg/swagger/docs/PodsApi.md new file mode 100644 index 0000000..d0a6236 --- /dev/null +++ b/pkg/swagger/docs/PodsApi.md @@ -0,0 +1,558 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePod**](PodsApi.md#CreatePod) | **Post** /libpod/pods/create | Create a pod +[**InspectPod**](PodsApi.md#InspectPod) | **Get** /libpod/pods/{name}/json | Inspect pod +[**KillPod**](PodsApi.md#KillPod) | **Post** /libpod/pods/{name}/kill | Kill a pod +[**LibpodGenerateKube**](PodsApi.md#LibpodGenerateKube) | **Get** /libpod/generate/{name:.*}/kube | Generate a Kubernetes YAML file. +[**LibpodGenerateSystemd**](PodsApi.md#LibpodGenerateSystemd) | **Get** /libpod/generate/{name:.*}/systemd | Generate Systemd Units +[**LibpodPlayKube**](PodsApi.md#LibpodPlayKube) | **Post** /libpod/play/kube | Play a Kubernetes YAML file. +[**ListPods**](PodsApi.md#ListPods) | **Get** /libpod/pods/json | List pods +[**PausePod**](PodsApi.md#PausePod) | **Post** /libpod/pods/{name}/pause | Pause a pod +[**PodExists**](PodsApi.md#PodExists) | **Get** /libpod/pods/{name}/exists | Pod exists +[**PrunePods**](PodsApi.md#PrunePods) | **Post** /libpod/pods/prune | Prune unused pods +[**RemovePod**](PodsApi.md#RemovePod) | **Delete** /libpod/pods/{name} | Remove pod +[**RestartPod**](PodsApi.md#RestartPod) | **Post** /libpod/pods/{name}/restart | Restart a pod +[**StartPod**](PodsApi.md#StartPod) | **Post** /libpod/pods/{name}/start | Start a pod +[**StatsPod**](PodsApi.md#StatsPod) | **Get** /libpod/pods/stats | Get stats for one or more pods +[**StopPod**](PodsApi.md#StopPod) | **Post** /libpod/pods/{name}/stop | Stop a pod +[**TopPod**](PodsApi.md#TopPod) | **Get** /libpod/pods/{name}/top | List processes +[**UnpausePod**](PodsApi.md#UnpausePod) | **Post** /libpod/pods/{name}/unpause | Unpause a pod + +# **CreatePod** +> CreatePod(ctx, optional) +Create a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***PodsApiCreatePodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiCreatePodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of PodSpecGenerator**](PodSpecGenerator.md)| attributes for creating a pod | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **InspectPod** +> InlineResponse20011 InspectPod(ctx, name) +Inspect pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + +[**InlineResponse20011**](inline_response_200_11.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **KillPod** +> PodKillReport KillPod(ctx, name, optional) +Kill a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + **optional** | ***PodsApiKillPodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiKillPodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **signal** | **optional.String**| signal to be sent to pod | [default to SIGKILL] + +### Return type + +[**PodKillReport**](PodKillReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGenerateKube** +> *os.File LibpodGenerateKube(ctx, name_, optional) +Generate a Kubernetes YAML file. + +Generate Kubernetes YAML based on a pod or container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name or ID of the container or pod. | + **optional** | ***PodsApiLibpodGenerateKubeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiLibpodGenerateKubeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **service** | **optional.Bool**| Generate YAML for a Kubernetes service object. | [default to false] + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGenerateSystemd** +> map[string]string LibpodGenerateSystemd(ctx, name_, optional) +Generate Systemd Units + +Generate Systemd Units based on a pod or container. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name_** | **string**| Name or ID of the container or pod. | + **optional** | ***PodsApiLibpodGenerateSystemdOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiLibpodGenerateSystemdOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **useName** | **optional.Bool**| Use container/pod names instead of IDs. | [default to false] + **new** | **optional.Bool**| Create a new container instead of starting an existing one. | [default to false] + **time** | **optional.Int32**| Stop timeout override. | [default to 10] + **restartPolicy** | **optional.String**| Systemd restart-policy. | [default to on-failure] + **containerPrefix** | **optional.String**| Systemd unit name prefix for containers. | [default to container] + **podPrefix** | **optional.String**| Systemd unit name prefix for pods. | [default to pod] + **separator** | **optional.String**| Systemd unit name separator between name/id and prefix. | [default to -] + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPlayKube** +> PlayKubeReport LibpodPlayKube(ctx, optional) +Play a Kubernetes YAML file. + +Create and run pods based on a Kubernetes YAML file (pod or service kind). + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***PodsApiLibpodPlayKubeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiLibpodPlayKubeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of string**](string.md)| Kubernetes YAML file. | + **network** | **optional.**| Connect the pod to this network. | + **tlsVerify** | **optional.**| Require HTTPS and verify signatures when contacting registries. | [default to true] + +### Return type + +[**PlayKubeReport**](PlayKubeReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ListPods** +> []ListPodsReport ListPods(ctx, optional) +List pods + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***PodsApiListPodsOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiListPodsOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| needs description and plumbing for filters | + +### Return type + +[**[]ListPodsReport**](ListPodsReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PausePod** +> PodPauseReport PausePod(ctx, name) +Pause a pod + +Pause a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + +[**PodPauseReport**](PodPauseReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PodExists** +> PodExists(ctx, name) +Pod exists + +Check if a pod exists by name or ID + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PrunePods** +> PodPruneReport PrunePods(ctx, ) +Prune unused pods + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**PodPruneReport**](PodPruneReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RemovePod** +> PodRmReport RemovePod(ctx, name, optional) +Remove pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + **optional** | ***PodsApiRemovePodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiRemovePodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| force removal of a running pod by first stopping all containers, then removing all containers in the pod | + +### Return type + +[**PodRmReport**](PodRmReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RestartPod** +> PodRestartReport RestartPod(ctx, name) +Restart a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + +[**PodRestartReport**](PodRestartReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StartPod** +> PodStartReport StartPod(ctx, name) +Start a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + +[**PodStartReport**](PodStartReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StatsPod** +> InlineResponse2002 StatsPod(ctx, optional) +Get stats for one or more pods + +Display a live stream of resource usage statistics for the containers in one or more pods + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***PodsApiStatsPodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiStatsPodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **all** | **optional.Bool**| Provide statistics for all running pods. | + **namesOrIDs** | [**optional.Interface of []string**](string.md)| Names or IDs of pods. | + +### Return type + +[**InlineResponse2002**](inline_response_200_2.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **StopPod** +> PodStopReport StopPod(ctx, name, optional) +Stop a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + **optional** | ***PodsApiStopPodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiStopPodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **t** | **optional.Int32**| timeout | + +### Return type + +[**PodStopReport**](PodStopReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **TopPod** +> InlineResponse2002 TopPod(ctx, name, optional) +List processes + +List processes running inside a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| Name of pod to query for processes | + **optional** | ***PodsApiTopPodOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PodsApiTopPodOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **stream** | **optional.Bool**| Stream the output | [default to true] + **psArgs** | **optional.String**| arguments to pass to ps such as aux. Requires ps(1) to be installed in the container if no ps(1) compatible AIX descriptors are used. | [default to -ef] + +### Return type + +[**InlineResponse2002**](inline_response_200_2.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **UnpausePod** +> PodUnpauseReport UnpausePod(ctx, name) +Unpause a pod + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the pod | + +### Return type + +[**PodUnpauseReport**](PodUnpauseReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Port.md b/pkg/swagger/docs/Port.md new file mode 100644 index 0000000..7f9dbf8 --- /dev/null +++ b/pkg/swagger/docs/Port.md @@ -0,0 +1,12 @@ +# Port + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IP** | **string** | Host IP address that the container's port is mapped to | [optional] [default to null] +**PrivatePort** | **int32** | Port on the container | [default to null] +**PublicPort** | **int32** | Port exposed on the host | [optional] [default to null] +**Type_** | **string** | type | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PortBinding.md b/pkg/swagger/docs/PortBinding.md new file mode 100644 index 0000000..fc5ef97 --- /dev/null +++ b/pkg/swagger/docs/PortBinding.md @@ -0,0 +1,10 @@ +# PortBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostIp** | **string** | HostIP is the host IP Address | [optional] [default to null] +**HostPort** | **string** | HostPort is the host port number | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PortMapping.md b/pkg/swagger/docs/PortMapping.md new file mode 100644 index 0000000..10ab8be --- /dev/null +++ b/pkg/swagger/docs/PortMapping.md @@ -0,0 +1,13 @@ +# PortMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerPort** | **int32** | ContainerPort is the port number that will be exposed from the container. Mandatory. | [optional] [default to null] +**HostIp** | **string** | HostIP is the IP that we will bind to on the host. If unset, assumed to be 0.0.0.0 (all interfaces). | [optional] [default to null] +**HostPort** | **int32** | HostPort is the port number that will be forwarded from the host into the container. If omitted, a random port on the host (guaranteed to be over 1024) will be assigned. | [optional] [default to null] +**Protocol** | **string** | Protocol is the protocol forward. Must be either \"tcp\", \"udp\", and \"sctp\", or some combination of these separated by commas. If unset, assumed to be TCP. | [optional] [default to null] +**Range_** | **int32** | Range is the number of ports that will be forwarded, starting at HostPort and ContainerPort and counting up. This is 1-indexed, so 1 is assumed to be a single port (only the Hostport:Containerport mapping will be added), 2 is two ports (both Hostport:Containerport and Hostport+1:Containerport+1), etc. If unset, assumed to be 1 (a single port). Both hostport + range and containerport + range must be less than 65536. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/PosixRlimit.md b/pkg/swagger/docs/PosixRlimit.md new file mode 100644 index 0000000..41ff65f --- /dev/null +++ b/pkg/swagger/docs/PosixRlimit.md @@ -0,0 +1,11 @@ +# PosixRlimit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hard** | **int32** | Hard is the hard limit for the specified type | [optional] [default to null] +**Soft** | **int32** | Soft is the soft limit for the specified type | [optional] [default to null] +**Type_** | **string** | Type of the rlimit to set | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/RemoteSocket.md b/pkg/swagger/docs/RemoteSocket.md new file mode 100644 index 0000000..a5345fc --- /dev/null +++ b/pkg/swagger/docs/RemoteSocket.md @@ -0,0 +1,10 @@ +# RemoteSocket + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Exists** | **bool** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Report.md b/pkg/swagger/docs/Report.md new file mode 100644 index 0000000..ab3db5b --- /dev/null +++ b/pkg/swagger/docs/Report.md @@ -0,0 +1,10 @@ +# Report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **map[string]string** | | [optional] [default to null] +**Id** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/RestartPolicy.md b/pkg/swagger/docs/RestartPolicy.md new file mode 100644 index 0000000..559c5d0 --- /dev/null +++ b/pkg/swagger/docs/RestartPolicy.md @@ -0,0 +1,10 @@ +# RestartPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaximumRetryCount** | **int64** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/RootFs.md b/pkg/swagger/docs/RootFs.md new file mode 100644 index 0000000..5079b94 --- /dev/null +++ b/pkg/swagger/docs/RootFs.md @@ -0,0 +1,10 @@ +# RootFs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Layers** | **[]string** | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Schema2HealthConfig.md b/pkg/swagger/docs/Schema2HealthConfig.md new file mode 100644 index 0000000..020c94f --- /dev/null +++ b/pkg/swagger/docs/Schema2HealthConfig.md @@ -0,0 +1,13 @@ +# Schema2HealthConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interval** | **int64** | | [optional] [default to null] +**Retries** | **int64** | Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit. | [optional] [default to null] +**StartPeriod** | **int64** | | [optional] [default to null] +**Test** | **[]string** | Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell | [optional] [default to null] +**Timeout** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SecurityConfig.md b/pkg/swagger/docs/SecurityConfig.md new file mode 100644 index 0000000..cdd990e --- /dev/null +++ b/pkg/swagger/docs/SecurityConfig.md @@ -0,0 +1,23 @@ +# SecurityConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApparmorProfile** | **string** | | [optional] [default to null] +**CapAdd** | **[]string** | | [optional] [default to null] +**CapDrop** | **[]string** | | [optional] [default to null] +**CapRequired** | **[]string** | | [optional] [default to null] +**LabelOpts** | **[]string** | | [optional] [default to null] +**NoNewPrivs** | **bool** | | [optional] [default to null] +**Privileged** | **bool** | | [optional] [default to null] +**ProcOpts** | **[]string** | | [optional] [default to null] +**ReadOnlyRootfs** | **bool** | | [optional] [default to null] +**ReadOnlyTmpfs** | **bool** | | [optional] [default to null] +**SeccompPolicy** | **int64** | | [optional] [default to null] +**SeccompProfileFromImage** | **string** | | [optional] [default to null] +**SeccompProfilePath** | **string** | | [optional] [default to null] +**SecurityOpts** | **[]string** | | [optional] [default to null] +**Sysctl** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ServiceInfo.md b/pkg/swagger/docs/ServiceInfo.md new file mode 100644 index 0000000..84c7b95 --- /dev/null +++ b/pkg/swagger/docs/ServiceInfo.md @@ -0,0 +1,12 @@ +# ServiceInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LocalLBIndex** | **int64** | | [optional] [default to null] +**Ports** | **[]string** | | [optional] [default to null] +**Tasks** | [**[]Task**](Task.md) | | [optional] [default to null] +**VIP** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ServiceUpdateResponse.md b/pkg/swagger/docs/ServiceUpdateResponse.md new file mode 100644 index 0000000..f77958a --- /dev/null +++ b/pkg/swagger/docs/ServiceUpdateResponse.md @@ -0,0 +1,9 @@ +# ServiceUpdateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Warnings** | **[]string** | Optional warning messages | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SlirpInfo.md b/pkg/swagger/docs/SlirpInfo.md new file mode 100644 index 0000000..a2b67b6 --- /dev/null +++ b/pkg/swagger/docs/SlirpInfo.md @@ -0,0 +1,11 @@ +# SlirpInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Executable** | **string** | | [optional] [default to null] +**Package_** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SpecGenerator.md b/pkg/swagger/docs/SpecGenerator.md new file mode 100644 index 0000000..ab5fadb --- /dev/null +++ b/pkg/swagger/docs/SpecGenerator.md @@ -0,0 +1,94 @@ +# SpecGenerator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | **map[string]string** | Annotations are key-value options passed into the container runtime that can be used to trigger special behavior. Optional. | [optional] [default to null] +**ApparmorProfile** | **string** | ApparmorProfile is the name of the Apparmor profile the container will use. Optional. | [optional] [default to null] +**CapAdd** | **[]string** | CapAdd are capabilities which will be added to the container. Conflicts with Privileged. Optional. | [optional] [default to null] +**CapDrop** | **[]string** | CapDrop are capabilities which will be removed from the container. Conflicts with Privileged. Optional. | [optional] [default to null] +**CgroupParent** | **string** | CgroupParent is the container's CGroup parent. If not set, the default for the current cgroup driver will be used. Optional. | [optional] [default to null] +**Cgroupns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**CgroupsMode** | **string** | CgroupsMode sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely. | [optional] [default to null] +**CniNetworks** | **[]string** | CNINetworks is a list of CNI networks to join the container to. If this list is empty, the default CNI network will be joined instead. If at least one entry is present, we will not join the default network (unless it is part of this list). Only available if NetNS is set to bridge. Optional. | [optional] [default to null] +**Command** | **[]string** | Command is the container's command. If not given and Image is specified, this will be populated by the image's configuration. Optional. | [optional] [default to null] +**ConmonPidFile** | **string** | ConmonPidFile is a path at which a PID file for Conmon will be placed. If not given, a default location will be used. Optional. | [optional] [default to null] +**ContainerCreateCommand** | **[]string** | ContainerCreateCommand is the command that was used to create this container. This will be shown in the output of Inspect() on the container, and may also be used by some tools that wish to recreate the container (e.g. `podman generate systemd --new`). Optional. | [optional] [default to null] +**Devices** | [**[]LinuxDevice**](LinuxDevice.md) | Devices are devices that will be added to the container. Optional. | [optional] [default to null] +**DnsOption** | **[]string** | DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**DnsSearch** | **[]string** | DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**DnsServer** | [**[][]int32**](array.md) | DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default. Conflicts with UseImageResolvConf. Optional. | [optional] [default to null] +**Entrypoint** | **[]string** | Entrypoint is the container's entrypoint. If not given and Image is specified, this will be populated by the image's configuration. Optional. | [optional] [default to null] +**Env** | **map[string]string** | Env is a set of environment variables that will be set in the container. Optional. | [optional] [default to null] +**EnvHost** | **bool** | EnvHost indicates that the host environment should be added to container Optional. | [optional] [default to null] +**Expose** | [***interface{}**](interface{}.md) | Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set. Expose is a map of uint16 (port number) to a string representing protocol. Allowed protocols are \"tcp\", \"udp\", and \"sctp\", or some combination of the three separated by commas. If protocol is set to \"\" we will assume TCP. Only available if NetNS is set to Bridge or Slirp, and PublishExposedPorts is set. Optional. | [optional] [default to null] +**Groups** | **[]string** | Groups are a list of supplemental groups the container's user will be granted access to. Optional. | [optional] [default to null] +**Healthconfig** | [***Schema2HealthConfig**](Schema2HealthConfig.md) | | [optional] [default to null] +**Hostadd** | **[]string** | HostAdd is a set of hosts which will be added to the container's etc/hosts file. Conflicts with UseImageHosts. Optional. | [optional] [default to null] +**Hostname** | **string** | Hostname is the container's hostname. If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private. Optional. | [optional] [default to null] +**Httpproxy** | **bool** | EnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional. | [optional] [default to null] +**Idmappings** | [***IdMappingOptions**](IDMappingOptions.md) | | [optional] [default to null] +**Image** | **string** | Image is the image the container will be based on. The image will be used as the container's root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified. | [optional] [default to null] +**ImageVolumeMode** | **string** | ImageVolumeMode indicates how image volumes will be created. Supported modes are \"ignore\" (do not create), \"tmpfs\" (create as tmpfs), and \"anonymous\" (create as anonymous volumes). The default if unset is anonymous. Optional. | [optional] [default to null] +**Init** | **bool** | Init specifies that an init binary will be mounted into the container, and will be used as PID1. | [optional] [default to null] +**InitPath** | **string** | InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional. | [optional] [default to null] +**Ipcns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Labels** | **map[string]string** | Labels are key-value pairs that are used to add metadata to containers. Optional. | [optional] [default to null] +**LogConfiguration** | [***LogConfig**](LogConfig.md) | | [optional] [default to null] +**Mounts** | [**[]Mount**](Mount.md) | Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. | [optional] [default to null] +**Name** | **string** | Name is the name the container will be given. If no name is provided, one will be randomly generated. Optional. | [optional] [default to null] +**Namespace** | **string** | Namespace is the libpod namespace the container will be placed in. Optional. | [optional] [default to null] +**Netns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**NetworkOptions** | [**map[string][]string**](array.md) | NetworkOptions are additional options for each network Optional. | [optional] [default to null] +**NoNewPrivileges** | **bool** | NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container. | [optional] [default to null] +**OciRuntime** | **string** | OCIRuntime is the name of the OCI runtime that will be used to create the container. If not specified, the default will be used. Optional. | [optional] [default to null] +**OomScoreAdj** | **int64** | OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional. | [optional] [default to null] +**OverlayVolumes** | [**[]OverlayVolume**](OverlayVolume.md) | Overlay volumes are named volumes that will be added to the container. Optional. | [optional] [default to null] +**Pidns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Pod** | **string** | Pod is the ID of the pod the container will join. Optional. | [optional] [default to null] +**Portmappings** | [**[]PortMapping**](PortMapping.md) | PortBindings is a set of ports to map into the container. Only available if NetNS is set to bridge or slirp. Optional. | [optional] [default to null] +**Privileged** | **bool** | Privileged is whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled). TODO: this conflicts with things. TODO: this does more. | [optional] [default to null] +**ProcfsOpts** | **[]string** | ProcOpts are the options used for the proc mount. | [optional] [default to null] +**PublishImagePorts** | **bool** | PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host. This is based on ports set in Expose below, and any ports specified by the Image (if one is given). Only available if NetNS is set to Bridge or Slirp. | [optional] [default to null] +**RLimits** | [**[]PosixRlimit**](POSIXRlimit.md) | Rlimits are POSIX rlimits to apply to the container. Optional. | [optional] [default to null] +**RawImageName** | **string** | RawImageName is the user-specified and unprocessed input referring to a local or a remote image. | [optional] [default to null] +**ReadOnlyFilesystem** | **bool** | ReadOnlyFilesystem indicates that everything will be mounted as read-only | [optional] [default to null] +**Remove** | **bool** | Remove indicates if the container should be removed once it has been started and exits | [optional] [default to null] +**ResourceLimits** | [***LinuxResources**](LinuxResources.md) | | [optional] [default to null] +**RestartPolicy** | **string** | RestartPolicy is the container's restart policy - an action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used. Optional. | [optional] [default to null] +**RestartTries** | **int32** | RestartRetries is the number of attempts that will be made to restart the container. Only available when RestartPolicy is set to \"on-failure\". Optional. | [optional] [default to null] +**Rootfs** | **string** | Rootfs is the path to a directory that will be used as the container's root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified. | [optional] [default to null] +**RootfsPropagation** | **string** | RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional. | [optional] [default to null] +**SdnotifyMode** | **string** | Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET | [optional] [default to null] +**SeccompPolicy** | **string** | SeccompPolicy determines which seccomp profile gets applied the container. valid values: empty,default,image | [optional] [default to null] +**SeccompProfilePath** | **string** | SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile. If not specified, no Seccomp profile will be used. Optional. | [optional] [default to null] +**SelinuxOpts** | **[]string** | SelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional. | [optional] [default to null] +**ShmSize** | **int64** | ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional. | [optional] [default to null] +**StaticIp** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticIpv6** | [***[]int32**](array.md) | | [optional] [default to null] +**StaticMac** | [***[]int32**](array.md) | | [optional] [default to null] +**Stdin** | **bool** | Stdin is whether the container will keep its STDIN open. | [optional] [default to null] +**StopSignal** | **int64** | | [optional] [default to null] +**StopTimeout** | **int32** | StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead. Optional. | [optional] [default to null] +**Sysctl** | **map[string]string** | Sysctl sets kernel parameters for the container | [optional] [default to null] +**Systemd** | **string** | Systemd is whether the container will be started in systemd mode. Valid options are \"true\", \"false\", and \"always\". \"true\" enables this mode only if the binary run in the container is sbin/init or systemd. \"always\" unconditionally enables systemd mode. \"false\" unconditionally disables systemd mode. If enabled, mounts and stop signal will be modified. If set to \"always\" or set to \"true\" and conditionally triggered, conflicts with StopSignal. If not specified, \"false\" will be assumed. Optional. | [optional] [default to null] +**Terminal** | **bool** | Terminal is whether the container will create a PTY. Optional. | [optional] [default to null] +**ThrottleReadBpsDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleReadIOPSDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO read rate limit per cgroup per device, IO per second | [optional] [default to null] +**ThrottleWriteBpsDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, bytes per second | [optional] [default to null] +**ThrottleWriteIOPSDevice** | [**map[string]LinuxThrottleDevice**](LinuxThrottleDevice.md) | IO write rate limit per cgroup per device, IO per second | [optional] [default to null] +**Timezone** | **string** | Timezone is the timezone inside the container. Local means it has the same timezone as the host machine | [optional] [default to null] +**Umask** | **string** | Umask is the umask the init process of the container will be run with. | [optional] [default to null] +**Unified** | **map[string]string** | CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional. | [optional] [default to null] +**UseImageHosts** | **bool** | UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image. Conflicts with HostAdd. | [optional] [default to null] +**UseImageResolveConf** | **bool** | UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image. Conflicts with DNSServer, DNSSearch, DNSOption. | [optional] [default to null] +**User** | **string** | User is the user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container's /etc/passwd. If unset, the container will be run as root. Optional. | [optional] [default to null] +**Userns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Utsns** | [***Namespace**](Namespace.md) | | [optional] [default to null] +**Volumes** | [**[]NamedVolume**](NamedVolume.md) | Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. | [optional] [default to null] +**VolumesFrom** | **[]string** | VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container. | [optional] [default to null] +**WeightDevice** | [**map[string]LinuxWeightDevice**](LinuxWeightDevice.md) | Weight per cgroup per device, can override BlkioWeight | [optional] [default to null] +**WorkDir** | **string** | WorkDir is the container's working directory. If unset, the default, /, will be used. Optional. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/StoreInfo.md b/pkg/swagger/docs/StoreInfo.md new file mode 100644 index 0000000..ceb24ed --- /dev/null +++ b/pkg/swagger/docs/StoreInfo.md @@ -0,0 +1,17 @@ +# StoreInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigFile** | **string** | | [optional] [default to null] +**ContainerStore** | [***ContainerStore**](ContainerStore.md) | | [optional] [default to null] +**GraphDriverName** | **string** | | [optional] [default to null] +**GraphOptions** | [**map[string]interface{}**](interface{}.md) | | [optional] [default to null] +**GraphRoot** | **string** | | [optional] [default to null] +**GraphStatus** | **map[string]string** | | [optional] [default to null] +**ImageStore** | [***ImageStore**](ImageStore.md) | | [optional] [default to null] +**RunRoot** | **string** | | [optional] [default to null] +**VolumePath** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SystemApi.md b/pkg/swagger/docs/SystemApi.md new file mode 100644 index 0000000..c501b35 --- /dev/null +++ b/pkg/swagger/docs/SystemApi.md @@ -0,0 +1,166 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Df**](SystemApi.md#Df) | **Get** /libpod/system/df | Show disk usage +[**LibpodGetEvents**](SystemApi.md#LibpodGetEvents) | **Get** /libpod/events | Get events +[**LibpodGetInfo**](SystemApi.md#LibpodGetInfo) | **Get** /libpod/info | Get info +[**LibpodPingGet**](SystemApi.md#LibpodPingGet) | **Get** /libpod/_ping | Ping service +[**PruneSystem**](SystemApi.md#PruneSystem) | **Post** /libpod/system/prune | Prune unused data +[**SystemVersion**](SystemApi.md#SystemVersion) | **Get** /libpod/version | Component Version information + +# **Df** +> InlineResponse20012 Df(ctx, ) +Show disk usage + +Return information about disk usage for containers, images, and volumes + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse20012**](inline_response_200_12.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGetEvents** +> LibpodGetEvents(ctx, optional) +Get events + +Returns events filtered on query parameters + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***SystemApiLibpodGetEventsOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a SystemApiLibpodGetEventsOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **since** | **optional.String**| start streaming events from this time | + **until** | **optional.String**| stop streaming events later than this | + **filters** | **optional.String**| JSON encoded map[string][]string of constraints | + **stream** | **optional.Bool**| when false, do not follow events | [default to true] + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodGetInfo** +> Info LibpodGetInfo(ctx, ) +Get info + +Returns information on the system and libpod configuration + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**Info**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPingGet** +> string LibpodPingGet(ctx, ) +Ping service + +Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PruneSystem** +> InlineResponse20013 PruneSystem(ctx, ) +Prune unused data + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse20013**](inline_response_200_13.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **SystemVersion** +> InlineResponse20014 SystemVersion(ctx, ) +Component Version information + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse20014**](inline_response_200_14.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SystemCompatApi.md b/pkg/swagger/docs/SystemCompatApi.md new file mode 100644 index 0000000..c57d964 --- /dev/null +++ b/pkg/swagger/docs/SystemCompatApi.md @@ -0,0 +1,117 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CompatSystemVersion**](SystemCompatApi.md#CompatSystemVersion) | **Get** /version | Component Version information +[**GetEvents**](SystemCompatApi.md#GetEvents) | **Get** /events | Get events +[**GetInfo**](SystemCompatApi.md#GetInfo) | **Get** /info | Get info +[**LibpodPingGet**](SystemCompatApi.md#LibpodPingGet) | **Get** /libpod/_ping | Ping service + +# **CompatSystemVersion** +> InlineResponse20014 CompatSystemVersion(ctx, ) +Component Version information + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse20014**](inline_response_200_14.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetEvents** +> GetEvents(ctx, optional) +Get events + +Returns events filtered on query parameters + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***SystemCompatApiGetEventsOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a SystemCompatApiGetEventsOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **since** | **optional.String**| start streaming events from this time | + **until** | **optional.String**| stop streaming events later than this | + **filters** | **optional.String**| JSON encoded map[string][]string of constraints | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetInfo** +> GetInfo(ctx, ) +Get info + +Returns information on the system and libpod configuration + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPingGet** +> string LibpodPingGet(ctx, ) +Ping service + +Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SystemDfContainerReport.md b/pkg/swagger/docs/SystemDfContainerReport.md new file mode 100644 index 0000000..a8aeefb --- /dev/null +++ b/pkg/swagger/docs/SystemDfContainerReport.md @@ -0,0 +1,17 @@ +# SystemDfContainerReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | **[]string** | | [optional] [default to null] +**ContainerID** | **string** | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**Image** | **string** | | [optional] [default to null] +**LocalVolumes** | **int64** | | [optional] [default to null] +**Names** | **string** | | [optional] [default to null] +**RWSize** | **int64** | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SystemDfImageReport.md b/pkg/swagger/docs/SystemDfImageReport.md new file mode 100644 index 0000000..c957cab --- /dev/null +++ b/pkg/swagger/docs/SystemDfImageReport.md @@ -0,0 +1,16 @@ +# SystemDfImageReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Containers** | **int64** | | [optional] [default to null] +**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**ImageID** | **string** | | [optional] [default to null] +**Repository** | **string** | | [optional] [default to null] +**SharedSize** | **int64** | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**Tag** | **string** | | [optional] [default to null] +**UniqueSize** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/SystemDfVolumeReport.md b/pkg/swagger/docs/SystemDfVolumeReport.md new file mode 100644 index 0000000..a5d7e51 --- /dev/null +++ b/pkg/swagger/docs/SystemDfVolumeReport.md @@ -0,0 +1,12 @@ +# SystemDfVolumeReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | **int64** | | [optional] [default to null] +**ReclaimableSize** | **int64** | | [optional] [default to null] +**Size** | **int64** | | [optional] [default to null] +**VolumeName** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Task.md b/pkg/swagger/docs/Task.md new file mode 100644 index 0000000..a54edd5 --- /dev/null +++ b/pkg/swagger/docs/Task.md @@ -0,0 +1,12 @@ +# Task + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointID** | **string** | | [optional] [default to null] +**EndpointIP** | **string** | | [optional] [default to null] +**Info** | **map[string]string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/ThrottleDevice.md b/pkg/swagger/docs/ThrottleDevice.md new file mode 100644 index 0000000..68fd2fe --- /dev/null +++ b/pkg/swagger/docs/ThrottleDevice.md @@ -0,0 +1,10 @@ +# ThrottleDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | | [optional] [default to null] +**Rate** | **int32** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Ulimit.md b/pkg/swagger/docs/Ulimit.md new file mode 100644 index 0000000..c2872a8 --- /dev/null +++ b/pkg/swagger/docs/Ulimit.md @@ -0,0 +1,11 @@ +# Ulimit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hard** | **int64** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**Soft** | **int64** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/UserConfig.md b/pkg/swagger/docs/UserConfig.md new file mode 100644 index 0000000..ef95f66 --- /dev/null +++ b/pkg/swagger/docs/UserConfig.md @@ -0,0 +1,12 @@ +# UserConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupAdd** | **[]string** | | [optional] [default to null] +**IDMappings** | [***IdMappingOptions**](IDMappingOptions.md) | | [optional] [default to null] +**User** | **string** | | [optional] [default to null] +**UsernsMode** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/UtsConfig.md b/pkg/swagger/docs/UtsConfig.md new file mode 100644 index 0000000..ba127a7 --- /dev/null +++ b/pkg/swagger/docs/UtsConfig.md @@ -0,0 +1,12 @@ +# UtsConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostAdd** | **[]string** | | [optional] [default to null] +**Hostname** | **string** | | [optional] [default to null] +**NoHosts** | **bool** | | [optional] [default to null] +**UtsMode** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Version.md b/pkg/swagger/docs/Version.md new file mode 100644 index 0000000..eada6c9 --- /dev/null +++ b/pkg/swagger/docs/Version.md @@ -0,0 +1,15 @@ +# Version + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**APIVersion** | **string** | | [optional] [default to null] +**Built** | **int64** | | [optional] [default to null] +**BuiltTime** | **string** | | [optional] [default to null] +**GitCommit** | **string** | | [optional] [default to null] +**GoVersion** | **string** | | [optional] [default to null] +**OsArch** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/Volume.md b/pkg/swagger/docs/Volume.md new file mode 100644 index 0000000..36b0084 --- /dev/null +++ b/pkg/swagger/docs/Volume.md @@ -0,0 +1,17 @@ +# Volume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **string** | Date/Time the volume was created. | [optional] [default to null] +**Driver** | **string** | Name of the volume driver used by the volume. | [default to null] +**Labels** | **map[string]string** | User-defined key/value metadata. | [default to null] +**Mountpoint** | **string** | Mount path of the volume on the host. | [default to null] +**Name** | **string** | Name of the volume. | [default to null] +**Options** | **map[string]string** | The driver specific options used when creating the volume. | [default to null] +**Scope** | **string** | The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. | [default to null] +**Status** | [**map[string]interface{}**](interface{}.md) | Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. | [optional] [default to null] +**UsageData** | [***VolumeUsageData**](VolumeUsageData.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeCreate.md b/pkg/swagger/docs/VolumeCreate.md new file mode 100644 index 0000000..0893cb2 --- /dev/null +++ b/pkg/swagger/docs/VolumeCreate.md @@ -0,0 +1,12 @@ +# VolumeCreate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Driver** | **string** | Volume driver to use | [optional] [default to null] +**Label** | **map[string]string** | User-defined key/value metadata. | [optional] [default to null] +**Name** | **string** | New volume's name. Can be left blank | [optional] [default to null] +**Options** | **map[string]string** | Mapping of driver options and values. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeCreateBody.md b/pkg/swagger/docs/VolumeCreateBody.md new file mode 100644 index 0000000..c22b8aa --- /dev/null +++ b/pkg/swagger/docs/VolumeCreateBody.md @@ -0,0 +1,12 @@ +# VolumeCreateBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Driver** | **string** | Name of the volume driver to use. | [default to null] +**DriverOpts** | **map[string]string** | A mapping of driver options and values. These options are passed directly to the driver and are driver specific. | [default to null] +**Labels** | **map[string]string** | User-defined key/value metadata. | [default to null] +**Name** | **string** | The new volume's name. If not specified, Docker generates a name. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeInfo.md b/pkg/swagger/docs/VolumeInfo.md new file mode 100644 index 0000000..7d7e6da --- /dev/null +++ b/pkg/swagger/docs/VolumeInfo.md @@ -0,0 +1,15 @@ +# VolumeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **string** | Date/Time the volume was created. | [optional] [default to null] +**Driver** | **string** | Name of the volume driver used by the volume. Only supports local driver | [default to null] +**Labels** | **map[string]string** | User-defined key/value metadata. Always included | [optional] [default to null] +**Mountpoint** | **string** | Mount path of the volume on the host. | [default to null] +**Name** | **string** | Name of the volume. | [default to null] +**Options** | **map[string]string** | The driver specific options used when creating the volume. | [default to null] +**Scope** | **string** | The level at which the volume exists. Libpod does not implement volume scoping, and this is provided solely for Docker compatibility. The value is only \"local\". | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeListBody.md b/pkg/swagger/docs/VolumeListBody.md new file mode 100644 index 0000000..6a1d102 --- /dev/null +++ b/pkg/swagger/docs/VolumeListBody.md @@ -0,0 +1,9 @@ +# VolumeListBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Volumes** | [**[]VolumeInfo**](VolumeInfo.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeListOkBody.md b/pkg/swagger/docs/VolumeListOkBody.md new file mode 100644 index 0000000..2fde41e --- /dev/null +++ b/pkg/swagger/docs/VolumeListOkBody.md @@ -0,0 +1,10 @@ +# VolumeListOkBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Volumes** | [**[]Volume**](Volume.md) | List of volumes | [default to null] +**Warnings** | **[]string** | Warnings that occurred when fetching the list of volumes. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumePruneReport.md b/pkg/swagger/docs/VolumePruneReport.md new file mode 100644 index 0000000..6fe4ff4 --- /dev/null +++ b/pkg/swagger/docs/VolumePruneReport.md @@ -0,0 +1,10 @@ +# VolumePruneReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Err** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumeUsageData.md b/pkg/swagger/docs/VolumeUsageData.md new file mode 100644 index 0000000..15c1ef6 --- /dev/null +++ b/pkg/swagger/docs/VolumeUsageData.md @@ -0,0 +1,10 @@ +# VolumeUsageData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefCount** | **int64** | The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. | [default to null] +**Size** | **int64** | Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumesApi.md b/pkg/swagger/docs/VolumesApi.md new file mode 100644 index 0000000..c3582ba --- /dev/null +++ b/pkg/swagger/docs/VolumesApi.md @@ -0,0 +1,160 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LibpodCreateVolume**](VolumesApi.md#LibpodCreateVolume) | **Post** /libpod/volumes/create | Create a volume +[**LibpodInspectVolume**](VolumesApi.md#LibpodInspectVolume) | **Get** /libpod/volumes/{name}/json | Inspect volume +[**LibpodListVolumes**](VolumesApi.md#LibpodListVolumes) | **Get** /libpod/volumes/json | List volumes +[**LibpodPruneVolumes**](VolumesApi.md#LibpodPruneVolumes) | **Post** /libpod/volumes/prune | Prune volumes +[**LibpodRemoveVolume**](VolumesApi.md#LibpodRemoveVolume) | **Delete** /libpod/volumes/{name} | Remove volume + +# **LibpodCreateVolume** +> InlineResponse20015 LibpodCreateVolume(ctx, optional) +Create a volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***VolumesApiLibpodCreateVolumeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesApiLibpodCreateVolumeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of VolumeCreate**](VolumeCreate.md)| attributes for creating a container | + +### Return type + +[**InlineResponse20015**](inline_response_200_15.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodInspectVolume** +> InlineResponse20015 LibpodInspectVolume(ctx, name) +Inspect volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the volume | + +### Return type + +[**InlineResponse20015**](inline_response_200_15.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodListVolumes** +> []Volume LibpodListVolumes(ctx, optional) +List volumes + +Returns a list of volumes + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***VolumesApiLibpodListVolumesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesApiLibpodListVolumesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: - driver=<volume-driver-name> Matches volumes based on their driver. - label=<key> or label=<key>:<value> Matches volumes based on the presence of a label alone or a label and a value. - name=<volume-name> Matches all of volume name. - opt=<driver-option> Matches a storage driver options | + +### Return type + +[**[]Volume**](Volume.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodPruneVolumes** +> []VolumePruneReport LibpodPruneVolumes(ctx, ) +Prune volumes + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**[]VolumePruneReport**](VolumePruneReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **LibpodRemoveVolume** +> LibpodRemoveVolume(ctx, name, optional) +Remove volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the volume | + **optional** | ***VolumesApiLibpodRemoveVolumeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesApiLibpodRemoveVolumeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| force removal | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/VolumesCompatApi.md b/pkg/swagger/docs/VolumesCompatApi.md new file mode 100644 index 0000000..25365e6 --- /dev/null +++ b/pkg/swagger/docs/VolumesCompatApi.md @@ -0,0 +1,172 @@ +# {{classname}} + +All URIs are relative to *http://podman.io/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVolume**](VolumesCompatApi.md#CreateVolume) | **Post** /volumes/create | Create a volume +[**InspectVolume**](VolumesCompatApi.md#InspectVolume) | **Get** /volumes/{name} | Inspect volume +[**ListVolumes**](VolumesCompatApi.md#ListVolumes) | **Get** /volumes | List volumes +[**PruneVolumes**](VolumesCompatApi.md#PruneVolumes) | **Post** /volumes/prune | Prune volumes +[**RemoveVolume**](VolumesCompatApi.md#RemoveVolume) | **Delete** /volumes/{name} | Remove volume + +# **CreateVolume** +> InlineResponse20018 CreateVolume(ctx, optional) +Create a volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***VolumesCompatApiCreateVolumeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesCompatApiCreateVolumeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**optional.Interface of VolumeCreateBody**](VolumeCreateBody.md)| attributes for creating a container. +Note: If a volume by the same name exists, a 201 response with that volume's information will be generated. + | + +### Return type + +[**InlineResponse20018**](inline_response_200_18.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/x-tar + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **InspectVolume** +> InlineResponse20018 InspectVolume(ctx, name) +Inspect volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the volume | + +### Return type + +[**InlineResponse20018**](inline_response_200_18.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ListVolumes** +> InlineResponse20017 ListVolumes(ctx, optional) +List volumes + +Returns a list of volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***VolumesCompatApiListVolumesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesCompatApiListVolumesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters: - driver=<volume-driver-name> Matches volumes based on their driver. - label=<key> or label=<key>:<value> Matches volumes based on the presence of a label alone or a label and a value. - name=<volume-name> Matches all of volume name. Note: The boolean `dangling` filter is not yet implemented for this endpoint. | + +### Return type + +[**InlineResponse20017**](inline_response_200_17.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **PruneVolumes** +> InlineResponse20019 PruneVolumes(ctx, optional) +Prune volumes + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***VolumesCompatApiPruneVolumesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesCompatApiPruneVolumesOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **optional.String**| JSON encoded value of filters (a map[string][]string) to match volumes against before pruning. Note: No filters are currently supported and any filters specified will cause an error response. | + +### Return type + +[**InlineResponse20019**](inline_response_200_19.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **RemoveVolume** +> RemoveVolume(ctx, name, optional) +Remove volume + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| the name or ID of the volume | + **optional** | ***VolumesCompatApiRemoveVolumeOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VolumesCompatApiRemoveVolumeOpts struct +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **force** | **optional.Bool**| Force removal of the volume. This actually only causes errors due to the names volume not being found to be suppressed, which is the behaviour Docker implements. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/pkg/swagger/docs/WeightDevice.md b/pkg/swagger/docs/WeightDevice.md new file mode 100644 index 0000000..0bad8d0 --- /dev/null +++ b/pkg/swagger/docs/WeightDevice.md @@ -0,0 +1,10 @@ +# WeightDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Path** | **string** | | [optional] [default to null] +**Weight** | **int32** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/pkg/swagger/git_push.sh b/pkg/swagger/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/pkg/swagger/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/pkg/swagger/model_address.go b/pkg/swagger/model_address.go new file mode 100644 index 0000000..44adb31 --- /dev/null +++ b/pkg/swagger/model_address.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Address represents an IP address +type Address struct { + Addr string `json:"Addr,omitempty"` + PrefixLen int64 `json:"PrefixLen,omitempty"` +} diff --git a/pkg/swagger/model_authenticate_ok_body.go b/pkg/swagger/model_authenticate_ok_body.go new file mode 100644 index 0000000..368825e --- /dev/null +++ b/pkg/swagger/model_authenticate_ok_body.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// AuthenticateOKBody authenticate o k body +type AuthenticateOkBody struct { + // An opaque token used to authenticate a user after a successful login + IdentityToken string `json:"IdentityToken"` + // The status of the authentication + Status string `json:"Status"` +} diff --git a/pkg/swagger/model_auto_user_ns_options.go b/pkg/swagger/model_auto_user_ns_options.go new file mode 100644 index 0000000..2564a43 --- /dev/null +++ b/pkg/swagger/model_auto_user_ns_options.go @@ -0,0 +1,25 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type AutoUserNsOptions struct { + // AdditionalGIDMappings specified additional GID mappings to include in the generated user namespace. + AdditionalGIDMappings []IdMap `json:"AdditionalGIDMappings,omitempty"` + // AdditionalUIDMappings specified additional UID mappings to include in the generated user namespace. + AdditionalUIDMappings []IdMap `json:"AdditionalUIDMappings,omitempty"` + // GroupFile to use if the container uses a volume. + GroupFile string `json:"GroupFile,omitempty"` + // InitialSize defines the minimum size for the user namespace. The created user namespace will have at least this size. + InitialSize int32 `json:"InitialSize,omitempty"` + // PasswdFile to use if the container uses a volume. + PasswdFile string `json:"PasswdFile,omitempty"` + // Size defines the size for the user namespace. If it is set to a value bigger than 0, the user namespace will have exactly this size. If it is not set, some heuristics will be used to find its size. + Size int32 `json:"Size,omitempty"` +} diff --git a/pkg/swagger/model_body.go b/pkg/swagger/model_body.go new file mode 100644 index 0000000..c40e0c1 --- /dev/null +++ b/pkg/swagger/model_body.go @@ -0,0 +1,33 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body struct { + // Attach to stderr of the exec command + AttachStderr bool `json:"AttachStderr,omitempty"` + // Attach to stdin of the exec command + AttachStdin bool `json:"AttachStdin,omitempty"` + // Attach to stdout of the exec command + AttachStdout bool `json:"AttachStdout,omitempty"` + // Command to run, as a string or array of strings. + Cmd []string `json:"Cmd,omitempty"` + // \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _.\" + DetachKeys string `json:"DetachKeys,omitempty"` + // A list of environment variables in the form [\"VAR=value\", ...] + Env []string `json:"Env,omitempty"` + // Runs the exec process with extended privileges + Privileged bool `json:"Privileged,omitempty"` + // Allocate a pseudo-TTY + Tty bool `json:"Tty,omitempty"` + // \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" + User string `json:"User,omitempty"` + // The working directory for the exec process inside the container. + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_body_1.go b/pkg/swagger/model_body_1.go new file mode 100644 index 0000000..bdc1f40 --- /dev/null +++ b/pkg/swagger/model_body_1.go @@ -0,0 +1,33 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body1 struct { + // Attach to stderr of the exec command + AttachStderr bool `json:"AttachStderr,omitempty"` + // Attach to stdin of the exec command + AttachStdin bool `json:"AttachStdin,omitempty"` + // Attach to stdout of the exec command + AttachStdout bool `json:"AttachStdout,omitempty"` + // Command to run, as a string or array of strings. + Cmd []string `json:"Cmd,omitempty"` + // \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _.\" + DetachKeys string `json:"DetachKeys,omitempty"` + // A list of environment variables in the form [\"VAR=value\", ...] + Env []string `json:"Env,omitempty"` + // Runs the exec process with extended privileges + Privileged bool `json:"Privileged,omitempty"` + // Allocate a pseudo-TTY + Tty bool `json:"Tty,omitempty"` + // \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" + User string `json:"User,omitempty"` + // The working directory for the exec process inside the container. + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_body_10.go b/pkg/swagger/model_body_10.go new file mode 100644 index 0000000..7493779 --- /dev/null +++ b/pkg/swagger/model_body_10.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "os" +) + +type Body10 struct { + // tarball of container image + Upload **os.File `json:"upload"` +} diff --git a/pkg/swagger/model_body_11.go b/pkg/swagger/model_body_11.go new file mode 100644 index 0000000..54eaaa9 --- /dev/null +++ b/pkg/swagger/model_body_11.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "os" +) + +type Body11 struct { + // tarball of container image + Upload **os.File `json:"upload"` +} diff --git a/pkg/swagger/model_body_2.go b/pkg/swagger/model_body_2.go new file mode 100644 index 0000000..755f207 --- /dev/null +++ b/pkg/swagger/model_body_2.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body2 struct { + // Detach from the command. Not presently supported. + Detach bool `json:"Detach,omitempty"` + // Allocate a pseudo-TTY. Presently ignored. + Tty bool `json:"Tty,omitempty"` +} diff --git a/pkg/swagger/model_body_3.go b/pkg/swagger/model_body_3.go new file mode 100644 index 0000000..625b45c --- /dev/null +++ b/pkg/swagger/model_body_3.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body3 struct { + // Detach from the command. Not presently supported. + Detach bool `json:"Detach,omitempty"` + // Allocate a pseudo-TTY. Presently ignored. + Tty bool `json:"Tty,omitempty"` +} diff --git a/pkg/swagger/model_body_4.go b/pkg/swagger/model_body_4.go new file mode 100644 index 0000000..decdfa1 --- /dev/null +++ b/pkg/swagger/model_body_4.go @@ -0,0 +1,33 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body4 struct { + // Attach to stderr of the exec command + AttachStderr bool `json:"AttachStderr,omitempty"` + // Attach to stdin of the exec command + AttachStdin bool `json:"AttachStdin,omitempty"` + // Attach to stdout of the exec command + AttachStdout bool `json:"AttachStdout,omitempty"` + // Command to run, as a string or array of strings. + Cmd []string `json:"Cmd,omitempty"` + // \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _.\" + DetachKeys string `json:"DetachKeys,omitempty"` + // A list of environment variables in the form [\"VAR=value\", ...] + Env []string `json:"Env,omitempty"` + // Runs the exec process with extended privileges + Privileged bool `json:"Privileged,omitempty"` + // Allocate a pseudo-TTY + Tty bool `json:"Tty,omitempty"` + // \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" + User string `json:"User,omitempty"` + // The working directory for the exec process inside the container. + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_body_5.go b/pkg/swagger/model_body_5.go new file mode 100644 index 0000000..c7fb97d --- /dev/null +++ b/pkg/swagger/model_body_5.go @@ -0,0 +1,33 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body5 struct { + // Attach to stderr of the exec command + AttachStderr bool `json:"AttachStderr,omitempty"` + // Attach to stdin of the exec command + AttachStdin bool `json:"AttachStdin,omitempty"` + // Attach to stdout of the exec command + AttachStdout bool `json:"AttachStdout,omitempty"` + // Command to run, as a string or array of strings. + Cmd []string `json:"Cmd,omitempty"` + // \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _.\" + DetachKeys string `json:"DetachKeys,omitempty"` + // A list of environment variables in the form [\"VAR=value\", ...] + Env []string `json:"Env,omitempty"` + // Runs the exec process with extended privileges + Privileged bool `json:"Privileged,omitempty"` + // Allocate a pseudo-TTY + Tty bool `json:"Tty,omitempty"` + // \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\" + User string `json:"User,omitempty"` + // The working directory for the exec process inside the container. + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_body_6.go b/pkg/swagger/model_body_6.go new file mode 100644 index 0000000..df099df --- /dev/null +++ b/pkg/swagger/model_body_6.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body6 struct { + // Detach from the command. Not presently supported. + Detach bool `json:"Detach,omitempty"` + // Allocate a pseudo-TTY. Presently ignored. + Tty bool `json:"Tty,omitempty"` +} diff --git a/pkg/swagger/model_body_7.go b/pkg/swagger/model_body_7.go new file mode 100644 index 0000000..7bd4811 --- /dev/null +++ b/pkg/swagger/model_body_7.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Body7 struct { + // Detach from the command. Not presently supported. + Detach bool `json:"Detach,omitempty"` + // Allocate a pseudo-TTY. Presently ignored. + Tty bool `json:"Tty,omitempty"` +} diff --git a/pkg/swagger/model_body_8.go b/pkg/swagger/model_body_8.go new file mode 100644 index 0000000..b105e4f --- /dev/null +++ b/pkg/swagger/model_body_8.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "os" +) + +type Body8 struct { + // tarball for imported image + Upload **os.File `json:"upload"` +} diff --git a/pkg/swagger/model_body_9.go b/pkg/swagger/model_body_9.go new file mode 100644 index 0000000..5d7bb57 --- /dev/null +++ b/pkg/swagger/model_body_9.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "os" +) + +type Body9 struct { + // tarball for imported image + Upload **os.File `json:"upload"` +} diff --git a/pkg/swagger/model_cgroup_config.go b/pkg/swagger/model_cgroup_config.go new file mode 100644 index 0000000..fd2816e --- /dev/null +++ b/pkg/swagger/model_cgroup_config.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// CgroupConfig configures the cgroup namespace for the container +type CgroupConfig struct { + CgroupMode string `json:"CgroupMode,omitempty"` + CgroupParent string `json:"CgroupParent,omitempty"` + Cgroupns string `json:"Cgroupns,omitempty"` + Cgroups string `json:"Cgroups,omitempty"` +} diff --git a/pkg/swagger/model_change.go b/pkg/swagger/model_change.go new file mode 100644 index 0000000..d90727c --- /dev/null +++ b/pkg/swagger/model_change.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// It describes changes of the files in the path respect to the parent layers. The change could be modify, add, delete. This is used for layer diff. +type Change struct { + Kind int64 `json:"Kind,omitempty"` + Path string `json:"Path,omitempty"` +} diff --git a/pkg/swagger/model_config.go b/pkg/swagger/model_config.go new file mode 100644 index 0000000..682e24f --- /dev/null +++ b/pkg/swagger/model_config.go @@ -0,0 +1,39 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// It should hold only portable information about the container. Here, \"portable\" means \"independent from the host we are running on\". Non-portable information *should* appear in HostConfig. All fields added to this struct must be marked `omitempty` to keep getting predictable hashes from the old `v1Compatibility` configuration. +type Config struct { + ArgsEscaped bool `json:"ArgsEscaped,omitempty"` + AttachStderr bool `json:"AttachStderr,omitempty"` + AttachStdin bool `json:"AttachStdin,omitempty"` + AttachStdout bool `json:"AttachStdout,omitempty"` + Cmd *[]string `json:"Cmd,omitempty"` + Domainname string `json:"Domainname,omitempty"` + Entrypoint *[]string `json:"Entrypoint,omitempty"` + Env []string `json:"Env,omitempty"` + ExposedPorts *map[string]interface{} `json:"ExposedPorts,omitempty"` + Healthcheck *HealthConfig `json:"Healthcheck,omitempty"` + Hostname string `json:"Hostname,omitempty"` + Image string `json:"Image,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + MacAddress string `json:"MacAddress,omitempty"` + NetworkDisabled bool `json:"NetworkDisabled,omitempty"` + OnBuild []string `json:"OnBuild,omitempty"` + OpenStdin bool `json:"OpenStdin,omitempty"` + Shell *[]string `json:"Shell,omitempty"` + StdinOnce bool `json:"StdinOnce,omitempty"` + StopSignal string `json:"StopSignal,omitempty"` + StopTimeout int64 `json:"StopTimeout,omitempty"` + Tty bool `json:"Tty,omitempty"` + User string `json:"User,omitempty"` + Volumes map[string]interface{} `json:"Volumes,omitempty"` + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_config_reference.go b/pkg/swagger/model_config_reference.go new file mode 100644 index 0000000..c6a32ab --- /dev/null +++ b/pkg/swagger/model_config_reference.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ConfigReference specifies the source which provides a network's configuration +type ConfigReference struct { + Network string `json:"Network,omitempty"` +} diff --git a/pkg/swagger/model_conmon_info.go b/pkg/swagger/model_conmon_info.go new file mode 100644 index 0000000..1ad8392 --- /dev/null +++ b/pkg/swagger/model_conmon_info.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ConmonInfo describes the conmon executable being used +type ConmonInfo struct { + Package_ string `json:"package,omitempty"` + Path string `json:"path,omitempty"` + Version string `json:"version,omitempty"` +} diff --git a/pkg/swagger/model_container_basic_config.go b/pkg/swagger/model_container_basic_config.go new file mode 100644 index 0000000..ae2395b --- /dev/null +++ b/pkg/swagger/model_container_basic_config.go @@ -0,0 +1,67 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ContainerBasicConfig struct { + // Annotations are key-value options passed into the container runtime that can be used to trigger special behavior. Optional. + Annotations map[string]string `json:"annotations,omitempty"` + // Command is the container's command. If not given and Image is specified, this will be populated by the image's configuration. Optional. + Command []string `json:"command,omitempty"` + // ConmonPidFile is a path at which a PID file for Conmon will be placed. If not given, a default location will be used. Optional. + ConmonPidFile string `json:"conmon_pid_file,omitempty"` + // ContainerCreateCommand is the command that was used to create this container. This will be shown in the output of Inspect() on the container, and may also be used by some tools that wish to recreate the container (e.g. `podman generate systemd --new`). Optional. + ContainerCreateCommand []string `json:"containerCreateCommand,omitempty"` + // Entrypoint is the container's entrypoint. If not given and Image is specified, this will be populated by the image's configuration. Optional. + Entrypoint []string `json:"entrypoint,omitempty"` + // Env is a set of environment variables that will be set in the container. Optional. + Env map[string]string `json:"env,omitempty"` + // EnvHost indicates that the host environment should be added to container Optional. + EnvHost bool `json:"env_host,omitempty"` + // Hostname is the container's hostname. If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private. Optional. + Hostname string `json:"hostname,omitempty"` + // EnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional. + Httpproxy bool `json:"httpproxy,omitempty"` + // Labels are key-value pairs that are used to add metadata to containers. Optional. + Labels map[string]string `json:"labels,omitempty"` + LogConfiguration *LogConfig `json:"log_configuration,omitempty"` + // Name is the name the container will be given. If no name is provided, one will be randomly generated. Optional. + Name string `json:"name,omitempty"` + // Namespace is the libpod namespace the container will be placed in. Optional. + Namespace string `json:"namespace,omitempty"` + // OCIRuntime is the name of the OCI runtime that will be used to create the container. If not specified, the default will be used. Optional. + OciRuntime string `json:"oci_runtime,omitempty"` + Pidns *Namespace `json:"pidns,omitempty"` + // Pod is the ID of the pod the container will join. Optional. + Pod string `json:"pod,omitempty"` + // RawImageName is the user-specified and unprocessed input referring to a local or a remote image. + RawImageName string `json:"raw_image_name,omitempty"` + // Remove indicates if the container should be removed once it has been started and exits + Remove bool `json:"remove,omitempty"` + // RestartPolicy is the container's restart policy - an action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used. Optional. + RestartPolicy string `json:"restart_policy,omitempty"` + // RestartRetries is the number of attempts that will be made to restart the container. Only available when RestartPolicy is set to \"on-failure\". Optional. + RestartTries int32 `json:"restart_tries,omitempty"` + // Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET + SdnotifyMode string `json:"sdnotifyMode,omitempty"` + // Stdin is whether the container will keep its STDIN open. + Stdin bool `json:"stdin,omitempty"` + StopSignal int64 `json:"stop_signal,omitempty"` + // StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead. Optional. + StopTimeout int32 `json:"stop_timeout,omitempty"` + // Sysctl sets kernel parameters for the container + Sysctl map[string]string `json:"sysctl,omitempty"` + // Systemd is whether the container will be started in systemd mode. Valid options are \"true\", \"false\", and \"always\". \"true\" enables this mode only if the binary run in the container is sbin/init or systemd. \"always\" unconditionally enables systemd mode. \"false\" unconditionally disables systemd mode. If enabled, mounts and stop signal will be modified. If set to \"always\" or set to \"true\" and conditionally triggered, conflicts with StopSignal. If not specified, \"false\" will be assumed. Optional. + Systemd string `json:"systemd,omitempty"` + // Terminal is whether the container will create a PTY. Optional. + Terminal bool `json:"terminal,omitempty"` + // Timezone is the timezone inside the container. Local means it has the same timezone as the host machine + Timezone string `json:"timezone,omitempty"` + Utsns *Namespace `json:"utsns,omitempty"` +} diff --git a/pkg/swagger/model_container_cgroup_config.go b/pkg/swagger/model_container_cgroup_config.go new file mode 100644 index 0000000..b5ab33d --- /dev/null +++ b/pkg/swagger/model_container_cgroup_config.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerCgroupConfig contains configuration information about a container's cgroups. +type ContainerCgroupConfig struct { + // CgroupParent is the container's CGroup parent. If not set, the default for the current cgroup driver will be used. Optional. + CgroupParent string `json:"cgroup_parent,omitempty"` + Cgroupns *Namespace `json:"cgroupns,omitempty"` + // CgroupsMode sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely. + CgroupsMode string `json:"cgroups_mode,omitempty"` +} diff --git a/pkg/swagger/model_container_change_response_item.go b/pkg/swagger/model_container_change_response_item.go new file mode 100644 index 0000000..e30aa46 --- /dev/null +++ b/pkg/swagger/model_container_change_response_item.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerChangeResponseItem change item in response to ContainerChanges operation +type ContainerChangeResponseItem struct { + // Kind of change + Kind int32 `json:"Kind"` + // Path to file that has changed + Path string `json:"Path"` +} diff --git a/pkg/swagger/model_container_create_created_body.go b/pkg/swagger/model_container_create_created_body.go new file mode 100644 index 0000000..d5f0045 --- /dev/null +++ b/pkg/swagger/model_container_create_created_body.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerCreateCreatedBody OK response to ContainerCreate operation +type ContainerCreateCreatedBody struct { + // The ID of the created container + Id string `json:"Id"` + // Warnings encountered when creating the container + Warnings []string `json:"Warnings"` +} diff --git a/pkg/swagger/model_container_health_check_config.go b/pkg/swagger/model_container_health_check_config.go new file mode 100644 index 0000000..9c20bce --- /dev/null +++ b/pkg/swagger/model_container_health_check_config.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerHealthCheckConfig describes a container healthcheck with attributes like command, retries, interval, start period, and timeout. +type ContainerHealthCheckConfig struct { + Healthconfig *Schema2HealthConfig `json:"healthconfig,omitempty"` +} diff --git a/pkg/swagger/model_container_named_volume.go b/pkg/swagger/model_container_named_volume.go new file mode 100644 index 0000000..f54ec2b --- /dev/null +++ b/pkg/swagger/model_container_named_volume.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerNamedVolume is a named volume that will be mounted into the container. Each named volume is a libpod Volume present in the state. +type ContainerNamedVolume struct { + // Dest is the mount's destination + Dest string `json:"dest,omitempty"` + // Options are fstab style mount options + Options []string `json:"options,omitempty"` + // Name is the name of the volume to mount in. Must resolve to a valid volume present in this Podman. + VolumeName string `json:"volumeName,omitempty"` +} diff --git a/pkg/swagger/model_container_network_config.go b/pkg/swagger/model_container_network_config.go new file mode 100644 index 0000000..5c6d0b4 --- /dev/null +++ b/pkg/swagger/model_container_network_config.go @@ -0,0 +1,40 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerNetworkConfig contains information on a container's network configuration. +type ContainerNetworkConfig struct { + // CNINetworks is a list of CNI networks to join the container to. If this list is empty, the default CNI network will be joined instead. If at least one entry is present, we will not join the default network (unless it is part of this list). Only available if NetNS is set to bridge. Optional. + CniNetworks []string `json:"cni_networks,omitempty"` + // DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsOption []string `json:"dns_option,omitempty"` + // DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsSearch []string `json:"dns_search,omitempty"` + // DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsServer [][]int32 `json:"dns_server,omitempty"` + // Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set. Expose is a map of uint16 (port number) to a string representing protocol. Allowed protocols are \"tcp\", \"udp\", and \"sctp\", or some combination of the three separated by commas. If protocol is set to \"\" we will assume TCP. Only available if NetNS is set to Bridge or Slirp, and PublishExposedPorts is set. Optional. + Expose *interface{} `json:"expose,omitempty"` + // HostAdd is a set of hosts which will be added to the container's etc/hosts file. Conflicts with UseImageHosts. Optional. + Hostadd []string `json:"hostadd,omitempty"` + Netns *Namespace `json:"netns,omitempty"` + // NetworkOptions are additional options for each network Optional. + NetworkOptions map[string][]string `json:"network_options,omitempty"` + // PortBindings is a set of ports to map into the container. Only available if NetNS is set to bridge or slirp. Optional. + Portmappings []PortMapping `json:"portmappings,omitempty"` + // PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host. This is based on ports set in Expose below, and any ports specified by the Image (if one is given). Only available if NetNS is set to Bridge or Slirp. + PublishImagePorts bool `json:"publish_image_ports,omitempty"` + StaticIp *[]int32 `json:"static_ip,omitempty"` + StaticIpv6 *[]int32 `json:"static_ipv6,omitempty"` + StaticMac *[]int32 `json:"static_mac,omitempty"` + // UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image. Conflicts with HostAdd. + UseImageHosts bool `json:"use_image_hosts,omitempty"` + // UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image. Conflicts with DNSServer, DNSSearch, DNSOption. + UseImageResolveConf bool `json:"use_image_resolve_conf,omitempty"` +} diff --git a/pkg/swagger/model_container_node.go b/pkg/swagger/model_container_node.go new file mode 100644 index 0000000..f01f77a --- /dev/null +++ b/pkg/swagger/model_container_node.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerNode stores information about the node that a container is running on. It's only used by the Docker Swarm standalone API +type ContainerNode struct { + Addr string `json:"Addr,omitempty"` + Cpus int64 `json:"Cpus,omitempty"` + ID string `json:"ID,omitempty"` + IP string `json:"IP,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Memory int64 `json:"Memory,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_container_resource_config.go b/pkg/swagger/model_container_resource_config.go new file mode 100644 index 0000000..674ab02 --- /dev/null +++ b/pkg/swagger/model_container_resource_config.go @@ -0,0 +1,30 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ContainerResourceConfig struct { + // OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional. + OomScoreAdj int64 `json:"oom_score_adj,omitempty"` + // Rlimits are POSIX rlimits to apply to the container. Optional. + RLimits []PosixRlimit `json:"r_limits,omitempty"` + ResourceLimits *LinuxResources `json:"resource_limits,omitempty"` + // IO read rate limit per cgroup per device, bytes per second + ThrottleReadBpsDevice map[string]LinuxThrottleDevice `json:"throttleReadBpsDevice,omitempty"` + // IO read rate limit per cgroup per device, IO per second + ThrottleReadIOPSDevice map[string]LinuxThrottleDevice `json:"throttleReadIOPSDevice,omitempty"` + // IO write rate limit per cgroup per device, bytes per second + ThrottleWriteBpsDevice map[string]LinuxThrottleDevice `json:"throttleWriteBpsDevice,omitempty"` + // IO write rate limit per cgroup per device, IO per second + ThrottleWriteIOPSDevice map[string]LinuxThrottleDevice `json:"throttleWriteIOPSDevice,omitempty"` + // CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional. + Unified map[string]string `json:"unified,omitempty"` + // Weight per cgroup per device, can override BlkioWeight + WeightDevice map[string]LinuxWeightDevice `json:"weightDevice,omitempty"` +} diff --git a/pkg/swagger/model_container_security_config.go b/pkg/swagger/model_container_security_config.go new file mode 100644 index 0000000..7ae7963 --- /dev/null +++ b/pkg/swagger/model_container_security_config.go @@ -0,0 +1,42 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerSecurityConfig is a container's security features, including SELinux, Apparmor, and Seccomp. +type ContainerSecurityConfig struct { + // ApparmorProfile is the name of the Apparmor profile the container will use. Optional. + ApparmorProfile string `json:"apparmor_profile,omitempty"` + // CapAdd are capabilities which will be added to the container. Conflicts with Privileged. Optional. + CapAdd []string `json:"cap_add,omitempty"` + // CapDrop are capabilities which will be removed from the container. Conflicts with Privileged. Optional. + CapDrop []string `json:"cap_drop,omitempty"` + // Groups are a list of supplemental groups the container's user will be granted access to. Optional. + Groups []string `json:"groups,omitempty"` + Idmappings *IdMappingOptions `json:"idmappings,omitempty"` + // NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container. + NoNewPrivileges bool `json:"no_new_privileges,omitempty"` + // Privileged is whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled). TODO: this conflicts with things. TODO: this does more. + Privileged bool `json:"privileged,omitempty"` + // ProcOpts are the options used for the proc mount. + ProcfsOpts []string `json:"procfs_opts,omitempty"` + // ReadOnlyFilesystem indicates that everything will be mounted as read-only + ReadOnlyFilesystem bool `json:"read_only_filesystem,omitempty"` + // SeccompPolicy determines which seccomp profile gets applied the container. valid values: empty,default,image + SeccompPolicy string `json:"seccomp_policy,omitempty"` + // SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile. If not specified, no Seccomp profile will be used. Optional. + SeccompProfilePath string `json:"seccomp_profile_path,omitempty"` + // SelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional. + SelinuxOpts []string `json:"selinux_opts,omitempty"` + // Umask is the umask the init process of the container will be run with. + Umask string `json:"umask,omitempty"` + // User is the user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container's /etc/passwd. If unset, the container will be run as root. Optional. + User string `json:"user,omitempty"` + Userns *Namespace `json:"userns,omitempty"` +} diff --git a/pkg/swagger/model_container_size.go b/pkg/swagger/model_container_size.go new file mode 100644 index 0000000..d5884ee --- /dev/null +++ b/pkg/swagger/model_container_size.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerSize holds the size of the container's root filesystem and top read-write layer. +type ContainerSize struct { + RootFsSize int64 `json:"rootFsSize,omitempty"` + RwSize int64 `json:"rwSize,omitempty"` +} diff --git a/pkg/swagger/model_container_state.go b/pkg/swagger/model_container_state.go new file mode 100644 index 0000000..aa540f8 --- /dev/null +++ b/pkg/swagger/model_container_state.go @@ -0,0 +1,26 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerState stores container's running state it's part of ContainerJSONBase and will return by \"inspect\" command +type ContainerState struct { + Dead bool `json:"Dead,omitempty"` + Error_ string `json:"Error,omitempty"` + ExitCode int64 `json:"ExitCode,omitempty"` + FinishedAt string `json:"FinishedAt,omitempty"` + Health *Health `json:"Health,omitempty"` + OOMKilled bool `json:"OOMKilled,omitempty"` + Paused bool `json:"Paused,omitempty"` + Pid int64 `json:"Pid,omitempty"` + Restarting bool `json:"Restarting,omitempty"` + Running bool `json:"Running,omitempty"` + StartedAt string `json:"StartedAt,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_container_storage_config.go b/pkg/swagger/model_container_storage_config.go new file mode 100644 index 0000000..f4079f2 --- /dev/null +++ b/pkg/swagger/model_container_storage_config.go @@ -0,0 +1,41 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerStorageConfig contains information on the storage configuration of a container. +type ContainerStorageConfig struct { + // Devices are devices that will be added to the container. Optional. + Devices []LinuxDevice `json:"devices,omitempty"` + // Image is the image the container will be based on. The image will be used as the container's root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified. + Image string `json:"image,omitempty"` + // ImageVolumeMode indicates how image volumes will be created. Supported modes are \"ignore\" (do not create), \"tmpfs\" (create as tmpfs), and \"anonymous\" (create as anonymous volumes). The default if unset is anonymous. Optional. + ImageVolumeMode string `json:"image_volume_mode,omitempty"` + // Init specifies that an init binary will be mounted into the container, and will be used as PID1. + Init bool `json:"init,omitempty"` + // InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional. + InitPath string `json:"init_path,omitempty"` + Ipcns *Namespace `json:"ipcns,omitempty"` + // Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. + Mounts []Mount `json:"mounts,omitempty"` + // Overlay volumes are named volumes that will be added to the container. Optional. + OverlayVolumes []OverlayVolume `json:"overlay_volumes,omitempty"` + // Rootfs is the path to a directory that will be used as the container's root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified. + Rootfs string `json:"rootfs,omitempty"` + // RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional. + RootfsPropagation string `json:"rootfs_propagation,omitempty"` + // ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional. + ShmSize int64 `json:"shm_size,omitempty"` + // Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. + Volumes []NamedVolume `json:"volumes,omitempty"` + // VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container. + VolumesFrom []string `json:"volumes_from,omitempty"` + // WorkDir is the container's working directory. If unset, the default, /, will be used. Optional. + WorkDir string `json:"work_dir,omitempty"` +} diff --git a/pkg/swagger/model_container_store.go b/pkg/swagger/model_container_store.go new file mode 100644 index 0000000..f880a7e --- /dev/null +++ b/pkg/swagger/model_container_store.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerStore describes the quantity of containers in the store by status +type ContainerStore struct { + Number int64 `json:"number,omitempty"` + Paused int64 `json:"paused,omitempty"` + Running int64 `json:"running,omitempty"` + Stopped int64 `json:"stopped,omitempty"` +} diff --git a/pkg/swagger/model_container_top_ok_body.go b/pkg/swagger/model_container_top_ok_body.go new file mode 100644 index 0000000..50774c8 --- /dev/null +++ b/pkg/swagger/model_container_top_ok_body.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerTopOKBody OK response to ContainerTop operation +type ContainerTopOkBody struct { + // Each process running in the container, where each is process is an array of values corresponding to the titles. + Processes [][]string `json:"Processes"` + // The ps column titles + Titles []string `json:"Titles"` +} diff --git a/pkg/swagger/model_container_update_ok_body.go b/pkg/swagger/model_container_update_ok_body.go new file mode 100644 index 0000000..01e0c34 --- /dev/null +++ b/pkg/swagger/model_container_update_ok_body.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerUpdateOKBody OK response to ContainerUpdate operation +type ContainerUpdateOkBody struct { + // warnings + Warnings []string `json:"Warnings"` +} diff --git a/pkg/swagger/model_container_wait_ok_body.go b/pkg/swagger/model_container_wait_ok_body.go new file mode 100644 index 0000000..3ee1f58 --- /dev/null +++ b/pkg/swagger/model_container_wait_ok_body.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerWaitOKBody OK response to ContainerWait operation +type ContainerWaitOkBody struct { + Error_ *ContainerWaitOkBodyError `json:"Error"` + // Exit code of the container + StatusCode int64 `json:"StatusCode"` +} diff --git a/pkg/swagger/model_container_wait_ok_body_error.go b/pkg/swagger/model_container_wait_ok_body_error.go new file mode 100644 index 0000000..31a22f7 --- /dev/null +++ b/pkg/swagger/model_container_wait_ok_body_error.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ContainerWaitOKBodyError container waiting error, if any +type ContainerWaitOkBodyError struct { + // Details of an error + Message string `json:"Message,omitempty"` +} diff --git a/pkg/swagger/model_containers_prune_report.go b/pkg/swagger/model_containers_prune_report.go new file mode 100644 index 0000000..935fd81 --- /dev/null +++ b/pkg/swagger/model_containers_prune_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ContainersPruneReport struct { + ContainersDeleted []string `json:"ContainersDeleted,omitempty"` + SpaceReclaimed int32 `json:"SpaceReclaimed,omitempty"` +} diff --git a/pkg/swagger/model_create_config.go b/pkg/swagger/model_create_config.go new file mode 100644 index 0000000..3eb2324 --- /dev/null +++ b/pkg/swagger/model_create_config.go @@ -0,0 +1,64 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// CreateConfig is a pre OCI spec structure. It represents user input from varlink or the CLI +type CreateConfig struct { + Annotations map[string]string `json:"Annotations,omitempty"` + Args []string `json:"Args,omitempty"` + BuiltinImgVolumes map[string]interface{} `json:"BuiltinImgVolumes,omitempty"` + Cgroup *CgroupConfig `json:"Cgroup,omitempty"` + CidFile string `json:"CidFile,omitempty"` + Command []string `json:"Command,omitempty"` + ConmonPidFile string `json:"ConmonPidFile,omitempty"` + Detach bool `json:"Detach,omitempty"` + Devices []string `json:"Devices,omitempty"` + Entrypoint []string `json:"Entrypoint,omitempty"` + Env map[string]string `json:"Env,omitempty"` + HealthCheck *Schema2HealthConfig `json:"HealthCheck,omitempty"` + Image string `json:"Image,omitempty"` + ImageID string `json:"ImageID,omitempty"` + ImageVolumeType string `json:"ImageVolumeType,omitempty"` + Init bool `json:"Init,omitempty"` + InitPath string `json:"InitPath,omitempty"` + Interactive bool `json:"Interactive,omitempty"` + Ipc *IpcConfig `json:"Ipc,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + LogDriver string `json:"LogDriver,omitempty"` + LogDriverOpt []string `json:"LogDriverOpt,omitempty"` + Mounts []Mount `json:"Mounts,omitempty"` + MountsFlag []string `json:"MountsFlag,omitempty"` + Name string `json:"Name,omitempty"` + NamedVolumes []ContainerNamedVolume `json:"NamedVolumes,omitempty"` + Network *NetworkConfig `json:"Network,omitempty"` + Pid *PidConfig `json:"Pid,omitempty"` + Pod string `json:"Pod,omitempty"` + PodmanPath string `json:"PodmanPath,omitempty"` + Quiet bool `json:"Quiet,omitempty"` + RawImageName string `json:"RawImageName,omitempty"` + Resources *CreateResourceConfig `json:"Resources,omitempty"` + RestartPolicy string `json:"RestartPolicy,omitempty"` + Rm bool `json:"Rm,omitempty"` + Rmi bool `json:"Rmi,omitempty"` + Rootfs string `json:"Rootfs,omitempty"` + Security *SecurityConfig `json:"Security,omitempty"` + StopSignal int64 `json:"StopSignal,omitempty"` + StopTimeout int32 `json:"StopTimeout,omitempty"` + Syslog bool `json:"Syslog,omitempty"` + Systemd bool `json:"Systemd,omitempty"` + Tmpfs []string `json:"Tmpfs,omitempty"` + Tty bool `json:"Tty,omitempty"` + User *UserConfig `json:"User,omitempty"` + UserCommand []string `json:"UserCommand,omitempty"` + Uts *UtsConfig `json:"Uts,omitempty"` + Volumes []string `json:"Volumes,omitempty"` + VolumesFrom []string `json:"VolumesFrom,omitempty"` + WorkDir string `json:"WorkDir,omitempty"` +} diff --git a/pkg/swagger/model_create_resource_config.go b/pkg/swagger/model_create_resource_config.go new file mode 100644 index 0000000..648bdc4 --- /dev/null +++ b/pkg/swagger/model_create_resource_config.go @@ -0,0 +1,40 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// CreateResourceConfig represents resource elements in CreateConfig structures +type CreateResourceConfig struct { + BlkioWeight int32 `json:"BlkioWeight,omitempty"` + BlkioWeightDevice []string `json:"BlkioWeightDevice,omitempty"` + CPUPeriod int32 `json:"CPUPeriod,omitempty"` + CPUQuota int64 `json:"CPUQuota,omitempty"` + CPURtPeriod int32 `json:"CPURtPeriod,omitempty"` + CPURtRuntime int64 `json:"CPURtRuntime,omitempty"` + CPUShares int32 `json:"CPUShares,omitempty"` + CPUs float64 `json:"CPUs,omitempty"` + CPUsetCPUs string `json:"CPUsetCPUs,omitempty"` + CPUsetMems string `json:"CPUsetMems,omitempty"` + CgroupConf map[string]string `json:"CgroupConf,omitempty"` + DeviceCgroupRules []string `json:"DeviceCgroupRules,omitempty"` + DeviceReadBps []string `json:"DeviceReadBps,omitempty"` + DeviceReadIOps []string `json:"DeviceReadIOps,omitempty"` + DeviceWriteBps []string `json:"DeviceWriteBps,omitempty"` + DeviceWriteIOps []string `json:"DeviceWriteIOps,omitempty"` + DisableOomKiller bool `json:"DisableOomKiller,omitempty"` + KernelMemory int64 `json:"KernelMemory,omitempty"` + Memory int64 `json:"Memory,omitempty"` + MemoryReservation int64 `json:"MemoryReservation,omitempty"` + MemorySwap int64 `json:"MemorySwap,omitempty"` + MemorySwappiness int64 `json:"MemorySwappiness,omitempty"` + OomScoreAdj int64 `json:"OomScoreAdj,omitempty"` + PidsLimit int64 `json:"PidsLimit,omitempty"` + ShmSize int64 `json:"ShmSize,omitempty"` + Ulimit []string `json:"Ulimit,omitempty"` +} diff --git a/pkg/swagger/model_data.go b/pkg/swagger/model_data.go new file mode 100644 index 0000000..42d5d62 --- /dev/null +++ b/pkg/swagger/model_data.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Data handles the data for a storage driver +type Data struct { + Data map[string]string `json:"Data,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_device_mapping.go b/pkg/swagger/model_device_mapping.go new file mode 100644 index 0000000..2fd0cc6 --- /dev/null +++ b/pkg/swagger/model_device_mapping.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type DeviceMapping struct { + CgroupPermissions string `json:"CgroupPermissions,omitempty"` + PathInContainer string `json:"PathInContainer,omitempty"` + PathOnHost string `json:"PathOnHost,omitempty"` +} diff --git a/pkg/swagger/model_device_request.go b/pkg/swagger/model_device_request.go new file mode 100644 index 0000000..4faaaa5 --- /dev/null +++ b/pkg/swagger/model_device_request.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Used by GPU device drivers. +type DeviceRequest struct { + Capabilities [][]string `json:"Capabilities,omitempty"` + Count int64 `json:"Count,omitempty"` + DeviceIDs []string `json:"DeviceIDs,omitempty"` + Driver string `json:"Driver,omitempty"` + Options map[string]string `json:"Options,omitempty"` +} diff --git a/pkg/swagger/model_distribution_info.go b/pkg/swagger/model_distribution_info.go new file mode 100644 index 0000000..faf1bbf --- /dev/null +++ b/pkg/swagger/model_distribution_info.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// DistributionInfo describes the host distribution for libpod +type DistributionInfo struct { + Distribution string `json:"distribution,omitempty"` + Version string `json:"version,omitempty"` +} diff --git a/pkg/swagger/model_docker_volume_create.go b/pkg/swagger/model_docker_volume_create.go new file mode 100644 index 0000000..21ea34f --- /dev/null +++ b/pkg/swagger/model_docker_volume_create.go @@ -0,0 +1,13 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type DockerVolumeCreate struct { +} diff --git a/pkg/swagger/model_endpoint_ipam_config.go b/pkg/swagger/model_endpoint_ipam_config.go new file mode 100644 index 0000000..193fe66 --- /dev/null +++ b/pkg/swagger/model_endpoint_ipam_config.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// EndpointIPAMConfig represents IPAM configurations for the endpoint +type EndpointIpamConfig struct { + IPv4Address string `json:"IPv4Address,omitempty"` + IPv6Address string `json:"IPv6Address,omitempty"` + LinkLocalIPs []string `json:"LinkLocalIPs,omitempty"` +} diff --git a/pkg/swagger/model_endpoint_resource.go b/pkg/swagger/model_endpoint_resource.go new file mode 100644 index 0000000..7a2c05d --- /dev/null +++ b/pkg/swagger/model_endpoint_resource.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// EndpointResource contains network resources allocated and used for a container in a network +type EndpointResource struct { + EndpointID string `json:"EndpointID,omitempty"` + IPv4Address string `json:"IPv4Address,omitempty"` + IPv6Address string `json:"IPv6Address,omitempty"` + MacAddress string `json:"MacAddress,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_endpoint_settings.go b/pkg/swagger/model_endpoint_settings.go new file mode 100644 index 0000000..e5dc795 --- /dev/null +++ b/pkg/swagger/model_endpoint_settings.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// EndpointSettings stores the network endpoint details +type EndpointSettings struct { + Aliases []string `json:"Aliases,omitempty"` + DriverOpts map[string]string `json:"DriverOpts,omitempty"` + EndpointID string `json:"EndpointID,omitempty"` + Gateway string `json:"Gateway,omitempty"` + GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty"` + GlobalIPv6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"` + IPAMConfig *EndpointIpamConfig `json:"IPAMConfig,omitempty"` + IPAddress string `json:"IPAddress,omitempty"` + IPPrefixLen int64 `json:"IPPrefixLen,omitempty"` + IPv6Gateway string `json:"IPv6Gateway,omitempty"` + Links []string `json:"Links,omitempty"` + MacAddress string `json:"MacAddress,omitempty"` + // Operational data + NetworkID string `json:"NetworkID,omitempty"` +} diff --git a/pkg/swagger/model_error_response.go b/pkg/swagger/model_error_response.go new file mode 100644 index 0000000..f413eca --- /dev/null +++ b/pkg/swagger/model_error_response.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ErrorResponse struct { + // The error message. + Message string `json:"message"` +} diff --git a/pkg/swagger/model_graph_driver_data.go b/pkg/swagger/model_graph_driver_data.go new file mode 100644 index 0000000..b1a0f64 --- /dev/null +++ b/pkg/swagger/model_graph_driver_data.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type GraphDriverData struct { + // data + Data map[string]string `json:"Data"` + // name + Name string `json:"Name"` +} diff --git a/pkg/swagger/model_health.go b/pkg/swagger/model_health.go new file mode 100644 index 0000000..572d174 --- /dev/null +++ b/pkg/swagger/model_health.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Health stores information about the container's healthcheck results +type Health struct { + FailingStreak int64 `json:"FailingStreak,omitempty"` + Log []HealthcheckResult `json:"Log,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_health_check_log.go b/pkg/swagger/model_health_check_log.go new file mode 100644 index 0000000..55a0f9e --- /dev/null +++ b/pkg/swagger/model_health_check_log.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// HealthCheckLog describes the results of a single healthcheck +type HealthCheckLog struct { + // End time as a string + End string `json:"End,omitempty"` + // Exitcode is 0 or 1 + ExitCode int64 `json:"ExitCode,omitempty"` + // Output is the stdout/stderr from the healthcheck command + Output string `json:"Output,omitempty"` + // Start time as string + Start string `json:"Start,omitempty"` +} diff --git a/pkg/swagger/model_health_check_results.go b/pkg/swagger/model_health_check_results.go new file mode 100644 index 0000000..298a6a1 --- /dev/null +++ b/pkg/swagger/model_health_check_results.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// HealthCheckResults describes the results/logs from a healthcheck +type HealthCheckResults struct { + // FailingStreak is the number of consecutive failed healthchecks + FailingStreak int64 `json:"FailingStreak,omitempty"` + // Log describes healthcheck attempts and results + Log []HealthCheckLog `json:"Log,omitempty"` + // Status healthy or unhealthy + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_health_config.go b/pkg/swagger/model_health_config.go new file mode 100644 index 0000000..af15187 --- /dev/null +++ b/pkg/swagger/model_health_config.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type HealthConfig struct { + Interval int64 `json:"Interval,omitempty"` + // Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit. + Retries int64 `json:"Retries,omitempty"` + StartPeriod int64 `json:"StartPeriod,omitempty"` + // Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell + Test []string `json:"Test,omitempty"` + Timeout int64 `json:"Timeout,omitempty"` +} diff --git a/pkg/swagger/model_healthcheck_result.go b/pkg/swagger/model_healthcheck_result.go new file mode 100644 index 0000000..5b13c0a --- /dev/null +++ b/pkg/swagger/model_healthcheck_result.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// HealthcheckResult stores information about a single run of a healthcheck probe +type HealthcheckResult struct { + End time.Time `json:"End,omitempty"` + ExitCode int64 `json:"ExitCode,omitempty"` + Output string `json:"Output,omitempty"` + Start time.Time `json:"Start,omitempty"` +} diff --git a/pkg/swagger/model_history.go b/pkg/swagger/model_history.go new file mode 100644 index 0000000..0436212 --- /dev/null +++ b/pkg/swagger/model_history.go @@ -0,0 +1,26 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type History struct { + // Author is the author of the build point. + Author string `json:"author,omitempty"` + // Comment is a custom message set when creating the layer. + Comment string `json:"comment,omitempty"` + // Created is the combined date and time at which the layer was created, formatted as defined by RFC 3339, section 5.6. + Created time.Time `json:"created,omitempty"` + // CreatedBy is the command which created the layer. + CreatedBy string `json:"created_by,omitempty"` + // EmptyLayer is used to mark if the history item created a filesystem diff. + EmptyLayer bool `json:"empty_layer,omitempty"` +} diff --git a/pkg/swagger/model_history_response_item.go b/pkg/swagger/model_history_response_item.go new file mode 100644 index 0000000..f05b121 --- /dev/null +++ b/pkg/swagger/model_history_response_item.go @@ -0,0 +1,26 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// HistoryResponseItem individual image layer information in response to ImageHistory operation +type HistoryResponseItem struct { + // comment + Comment string `json:"Comment"` + // created + Created int64 `json:"Created"` + // created by + CreatedBy string `json:"CreatedBy"` + // Id + Id string `json:"Id"` + // size + Size int64 `json:"Size"` + // tags + Tags []string `json:"Tags"` +} diff --git a/pkg/swagger/model_host_config.go b/pkg/swagger/model_host_config.go new file mode 100644 index 0000000..9815e48 --- /dev/null +++ b/pkg/swagger/model_host_config.go @@ -0,0 +1,93 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Here, \"non-portable\" means \"dependent of the host we are running on\". Portable information *should* appear in Config. +type HostConfig struct { + AutoRemove bool `json:"AutoRemove,omitempty"` + // Applicable to all platforms + Binds []string `json:"Binds,omitempty"` + BlkioDeviceReadBps []ThrottleDevice `json:"BlkioDeviceReadBps,omitempty"` + BlkioDeviceReadIOps []ThrottleDevice `json:"BlkioDeviceReadIOps,omitempty"` + BlkioDeviceWriteBps []ThrottleDevice `json:"BlkioDeviceWriteBps,omitempty"` + BlkioDeviceWriteIOps []ThrottleDevice `json:"BlkioDeviceWriteIOps,omitempty"` + BlkioWeight int32 `json:"BlkioWeight,omitempty"` + BlkioWeightDevice []WeightDevice `json:"BlkioWeightDevice,omitempty"` + CapAdd *[]string `json:"CapAdd,omitempty"` + CapDrop *[]string `json:"CapDrop,omitempty"` + Cgroup string `json:"Cgroup,omitempty"` + // Applicable to UNIX platforms + CgroupParent string `json:"CgroupParent,omitempty"` + CgroupnsMode string `json:"CgroupnsMode,omitempty"` + // Applicable to Windows + ConsoleSize []int32 `json:"ConsoleSize,omitempty"` + ContainerIDFile string `json:"ContainerIDFile,omitempty"` + // Applicable to Windows + CpuCount int64 `json:"CpuCount,omitempty"` + CpuPercent int64 `json:"CpuPercent,omitempty"` + CpuPeriod int64 `json:"CpuPeriod,omitempty"` + CpuQuota int64 `json:"CpuQuota,omitempty"` + CpuRealtimePeriod int64 `json:"CpuRealtimePeriod,omitempty"` + CpuRealtimeRuntime int64 `json:"CpuRealtimeRuntime,omitempty"` + // Applicable to all platforms + CpuShares int64 `json:"CpuShares,omitempty"` + CpusetCpus string `json:"CpusetCpus,omitempty"` + CpusetMems string `json:"CpusetMems,omitempty"` + DeviceCgroupRules []string `json:"DeviceCgroupRules,omitempty"` + DeviceRequests []DeviceRequest `json:"DeviceRequests,omitempty"` + Devices []DeviceMapping `json:"Devices,omitempty"` + Dns []string `json:"Dns,omitempty"` + DnsOptions []string `json:"DnsOptions,omitempty"` + DnsSearch []string `json:"DnsSearch,omitempty"` + ExtraHosts []string `json:"ExtraHosts,omitempty"` + GroupAdd []string `json:"GroupAdd,omitempty"` + IOMaximumBandwidth int32 `json:"IOMaximumBandwidth,omitempty"` + IOMaximumIOps int32 `json:"IOMaximumIOps,omitempty"` + // Run a custom init inside the container, if null, use the daemon's configured settings + Init bool `json:"Init,omitempty"` + IpcMode string `json:"IpcMode,omitempty"` + Isolation string `json:"Isolation,omitempty"` + KernelMemory int64 `json:"KernelMemory,omitempty"` + KernelMemoryTCP int64 `json:"KernelMemoryTCP,omitempty"` + Links []string `json:"Links,omitempty"` + LogConfig *LogConfig `json:"LogConfig,omitempty"` + // MaskedPaths is the list of paths to be masked inside the container (this overrides the default set of paths) + MaskedPaths []string `json:"MaskedPaths,omitempty"` + Memory int64 `json:"Memory,omitempty"` + MemoryReservation int64 `json:"MemoryReservation,omitempty"` + MemorySwap int64 `json:"MemorySwap,omitempty"` + MemorySwappiness int64 `json:"MemorySwappiness,omitempty"` + // Mounts specs used by the container + Mounts []Mount `json:"Mounts,omitempty"` + NanoCpus int64 `json:"NanoCpus,omitempty"` + NetworkMode string `json:"NetworkMode,omitempty"` + OomKillDisable bool `json:"OomKillDisable,omitempty"` + OomScoreAdj int64 `json:"OomScoreAdj,omitempty"` + PidMode string `json:"PidMode,omitempty"` + PidsLimit int64 `json:"PidsLimit,omitempty"` + PortBindings *map[string][]PortBinding `json:"PortBindings,omitempty"` + Privileged bool `json:"Privileged,omitempty"` + PublishAllPorts bool `json:"PublishAllPorts,omitempty"` + // ReadonlyPaths is the list of paths to be set as read-only inside the container (this overrides the default set of paths) + ReadonlyPaths []string `json:"ReadonlyPaths,omitempty"` + ReadonlyRootfs bool `json:"ReadonlyRootfs,omitempty"` + RestartPolicy *RestartPolicy `json:"RestartPolicy,omitempty"` + Runtime string `json:"Runtime,omitempty"` + SecurityOpt []string `json:"SecurityOpt,omitempty"` + ShmSize int64 `json:"ShmSize,omitempty"` + StorageOpt map[string]string `json:"StorageOpt,omitempty"` + Sysctls map[string]string `json:"Sysctls,omitempty"` + Tmpfs map[string]string `json:"Tmpfs,omitempty"` + UTSMode string `json:"UTSMode,omitempty"` + Ulimits []Ulimit `json:"Ulimits,omitempty"` + UsernsMode string `json:"UsernsMode,omitempty"` + VolumeDriver string `json:"VolumeDriver,omitempty"` + VolumesFrom []string `json:"VolumesFrom,omitempty"` +} diff --git a/pkg/swagger/model_host_info.go b/pkg/swagger/model_host_info.go new file mode 100644 index 0000000..f38e195 --- /dev/null +++ b/pkg/swagger/model_host_info.go @@ -0,0 +1,37 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// HostInfo describes the libpod host +type HostInfo struct { + Arch string `json:"arch,omitempty"` + BuildahVersion string `json:"buildahVersion,omitempty"` + CgroupManager string `json:"cgroupManager,omitempty"` + CgroupVersion string `json:"cgroupVersion,omitempty"` + Conmon *ConmonInfo `json:"conmon,omitempty"` + Cpus int64 `json:"cpus,omitempty"` + Distribution *DistributionInfo `json:"distribution,omitempty"` + EventLogger string `json:"eventLogger,omitempty"` + Hostname string `json:"hostname,omitempty"` + IdMappings *IdMappings `json:"idMappings,omitempty"` + Kernel string `json:"kernel,omitempty"` + Linkmode string `json:"linkmode,omitempty"` + MemFree int64 `json:"memFree,omitempty"` + MemTotal int64 `json:"memTotal,omitempty"` + OciRuntime *OciRuntimeInfo `json:"ociRuntime,omitempty"` + Os string `json:"os,omitempty"` + RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"` + Rootless bool `json:"rootless,omitempty"` + RuntimeInfo map[string]interface{} `json:"runtimeInfo,omitempty"` + Slirp4netns *SlirpInfo `json:"slirp4netns,omitempty"` + SwapFree int64 `json:"swapFree,omitempty"` + SwapTotal int64 `json:"swapTotal,omitempty"` + Uptime string `json:"uptime,omitempty"` +} diff --git a/pkg/swagger/model_id_map.go b/pkg/swagger/model_id_map.go new file mode 100644 index 0000000..cdaaf9c --- /dev/null +++ b/pkg/swagger/model_id_map.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IDMap contains a single entry for user namespace range remapping. An array of IDMap entries represents the structure that will be provided to the Linux kernel for creating a user namespace. +type IdMap struct { + ContainerId int64 `json:"container_id,omitempty"` + HostId int64 `json:"host_id,omitempty"` + Size int64 `json:"size,omitempty"` +} diff --git a/pkg/swagger/model_id_mapping_options.go b/pkg/swagger/model_id_mapping_options.go new file mode 100644 index 0000000..62d6fbc --- /dev/null +++ b/pkg/swagger/model_id_mapping_options.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container. +type IdMappingOptions struct { + AutoUserNs bool `json:"AutoUserNs,omitempty"` + AutoUserNsOpts *AutoUserNsOptions `json:"AutoUserNsOpts,omitempty"` + GIDMap []IdMap `json:"GIDMap,omitempty"` + HostGIDMapping bool `json:"HostGIDMapping,omitempty"` + // UIDMap and GIDMap are used for setting up a layer's root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer's mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used. + HostUIDMapping bool `json:"HostUIDMapping,omitempty"` + UIDMap []IdMap `json:"UIDMap,omitempty"` +} diff --git a/pkg/swagger/model_id_mappings.go b/pkg/swagger/model_id_mappings.go new file mode 100644 index 0000000..0eff7ab --- /dev/null +++ b/pkg/swagger/model_id_mappings.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IDMappings describe the GID and UID mappings +type IdMappings struct { + Gidmap []IdMap `json:"gidmap,omitempty"` + Uidmap []IdMap `json:"uidmap,omitempty"` +} diff --git a/pkg/swagger/model_id_response.go b/pkg/swagger/model_id_response.go new file mode 100644 index 0000000..877742a --- /dev/null +++ b/pkg/swagger/model_id_response.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IDResponse Response to an API call that returns just an Id +type IdResponse struct { + // The id of the newly created object. + Id string `json:"Id"` +} diff --git a/pkg/swagger/model_image_config.go b/pkg/swagger/model_image_config.go new file mode 100644 index 0000000..1b2ac50 --- /dev/null +++ b/pkg/swagger/model_image_config.go @@ -0,0 +1,31 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ImageConfig struct { + // Cmd defines the default arguments to the entrypoint of the container. + Cmd []string `json:"Cmd,omitempty"` + // Entrypoint defines a list of arguments to use as the command to execute when the container starts. + Entrypoint []string `json:"Entrypoint,omitempty"` + // Env is a list of environment variables to be used in a container. + Env []string `json:"Env,omitempty"` + // ExposedPorts a set of ports to expose from a container running this image. + ExposedPorts map[string]interface{} `json:"ExposedPorts,omitempty"` + // Labels contains arbitrary metadata for the container. + Labels map[string]string `json:"Labels,omitempty"` + // StopSignal contains the system call signal that will be sent to the container to exit. + StopSignal string `json:"StopSignal,omitempty"` + // User defines the username or UID which the process in the container should run as. + User string `json:"User,omitempty"` + // Volumes is a set of directories describing where the process is likely write data specific to a container instance. + Volumes map[string]interface{} `json:"Volumes,omitempty"` + // WorkingDir sets the current working directory of the entrypoint process in the container. + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_image_delete_response.go b/pkg/swagger/model_image_delete_response.go new file mode 100644 index 0000000..1d3ecfa --- /dev/null +++ b/pkg/swagger/model_image_delete_response.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ImageDeleteResponse is the response for removing an image from storage and containers what was untagged vs actually removed +type ImageDeleteResponse struct { + Deleted string `json:"deleted,omitempty"` + Untagged []string `json:"untagged,omitempty"` +} diff --git a/pkg/swagger/model_image_delete_response_item.go b/pkg/swagger/model_image_delete_response_item.go new file mode 100644 index 0000000..a2538d4 --- /dev/null +++ b/pkg/swagger/model_image_delete_response_item.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ImageDeleteResponseItem image delete response item +type ImageDeleteResponseItem struct { + // The image ID of an image that was deleted + Deleted string `json:"Deleted,omitempty"` + // The image ID of an image that was untagged + Untagged string `json:"Untagged,omitempty"` +} diff --git a/pkg/swagger/model_image_import_report.go b/pkg/swagger/model_image_import_report.go new file mode 100644 index 0000000..e1b0308 --- /dev/null +++ b/pkg/swagger/model_image_import_report.go @@ -0,0 +1,14 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ImageImportReport struct { + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_image_layer.go b/pkg/swagger/model_image_layer.go new file mode 100644 index 0000000..5dfed54 --- /dev/null +++ b/pkg/swagger/model_image_layer.go @@ -0,0 +1,13 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ImageLayer struct { +} diff --git a/pkg/swagger/model_image_load_report.go b/pkg/swagger/model_image_load_report.go new file mode 100644 index 0000000..dbebfc6 --- /dev/null +++ b/pkg/swagger/model_image_load_report.go @@ -0,0 +1,14 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ImageLoadReport struct { + Names []string `json:"Names,omitempty"` +} diff --git a/pkg/swagger/model_image_metadata.go b/pkg/swagger/model_image_metadata.go new file mode 100644 index 0000000..41277a4 --- /dev/null +++ b/pkg/swagger/model_image_metadata.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// ImageMetadata contains engine-local data about the image +type ImageMetadata struct { + LastTagTime time.Time `json:"LastTagTime,omitempty"` +} diff --git a/pkg/swagger/model_image_store.go b/pkg/swagger/model_image_store.go new file mode 100644 index 0000000..c0c3248 --- /dev/null +++ b/pkg/swagger/model_image_store.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ImageStore describes the image store. Right now only the number of images present +type ImageStore struct { + Number int64 `json:"number,omitempty"` +} diff --git a/pkg/swagger/model_image_summary.go b/pkg/swagger/model_image_summary.go new file mode 100644 index 0000000..a5715c8 --- /dev/null +++ b/pkg/swagger/model_image_summary.go @@ -0,0 +1,34 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ImageSummary image summary +type ImageSummary struct { + // containers + Containers int64 `json:"Containers"` + // created + Created int64 `json:"Created"` + // Id + Id string `json:"Id"` + // labels + Labels map[string]string `json:"Labels"` + // parent Id + ParentId string `json:"ParentId"` + // repo digests + RepoDigests []string `json:"RepoDigests"` + // repo tags + RepoTags []string `json:"RepoTags"` + // shared size + SharedSize int64 `json:"SharedSize"` + // size + Size int64 `json:"Size"` + // virtual size + VirtualSize int64 `json:"VirtualSize"` +} diff --git a/pkg/swagger/model_info.go b/pkg/swagger/model_info.go new file mode 100644 index 0000000..760579f --- /dev/null +++ b/pkg/swagger/model_info.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Info is the overall struct that describes the host system running libpod/podman +type Info struct { + Host *HostInfo `json:"host,omitempty"` + Registries map[string]interface{} `json:"registries,omitempty"` + Store *StoreInfo `json:"store,omitempty"` + Version *Version `json:"version,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200.go b/pkg/swagger/model_inline_response_200.go new file mode 100644 index 0000000..16fd936 --- /dev/null +++ b/pkg/swagger/model_inline_response_200.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse200 struct { + // output from build process + Stream string `json:"stream"` +} diff --git a/pkg/swagger/model_inline_response_200_1.go b/pkg/swagger/model_inline_response_200_1.go new file mode 100644 index 0000000..90b7f49 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_1.go @@ -0,0 +1,39 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2001 struct { + AppArmorProfile string `json:"AppArmorProfile,omitempty"` + Args []string `json:"Args,omitempty"` + Config *Config `json:"Config,omitempty"` + Created string `json:"Created,omitempty"` + Driver string `json:"Driver,omitempty"` + ExecIDs []string `json:"ExecIDs,omitempty"` + GraphDriver *GraphDriverData `json:"GraphDriver,omitempty"` + HostConfig *HostConfig `json:"HostConfig,omitempty"` + HostnamePath string `json:"HostnamePath,omitempty"` + HostsPath string `json:"HostsPath,omitempty"` + Id string `json:"Id,omitempty"` + Image string `json:"Image,omitempty"` + LogPath string `json:"LogPath,omitempty"` + MountLabel string `json:"MountLabel,omitempty"` + Mounts []MountPoint `json:"Mounts,omitempty"` + Name string `json:"Name,omitempty"` + NetworkSettings *NetworkSettings `json:"NetworkSettings,omitempty"` + Node *ContainerNode `json:"Node,omitempty"` + Path string `json:"Path,omitempty"` + Platform string `json:"Platform,omitempty"` + ProcessLabel string `json:"ProcessLabel,omitempty"` + ResolvConfPath string `json:"ResolvConfPath,omitempty"` + RestartCount int64 `json:"RestartCount,omitempty"` + SizeRootFs int64 `json:"SizeRootFs,omitempty"` + SizeRw int64 `json:"SizeRw,omitempty"` + State *ContainerState `json:"State,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_10.go b/pkg/swagger/model_inline_response_200_10.go new file mode 100644 index 0000000..5a16beb --- /dev/null +++ b/pkg/swagger/model_inline_response_200_10.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20010 struct { + Id string `json:"id,omitempty"` + Layers []ImageLayer `json:"layers,omitempty"` + Size string `json:"size,omitempty"` + Tags []string `json:"tags,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_11.go b/pkg/swagger/model_inline_response_200_11.go new file mode 100644 index 0000000..09aceb3 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_11.go @@ -0,0 +1,49 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type InlineResponse20011 struct { + // CgroupParent is the parent of the pod's CGroup. + CgroupParent string `json:"CgroupParent,omitempty"` + // CgroupPath is the path to the pod's CGroup. + CgroupPath string `json:"CgroupPath,omitempty"` + // Containers gives a brief summary of all containers in the pod and their current status. + Containers []InspectPodContainerInfo `json:"Containers,omitempty"` + // CreateCgroup is whether this pod will create its own CGroup to group containers under. + CreateCgroup bool `json:"CreateCgroup,omitempty"` + // CreateCommand is the full command plus arguments of the process the container has been created with. + CreateCommand []string `json:"CreateCommand,omitempty"` + // CreateInfra is whether this pod will create an infra container to share namespaces. + CreateInfra bool `json:"CreateInfra,omitempty"` + // Created is the time when the pod was created. + Created time.Time `json:"Created,omitempty"` + // Hostname is the hostname that the pod will set. + Hostname string `json:"Hostname,omitempty"` + // ID is the ID of the pod. + Id string `json:"Id,omitempty"` + InfraConfig *InspectPodInfraConfig `json:"InfraConfig,omitempty"` + // InfraContainerID is the ID of the pod's infra container, if one is present. + InfraContainerID string `json:"InfraContainerID,omitempty"` + // Labels is a set of key-value labels that have been applied to the pod. + Labels map[string]string `json:"Labels,omitempty"` + // Name is the name of the pod. + Name string `json:"Name,omitempty"` + // Namespace is the Libpod namespace the pod is placed in. + Namespace string `json:"Namespace,omitempty"` + // NumContainers is the number of containers in the pod, including the infra container. + NumContainers int32 `json:"NumContainers,omitempty"` + // SharedNamespaces contains a list of namespaces that will be shared by containers within the pod. Can only be set if CreateInfra is true. + SharedNamespaces []string `json:"SharedNamespaces,omitempty"` + // State represents the current state of the pod. + State string `json:"State,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_12.go b/pkg/swagger/model_inline_response_200_12.go new file mode 100644 index 0000000..00057b7 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_12.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20012 struct { + Containers []SystemDfContainerReport `json:"Containers,omitempty"` + Images []SystemDfImageReport `json:"Images,omitempty"` + Volumes []SystemDfVolumeReport `json:"Volumes,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_13.go b/pkg/swagger/model_inline_response_200_13.go new file mode 100644 index 0000000..3d34233 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_13.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20013 struct { + Err map[string]string `json:"Err,omitempty"` + ID map[string]int64 `json:"ID,omitempty"` + PodPruneReport []PodPruneReport `json:"PodPruneReport,omitempty"` + Report *Report `json:"Report,omitempty"` + Size int64 `json:"Size,omitempty"` + VolumePruneReport []VolumePruneReport `json:"VolumePruneReport,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_14.go b/pkg/swagger/model_inline_response_200_14.go new file mode 100644 index 0000000..ee55f32 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_14.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20014 struct { + Client *Version `json:"Client,omitempty"` + Server *Version `json:"Server,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_15.go b/pkg/swagger/model_inline_response_200_15.go new file mode 100644 index 0000000..8bc8c83 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_15.go @@ -0,0 +1,38 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type InlineResponse20015 struct { + // Anonymous indicates that the volume was created as an anonymous volume for a specific container, and will be be removed when any container using it is removed. + Anonymous bool `json:"Anonymous,omitempty"` + // CreatedAt is the date and time the volume was created at. This is not stored for older Libpod volumes; if so, it will be omitted. + CreatedAt time.Time `json:"CreatedAt,omitempty"` + // Driver is the driver used to create the volume. This will be properly implemented in a future version. + Driver string `json:"Driver,omitempty"` + // GID is the GID that the volume was created with. + GID int64 `json:"GID,omitempty"` + // Labels includes the volume's configured labels, key:value pairs that can be passed during volume creation to provide information for third party tools. + Labels map[string]string `json:"Labels,omitempty"` + // Mountpoint is the path on the host where the volume is mounted. + Mountpoint string `json:"Mountpoint,omitempty"` + // Name is the name of the volume. + Name string `json:"Name,omitempty"` + // Options is a set of options that were used when creating the volume. It is presently not used. + Options map[string]string `json:"Options,omitempty"` + // Scope is unused and provided solely for Docker compatibility. It is unconditionally set to \"local\". + Scope string `json:"Scope,omitempty"` + // Status is presently unused and provided only for Docker compatibility. In the future it will be used to return information on the volume's current state. + Status map[string]string `json:"Status,omitempty"` + // UID is the UID that the volume was created with. + UID int64 `json:"UID,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_16.go b/pkg/swagger/model_inline_response_200_16.go new file mode 100644 index 0000000..4c85acd --- /dev/null +++ b/pkg/swagger/model_inline_response_200_16.go @@ -0,0 +1,26 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20016 struct { + Attachable bool `json:"Attachable,omitempty"` + // Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. + CheckDuplicate bool `json:"CheckDuplicate,omitempty"` + ConfigFrom *ConfigReference `json:"ConfigFrom,omitempty"` + ConfigOnly bool `json:"ConfigOnly,omitempty"` + Driver string `json:"Driver,omitempty"` + EnableIPv6 bool `json:"EnableIPv6,omitempty"` + IPAM *Ipam `json:"IPAM,omitempty"` + Ingress bool `json:"Ingress,omitempty"` + Internal bool `json:"Internal,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Options map[string]string `json:"Options,omitempty"` + Scope string `json:"Scope,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_17.go b/pkg/swagger/model_inline_response_200_17.go new file mode 100644 index 0000000..e9b07da --- /dev/null +++ b/pkg/swagger/model_inline_response_200_17.go @@ -0,0 +1,14 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20017 struct { + Volumes []VolumeInfo `json:"Volumes,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_18.go b/pkg/swagger/model_inline_response_200_18.go new file mode 100644 index 0000000..90c1ff5 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_18.go @@ -0,0 +1,30 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20018 struct { + // Date/Time the volume was created. + CreatedAt string `json:"CreatedAt,omitempty"` + // Name of the volume driver used by the volume. + Driver string `json:"Driver"` + // User-defined key/value metadata. + Labels map[string]string `json:"Labels"` + // Mount path of the volume on the host. + Mountpoint string `json:"Mountpoint"` + // Name of the volume. + Name string `json:"Name"` + // The driver specific options used when creating the volume. + Options map[string]string `json:"Options"` + // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. + Scope string `json:"Scope"` + // Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. + Status map[string]interface{} `json:"Status,omitempty"` + UsageData *VolumeUsageData `json:"UsageData,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_19.go b/pkg/swagger/model_inline_response_200_19.go new file mode 100644 index 0000000..041e8ac --- /dev/null +++ b/pkg/swagger/model_inline_response_200_19.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse20019 struct { + SpaceReclaimed int32 `json:"SpaceReclaimed,omitempty"` + VolumesDeleted []string `json:"VolumesDeleted,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_2.go b/pkg/swagger/model_inline_response_200_2.go new file mode 100644 index 0000000..4dafa4c --- /dev/null +++ b/pkg/swagger/model_inline_response_200_2.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2002 struct { + // Each process running in the container, where each is process is an array of values corresponding to the titles. + Processes [][]string `json:"Processes"` + // The ps column titles + Titles []string `json:"Titles"` +} diff --git a/pkg/swagger/model_inline_response_200_3.go b/pkg/swagger/model_inline_response_200_3.go new file mode 100644 index 0000000..25ab859 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_3.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2003 struct { + Error_ *InlineResponse2003Error `json:"Error,omitempty"` + // container exit code + StatusCode int64 `json:"StatusCode,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_3_error.go b/pkg/swagger/model_inline_response_200_3_error.go new file mode 100644 index 0000000..ff07210 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_3_error.go @@ -0,0 +1,14 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2003Error struct { + Message string `json:"Message,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_4.go b/pkg/swagger/model_inline_response_200_4.go new file mode 100644 index 0000000..de515b1 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_4.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2004 struct { + Comment string `json:"Comment,omitempty"` + Created int64 `json:"Created,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Id string `json:"Id,omitempty"` + Size int64 `json:"Size,omitempty"` + Tags []string `json:"Tags,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_5.go b/pkg/swagger/model_inline_response_200_5.go new file mode 100644 index 0000000..5e9706e --- /dev/null +++ b/pkg/swagger/model_inline_response_200_5.go @@ -0,0 +1,33 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2005 struct { + Architecture string `json:"Architecture,omitempty"` + Author string `json:"Author,omitempty"` + Comment string `json:"Comment,omitempty"` + Config *Config `json:"Config,omitempty"` + Container string `json:"Container,omitempty"` + ContainerConfig *Config `json:"ContainerConfig,omitempty"` + Created string `json:"Created,omitempty"` + DockerVersion string `json:"DockerVersion,omitempty"` + GraphDriver *GraphDriverData `json:"GraphDriver,omitempty"` + Id string `json:"Id,omitempty"` + Metadata *ImageMetadata `json:"Metadata,omitempty"` + Os string `json:"Os,omitempty"` + OsVersion string `json:"OsVersion,omitempty"` + Parent string `json:"Parent,omitempty"` + RepoDigests []string `json:"RepoDigests,omitempty"` + RepoTags []string `json:"RepoTags,omitempty"` + RootFS *RootFs `json:"RootFS,omitempty"` + Size int64 `json:"Size,omitempty"` + Variant string `json:"Variant,omitempty"` + VirtualSize int64 `json:"VirtualSize,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_6.go b/pkg/swagger/model_inline_response_200_6.go new file mode 100644 index 0000000..7141741 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_6.go @@ -0,0 +1,25 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2006 struct { + // Automated indicates if the image was created by an automated build. + Automated string `json:"Automated,omitempty"` + // Description of the image. + Description string `json:"Description,omitempty"` + // Index is the image index (e.g., \"docker.io\" or \"quay.io\") + Index string `json:"Index,omitempty"` + // Name is the canoncical name of the image (e.g., \"docker.io/library/alpine\"). + Name string `json:"Name,omitempty"` + // Official indicates if it's an official image. + Official string `json:"Official,omitempty"` + // Stars is the number of stars of the image. + Stars int64 `json:"Stars,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_7.go b/pkg/swagger/model_inline_response_200_7.go new file mode 100644 index 0000000..23b0474 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_7.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse2007 struct { + // FailingStreak is the number of consecutive failed healthchecks + FailingStreak int64 `json:"FailingStreak,omitempty"` + // Log describes healthcheck attempts and results + Log []HealthCheckLog `json:"Log,omitempty"` + // Status healthy or unhealthy + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_8.go b/pkg/swagger/model_inline_response_200_8.go new file mode 100644 index 0000000..85af080 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_8.go @@ -0,0 +1,54 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type InlineResponse2008 struct { + AppArmorProfile string `json:"AppArmorProfile,omitempty"` + Args []string `json:"Args,omitempty"` + BoundingCaps []string `json:"BoundingCaps,omitempty"` + Config *InspectContainerConfig `json:"Config,omitempty"` + ConmonPidFile string `json:"ConmonPidFile,omitempty"` + Created time.Time `json:"Created,omitempty"` + Dependencies []string `json:"Dependencies,omitempty"` + Driver string `json:"Driver,omitempty"` + EffectiveCaps []string `json:"EffectiveCaps,omitempty"` + ExecIDs []string `json:"ExecIDs,omitempty"` + ExitCommand []string `json:"ExitCommand,omitempty"` + GraphDriver *Data `json:"GraphDriver,omitempty"` + HostConfig *InspectContainerHostConfig `json:"HostConfig,omitempty"` + HostnamePath string `json:"HostnamePath,omitempty"` + HostsPath string `json:"HostsPath,omitempty"` + Id string `json:"Id,omitempty"` + Image string `json:"Image,omitempty"` + ImageName string `json:"ImageName,omitempty"` + IsInfra bool `json:"IsInfra,omitempty"` + LogPath string `json:"LogPath,omitempty"` + LogTag string `json:"LogTag,omitempty"` + MountLabel string `json:"MountLabel,omitempty"` + Mounts []InspectMount `json:"Mounts,omitempty"` + Name string `json:"Name,omitempty"` + Namespace string `json:"Namespace,omitempty"` + NetworkSettings *InspectNetworkSettings `json:"NetworkSettings,omitempty"` + OCIConfigPath string `json:"OCIConfigPath,omitempty"` + OCIRuntime string `json:"OCIRuntime,omitempty"` + Path string `json:"Path,omitempty"` + Pod string `json:"Pod,omitempty"` + ProcessLabel string `json:"ProcessLabel,omitempty"` + ResolvConfPath string `json:"ResolvConfPath,omitempty"` + RestartCount int32 `json:"RestartCount,omitempty"` + Rootfs string `json:"Rootfs,omitempty"` + SizeRootFs int64 `json:"SizeRootFs,omitempty"` + SizeRw int64 `json:"SizeRw,omitempty"` + State *InspectContainerState `json:"State,omitempty"` + StaticDir string `json:"StaticDir,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_200_9.go b/pkg/swagger/model_inline_response_200_9.go new file mode 100644 index 0000000..39a5ec6 --- /dev/null +++ b/pkg/swagger/model_inline_response_200_9.go @@ -0,0 +1,39 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type InlineResponse2009 struct { + Annotations map[string]string `json:"Annotations,omitempty"` + Architecture string `json:"Architecture,omitempty"` + Author string `json:"Author,omitempty"` + Comment string `json:"Comment,omitempty"` + Config *ImageConfig `json:"Config,omitempty"` + Created time.Time `json:"Created,omitempty"` + Digest string `json:"Digest,omitempty"` + GraphDriver *Data `json:"GraphDriver,omitempty"` + Healthcheck *Schema2HealthConfig `json:"Healthcheck,omitempty"` + History []History `json:"History,omitempty"` + Id string `json:"Id,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + ManifestType string `json:"ManifestType,omitempty"` + NamesHistory []string `json:"NamesHistory,omitempty"` + Os string `json:"Os,omitempty"` + Parent string `json:"Parent,omitempty"` + RepoDigests []string `json:"RepoDigests,omitempty"` + RepoTags []string `json:"RepoTags,omitempty"` + RootFS *RootFs `json:"RootFS,omitempty"` + Size int64 `json:"Size,omitempty"` + User string `json:"User,omitempty"` + Version string `json:"Version,omitempty"` + VirtualSize int64 `json:"VirtualSize,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_201.go b/pkg/swagger/model_inline_response_201.go new file mode 100644 index 0000000..be50c5e --- /dev/null +++ b/pkg/swagger/model_inline_response_201.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse201 struct { + // ID of the container created + Id string `json:"Id,omitempty"` + // Warnings during container creation + Warnings []string `json:"Warnings,omitempty"` +} diff --git a/pkg/swagger/model_inline_response_400.go b/pkg/swagger/model_inline_response_400.go new file mode 100644 index 0000000..b3ae763 --- /dev/null +++ b/pkg/swagger/model_inline_response_400.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InlineResponse400 struct { + // API root cause formatted for automated parsing + Cause string `json:"cause,omitempty"` + // human error message, formatted for a human to read + Message string `json:"message,omitempty"` + // http response code + Response int64 `json:"response,omitempty"` +} diff --git a/pkg/swagger/model_inspect_additional_network.go b/pkg/swagger/model_inspect_additional_network.go new file mode 100644 index 0000000..f56ebff --- /dev/null +++ b/pkg/swagger/model_inspect_additional_network.go @@ -0,0 +1,44 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectAdditionalNetwork holds information about non-default CNI networks the container has been connected to. As with InspectNetworkSettings, many fields are unused and maintained only for compatibility with Docker. +type InspectAdditionalNetwork struct { + // AdditionalMacAddresses is a set of additional MAC Addresses beyond the first. CNI may configure more than one interface for a single network, which can cause this. + AdditionalMACAddresses []string `json:"AdditionalMACAddresses,omitempty"` + // DriverOpts is presently unused and maintained exclusively for compatibility. + DriverOpts map[string]string `json:"DriverOpts,omitempty"` + // EndpointID is unused, maintained exclusively for compatibility. + EndpointID string `json:"EndpointID,omitempty"` + // Gateway is the IP address of the gateway this network will use. + Gateway string `json:"Gateway,omitempty"` + // GlobalIPv6Address is the global-scope IPv6 Address for this network. + GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty"` + // GlobalIPv6PrefixLen is the length of the subnet mask of this network. + GlobalIPv6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"` + // IPAMConfig is presently unused and maintained exclusively for compatibility. + IPAMConfig map[string]string `json:"IPAMConfig,omitempty"` + // IPAddress is the IP address for this network. + IPAddress string `json:"IPAddress,omitempty"` + // IPPrefixLen is the length of the subnet mask of this network. + IPPrefixLen int64 `json:"IPPrefixLen,omitempty"` + // IPv6Gateway is the IPv6 gateway this network will use. + IPv6Gateway string `json:"IPv6Gateway,omitempty"` + // Links is presently unused and maintained exclusively for compatibility. + Links []string `json:"Links,omitempty"` + // MacAddress is the MAC address for the interface in this network. + MacAddress string `json:"MacAddress,omitempty"` + // Name of the network we're connecting to. + NetworkID string `json:"NetworkID,omitempty"` + // SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network. + SecondaryIPAddresses []string `json:"SecondaryIPAddresses,omitempty"` + // SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this networ. + SecondaryIPv6Addresses []string `json:"SecondaryIPv6Addresses,omitempty"` +} diff --git a/pkg/swagger/model_inspect_blkio_throttle_device.go b/pkg/swagger/model_inspect_blkio_throttle_device.go new file mode 100644 index 0000000..d1d03f4 --- /dev/null +++ b/pkg/swagger/model_inspect_blkio_throttle_device.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectBlkioThrottleDevice holds information about a speed cap for a device node. This cap applies to a specific operation (read, write, etc) on the given node. +type InspectBlkioThrottleDevice struct { + // Path is the path to the device this applies to. + Path string `json:"Path,omitempty"` + // Rate is the maximum rate. It is in either bytes per second or iops per second, determined by where it is used - documentation will indicate which is appropriate. + Rate int32 `json:"Rate,omitempty"` +} diff --git a/pkg/swagger/model_inspect_blkio_weight_device.go b/pkg/swagger/model_inspect_blkio_weight_device.go new file mode 100644 index 0000000..59f363e --- /dev/null +++ b/pkg/swagger/model_inspect_blkio_weight_device.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectBlkioWeightDevice holds information about the relative weight of an individual device node. Weights are used in the I/O scheduler to give relative priority to some accesses. +type InspectBlkioWeightDevice struct { + // Path is the path to the device this applies to. + Path string `json:"Path,omitempty"` + // Weight is the relative weight the scheduler will use when scheduling I/O. + Weight int32 `json:"Weight,omitempty"` +} diff --git a/pkg/swagger/model_inspect_container_config.go b/pkg/swagger/model_inspect_container_config.go new file mode 100644 index 0000000..b7c161d --- /dev/null +++ b/pkg/swagger/model_inspect_container_config.go @@ -0,0 +1,61 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectContainerConfig holds further data about how a container was initially configured. +type InspectContainerConfig struct { + // Container annotations + Annotations map[string]string `json:"Annotations,omitempty"` + // Unused, at present + AttachStderr bool `json:"AttachStderr,omitempty"` + // Unused, at present + AttachStdin bool `json:"AttachStdin,omitempty"` + // Unused, at present + AttachStdout bool `json:"AttachStdout,omitempty"` + // Container command + Cmd []string `json:"Cmd,omitempty"` + // CreateCommand is the full command plus arguments of the process the container has been created with. + CreateCommand []string `json:"CreateCommand,omitempty"` + // Container domain name - unused at present + Domainname string `json:"Domainname,omitempty"` + // Container entrypoint + Entrypoint string `json:"Entrypoint,omitempty"` + // Container environment variables + Env []string `json:"Env,omitempty"` + Healthcheck *Schema2HealthConfig `json:"Healthcheck,omitempty"` + // Container hostname + Hostname string `json:"Hostname,omitempty"` + // Container image + Image string `json:"Image,omitempty"` + // Container labels + Labels map[string]string `json:"Labels,omitempty"` + // On-build arguments - presently unused. More of Buildah's domain. + OnBuild string `json:"OnBuild,omitempty"` + // Whether the container leaves STDIN open + OpenStdin bool `json:"OpenStdin,omitempty"` + // Whether STDIN is only left open once. Presently not supported by Podman, unused. + StdinOnce bool `json:"StdinOnce,omitempty"` + // Container stop signal + StopSignal int32 `json:"StopSignal,omitempty"` + // SystemdMode is whether the container is running in systemd mode. In systemd mode, the container configuration is customized to optimize running systemd in the container. + SystemdMode bool `json:"SystemdMode,omitempty"` + // Timezone is the timezone inside the container. Local means it has the same timezone as the host machine + Timezone string `json:"Timezone,omitempty"` + // Whether the container creates a TTY + Tty bool `json:"Tty,omitempty"` + // Umask is the umask inside the container. + Umask string `json:"Umask,omitempty"` + // User the container was launched with + User string `json:"User,omitempty"` + // Unused, at present. I've never seen this field populated. + Volumes map[string]interface{} `json:"Volumes,omitempty"` + // Container working directory + WorkingDir string `json:"WorkingDir,omitempty"` +} diff --git a/pkg/swagger/model_inspect_container_host_config.go b/pkg/swagger/model_inspect_container_host_config.go new file mode 100644 index 0000000..a28ef78 --- /dev/null +++ b/pkg/swagger/model_inspect_container_host_config.go @@ -0,0 +1,142 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectContainerHostConfig holds information used when the container was created. It's very much a Docker-specific struct, retained (mostly) as-is for compatibility. We fill individual fields as best as we can, inferring as much as possible from the spec and container config. Some things cannot be inferred. These will be populated by spec annotations (if available). Field names are fixed for compatibility and cannot be changed. As such, silence lint warnings about them. nolint +type InspectContainerHostConfig struct { + // AutoRemove is whether the container will be automatically removed on exiting. It is not handled directly within libpod and is stored in an annotation. + AutoRemove bool `json:"AutoRemove,omitempty"` + // Binds contains an array of user-added mounts. Both volume mounts and named volumes are included. Tmpfs mounts are NOT included. In 'docker inspect' this is separated into 'Binds' and 'Mounts' based on how a mount was added. We do not make this distinction and do not include a Mounts field in inspect. Format: :[:] + Binds []string `json:"Binds,omitempty"` + // BlkioDeviceReadBps is an array of I/O throttle parameters for individual device nodes. This specifically sets read rate cap in bytes per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). + BlkioDeviceReadBps []InspectBlkioThrottleDevice `json:"BlkioDeviceReadBps,omitempty"` + // BlkioDeviceReadIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the read rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). + BlkioDeviceReadIOps []InspectBlkioThrottleDevice `json:"BlkioDeviceReadIOps,omitempty"` + // BlkioDeviceWriteBps is an array of I/O throttle parameters for individual device nodes. this specifically sets write rate cap in bytes per second for device nodes. as with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). + BlkioDeviceWriteBps []InspectBlkioThrottleDevice `json:"BlkioDeviceWriteBps,omitempty"` + // BlkioDeviceWriteIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the write rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be). + BlkioDeviceWriteIOps []InspectBlkioThrottleDevice `json:"BlkioDeviceWriteIOps,omitempty"` + // BlkioWeight indicates the I/O resources allocated to the container. It is a relative weight in the scheduler for assigning I/O time versus other CGroups. + BlkioWeight int32 `json:"BlkioWeight,omitempty"` + // BlkioWeightDevice is an array of I/O resource priorities for individual device nodes. Unfortunately, the spec only stores the device's Major/Minor numbers and not the path, which is used here. Fortunately, the kernel provides an interface for retrieving the path of a given node by major:minor at /sys/dev/. However, the exact path in use may not be what was used in the original CLI invocation - though it is guaranteed that the device node will be the same, and using the given path will be functionally identical. + BlkioWeightDevice []InspectBlkioWeightDevice `json:"BlkioWeightDevice,omitempty"` + // CapAdd is a list of capabilities added to the container. It is not directly stored by Libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities. + CapAdd []string `json:"CapAdd,omitempty"` + // CapDrop is a list of capabilities removed from the container. It is not directly stored by libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities. + CapDrop []string `json:"CapDrop,omitempty"` + // Cgroup contains the container's cgroup. It is presently not populated. TODO. + Cgroup string `json:"Cgroup,omitempty"` + // CgroupConf is the configuration for cgroup v2. + CgroupConf map[string]string `json:"CgroupConf,omitempty"` + // CgroupMode is the configuration of the container's cgroup namespace. Populated as follows: private - a cgroup namespace has been created host - No cgroup namespace created container: - Using another container's cgroup namespace ns: - A path to a cgroup namespace has been specified + CgroupMode string `json:"CgroupMode,omitempty"` + // CgroupParent is the CGroup parent of the container. Only set if not default. + CgroupParent string `json:"CgroupParent,omitempty"` + // Cgroups contains the container's CGroup mode. Allowed values are \"default\" (container is creating CGroups) and \"disabled\" (container is not creating CGroups). This is Libpod-specific and not included in `docker inspect`. + Cgroups string `json:"Cgroups,omitempty"` + // ConsoleSize is an array of 2 integers showing the size of the container's console. It is only set if the container is creating a terminal. TODO. + ConsoleSize []int32 `json:"ConsoleSize,omitempty"` + // ContainerIDFile is a file created during container creation to hold the ID of the created container. This is not handled within libpod and is stored in an annotation. + ContainerIDFile string `json:"ContainerIDFile,omitempty"` + // CpuCount is Windows-only and not presently implemented. + CpuCount int32 `json:"CpuCount,omitempty"` + // CpuPercent is Windows-only and not presently implemented. + CpuPercent int32 `json:"CpuPercent,omitempty"` + // CpuPeriod is the length of a CPU period in microseconds. It relates directly to CpuQuota. + CpuPeriod int32 `json:"CpuPeriod,omitempty"` + // CpuPeriod is the amount of time (in microseconds) that a container can use the CPU in every CpuPeriod. + CpuQuota int64 `json:"CpuQuota,omitempty"` + // CpuRealtimePeriod is the length of time (in microseconds) of the CPU realtime period. If set to 0, no time will be allocated to realtime tasks. + CpuRealtimePeriod int32 `json:"CpuRealtimePeriod,omitempty"` + // CpuRealtimeRuntime is the length of time (in microseconds) allocated for realtime tasks within every CpuRealtimePeriod. + CpuRealtimeRuntime int64 `json:"CpuRealtimeRuntime,omitempty"` + // CpuShares indicates the CPU resources allocated to the container. It is a relative weight in the scheduler for assigning CPU time versus other CGroups. + CpuShares int32 `json:"CpuShares,omitempty"` + // CpusetCpus is the is the set of CPUs that the container will execute on. Formatted as `0-3` or `0,2`. Default (if unset) is all CPUs. + CpusetCpus string `json:"CpusetCpus,omitempty"` + // CpusetMems is the set of memory nodes the container will use. Formatted as `0-3` or `0,2`. Default (if unset) is all memory nodes. + CpusetMems string `json:"CpusetMems,omitempty"` + // Devices is a list of device nodes that will be added to the container. These are stored in the OCI spec only as type, major, minor while we display the host path. We convert this with /sys/dev, but we cannot guarantee that the host path will be identical - only that the actual device will be. + Devices []InspectDevice `json:"Devices,omitempty"` + // DiskQuota is the maximum amount of disk space the container may use (in bytes). Presently not populated. TODO. + DiskQuota int32 `json:"DiskQuota,omitempty"` + // Dns is a list of DNS nameservers that will be added to the container's resolv.conf + Dns []string `json:"Dns,omitempty"` + // DnsOptions is a list of DNS options that will be set in the container's resolv.conf + DnsOptions []string `json:"DnsOptions,omitempty"` + // DnsSearch is a list of DNS search domains that will be set in the container's resolv.conf + DnsSearch []string `json:"DnsSearch,omitempty"` + // ExtraHosts contains hosts that will be aded to the container's etc/hosts. + ExtraHosts []string `json:"ExtraHosts,omitempty"` + // GroupAdd contains groups that the user inside the container will be added to. + GroupAdd []string `json:"GroupAdd,omitempty"` + // IOMaximumBandwidth is Windows-only and not presently implemented. + IOMaximumBandwidth int32 `json:"IOMaximumBandwidth,omitempty"` + // IOMaximumIOps is Windows-only and not presently implemented. + IOMaximumIOps int32 `json:"IOMaximumIOps,omitempty"` + // Init indicates whether the container has an init mounted into it. + Init bool `json:"Init,omitempty"` + // IpcMode represents the configuration of the container's IPC namespace. Populated as follows: \"\" (empty string) - Default, an IPC namespace will be created host - No IPC namespace created container: - Using another container's IPC namespace ns: - A path to an IPC namespace has been specified + IpcMode string `json:"IpcMode,omitempty"` + // Isolation is presently unused and provided solely for Docker compatibility. + Isolation string `json:"Isolation,omitempty"` + // KernelMemory is the maximum amount of memory the kernel will devote to the container. + KernelMemory int64 `json:"KernelMemory,omitempty"` + // Links is unused, and provided purely for Docker compatibility. + Links []string `json:"Links,omitempty"` + LogConfig *InspectLogConfig `json:"LogConfig,omitempty"` + // Memory indicates the memory resources allocated to the container. This is the limit (in bytes) of RAM the container may use. + Memory int64 `json:"Memory,omitempty"` + // MemoryReservation is the reservation (soft limit) of memory available to the container. Soft limits are warnings only and can be exceeded. + MemoryReservation int64 `json:"MemoryReservation,omitempty"` + // MemorySwap is the total limit for all memory available to the container, including swap. 0 indicates that there is no limit to the amount of memory available. + MemorySwap int64 `json:"MemorySwap,omitempty"` + // MemorySwappiness is the willingness of the kernel to page container memory to swap. It is an integer from 0 to 100, with low numbers being more likely to be put into swap. 1, the default, will not set swappiness and use the system defaults. + MemorySwappiness int64 `json:"MemorySwappiness,omitempty"` + // NanoCpus indicates number of CPUs allocated to the container. It is an integer where one full CPU is indicated by 1000000000 (one billion). Thus, 2.5 CPUs (fractional portions of CPUs are allowed) would be 2500000000 (2.5 billion). In 'docker inspect' this is set exclusively of two further options in the output (CpuPeriod and CpuQuota) which are both used to implement this functionality. We can't distinguish here, so if CpuQuota is set to the default of 100000, we will set both CpuQuota, CpuPeriod, and NanoCpus. If CpuQuota is not the default, we will not set NanoCpus. + NanoCpus int64 `json:"NanoCpus,omitempty"` + // NetworkMode is the configuration of the container's network namespace. Populated as follows: default - A network namespace is being created and configured via CNI none - A network namespace is being created, not configured via CNI host - No network namespace created container: - Using another container's network namespace ns: - A path to a network namespace has been specified + NetworkMode string `json:"NetworkMode,omitempty"` + // OomKillDisable indicates whether the kernel OOM killer is disabled for the container. + OomKillDisable bool `json:"OomKillDisable,omitempty"` + // OOMScoreAdj is an adjustment that will be made to the container's OOM score. + OomScoreAdj int64 `json:"OomScoreAdj,omitempty"` + // PidMode represents the configuration of the container's PID namespace. Populated as follows: \"\" (empty string) - Default, a PID namespace will be created host - No PID namespace created container: - Using another container's PID namespace ns: - A path to a PID namespace has been specified + PidMode string `json:"PidMode,omitempty"` + // PidsLimit is the maximum number of PIDs what may be created within the container. 0, the default, indicates no limit. + PidsLimit int64 `json:"PidsLimit,omitempty"` + // PortBindings contains the container's port bindings. It is formatted as map[string][]InspectHostPort. The string key here is formatted as / and represents the container port. A single container port may be bound to multiple host ports (on different IPs). + PortBindings map[string][]InspectHostPort `json:"PortBindings,omitempty"` + // Privileged indicates whether the container is running with elevated privileges. This has a very specific meaning in the Docker sense, so it's very difficult to decode from the spec and config, and so is stored as an annotation. + Privileged bool `json:"Privileged,omitempty"` + // PublishAllPorts indicates whether image ports are being published. This is not directly stored in libpod and is saved as an annotation. + PublishAllPorts bool `json:"PublishAllPorts,omitempty"` + // ReadonlyRootfs is whether the container will be mounted read-only. + ReadonlyRootfs bool `json:"ReadonlyRootfs,omitempty"` + RestartPolicy *InspectRestartPolicy `json:"RestartPolicy,omitempty"` + // Runtime is provided purely for Docker compatibility. It is set unconditionally to \"oci\" as Podman does not presently support non-OCI runtimes. + Runtime string `json:"Runtime,omitempty"` + // SecurityOpt is a list of security-related options that are set in the container. + SecurityOpt []string `json:"SecurityOpt,omitempty"` + // ShmSize is the size of the container's SHM device. + ShmSize int64 `json:"ShmSize,omitempty"` + // Tmpfs is a list of tmpfs filesystems that will be mounted into the container. It is a map of destination path to options for the mount. + Tmpfs map[string]string `json:"Tmpfs,omitempty"` + // UTSMode represents the configuration of the container's UID namespace. Populated as follows: \"\" (empty string) - Default, a UTS namespace will be created host - no UTS namespace created container: - Using another container's UTS namespace ns: - A path to a UTS namespace has been specified + UTSMode string `json:"UTSMode,omitempty"` + // Ulimits is a set of ulimits that will be set within the container. + Ulimits []InspectUlimit `json:"Ulimits,omitempty"` + // UsernsMode represents the configuration of the container's user namespace. When running rootless, a user namespace is created outside of libpod to allow some privileged operations. This will not be reflected here. Populated as follows: \"\" (empty string) - No user namespace will be created private - The container will be run in a user namespace container: - Using another container's user namespace ns: - A path to a user namespace has been specified TODO Rootless has an additional 'keep-id' option, presently not reflected here. + UsernsMode string `json:"UsernsMode,omitempty"` + // VolumeDriver is presently unused and is retained for Docker compatibility. + VolumeDriver string `json:"VolumeDriver,omitempty"` + // VolumesFrom is a list of containers which this container uses volumes from. This is not handled directly within libpod and is stored in an annotation. It is formatted as an array of container names and IDs. + VolumesFrom []string `json:"VolumesFrom,omitempty"` +} diff --git a/pkg/swagger/model_inspect_container_state.go b/pkg/swagger/model_inspect_container_state.go new file mode 100644 index 0000000..019cd7b --- /dev/null +++ b/pkg/swagger/model_inspect_container_state.go @@ -0,0 +1,31 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// InspectContainerState provides a detailed record of a container's current state. It is returned as part of InspectContainerData. As with InspectContainerData, many portions of this struct are matched to Docker, but here we see more fields that are unused (nonsensical in the context of Libpod). +type InspectContainerState struct { + ConmonPid int64 `json:"ConmonPid,omitempty"` + Dead bool `json:"Dead,omitempty"` + Error_ string `json:"Error,omitempty"` + ExitCode int32 `json:"ExitCode,omitempty"` + FinishedAt time.Time `json:"FinishedAt,omitempty"` + Healthcheck *HealthCheckResults `json:"Healthcheck,omitempty"` + OOMKilled bool `json:"OOMKilled,omitempty"` + OciVersion string `json:"OciVersion,omitempty"` + Paused bool `json:"Paused,omitempty"` + Pid int64 `json:"Pid,omitempty"` + Restarting bool `json:"Restarting,omitempty"` + Running bool `json:"Running,omitempty"` + StartedAt time.Time `json:"StartedAt,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_inspect_device.go b/pkg/swagger/model_inspect_device.go new file mode 100644 index 0000000..9d01332 --- /dev/null +++ b/pkg/swagger/model_inspect_device.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InspectDevice struct { + // CgroupPermissions is the permissions of the mounted device. Presently not populated. TODO. + CgroupPermissions string `json:"CgroupPermissions,omitempty"` + // PathInContainer is the path of the device within the container. + PathInContainer string `json:"PathInContainer,omitempty"` + // PathOnHost is the path of the device on the host. + PathOnHost string `json:"PathOnHost,omitempty"` +} diff --git a/pkg/swagger/model_inspect_host_port.go b/pkg/swagger/model_inspect_host_port.go new file mode 100644 index 0000000..5ca695f --- /dev/null +++ b/pkg/swagger/model_inspect_host_port.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectHostPort provides information on a port on the host that a container's port is bound to. +type InspectHostPort struct { + // IP on the host we are bound to. \"\" if not specified (binding to all IPs). + HostIp string `json:"HostIp,omitempty"` + // Port on the host we are bound to. No special formatting - just an integer stuffed into a string. + HostPort string `json:"HostPort,omitempty"` +} diff --git a/pkg/swagger/model_inspect_log_config.go b/pkg/swagger/model_inspect_log_config.go new file mode 100644 index 0000000..e3ba4a7 --- /dev/null +++ b/pkg/swagger/model_inspect_log_config.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectLogConfig holds information about a container's configured log driver and is presently unused. It is retained for Docker compatibility. +type InspectLogConfig struct { + Config map[string]string `json:"Config,omitempty"` + Type_ string `json:"Type,omitempty"` +} diff --git a/pkg/swagger/model_inspect_mount.go b/pkg/swagger/model_inspect_mount.go new file mode 100644 index 0000000..b406188 --- /dev/null +++ b/pkg/swagger/model_inspect_mount.go @@ -0,0 +1,32 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectMount provides a record of a single mount in a container. It contains fields for both named and normal volumes. Only user-specified volumes will be included, and tmpfs volumes are not included even if the user specified them. +type InspectMount struct { + // The destination directory for the volume. Specified as a path within the container, as it would be passed into the OCI runtime. + Destination string `json:"Destination,omitempty"` + // The driver used for the named volume. Empty for bind mounts. + Driver string `json:"Driver,omitempty"` + // Contains SELinux :z/:Z mount options. Unclear what, if anything, else goes in here. + Mode string `json:"Mode,omitempty"` + // The name of the volume. Empty for bind mounts. + Name string `json:"Name,omitempty"` + // All remaining mount options. Additional data, not present in the original output. + Options []string `json:"Options,omitempty"` + // Mount propagation for the mount. Can be empty if not specified, but is always printed - no omitempty. + Propagation string `json:"Propagation,omitempty"` + // Whether the volume is read-write + RW bool `json:"RW,omitempty"` + // The source directory for the volume. + Source string `json:"Source,omitempty"` + // Whether the mount is a volume or bind mount. Allowed values are \"volume\" and \"bind\". + Type_ string `json:"Type,omitempty"` +} diff --git a/pkg/swagger/model_inspect_network_settings.go b/pkg/swagger/model_inspect_network_settings.go new file mode 100644 index 0000000..b82be57 --- /dev/null +++ b/pkg/swagger/model_inspect_network_settings.go @@ -0,0 +1,45 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectNetworkSettings holds information about the network settings of the container. Many fields are maintained only for compatibility with `docker inspect` and are unused within Libpod. +type InspectNetworkSettings struct { + // AdditionalMacAddresses is a set of additional MAC Addresses beyond the first. CNI may configure more than one interface for a single network, which can cause this. + AdditionalMACAddresses []string `json:"AdditionalMACAddresses,omitempty"` + Bridge string `json:"Bridge,omitempty"` + // EndpointID is unused, maintained exclusively for compatibility. + EndpointID string `json:"EndpointID,omitempty"` + // Gateway is the IP address of the gateway this network will use. + Gateway string `json:"Gateway,omitempty"` + // GlobalIPv6Address is the global-scope IPv6 Address for this network. + GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty"` + // GlobalIPv6PrefixLen is the length of the subnet mask of this network. + GlobalIPv6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"` + HairpinMode bool `json:"HairpinMode,omitempty"` + // IPAddress is the IP address for this network. + IPAddress string `json:"IPAddress,omitempty"` + // IPPrefixLen is the length of the subnet mask of this network. + IPPrefixLen int64 `json:"IPPrefixLen,omitempty"` + // IPv6Gateway is the IPv6 gateway this network will use. + IPv6Gateway string `json:"IPv6Gateway,omitempty"` + LinkLocalIPv6Address string `json:"LinkLocalIPv6Address,omitempty"` + LinkLocalIPv6PrefixLen int64 `json:"LinkLocalIPv6PrefixLen,omitempty"` + // MacAddress is the MAC address for the interface in this network. + MacAddress string `json:"MacAddress,omitempty"` + // Networks contains information on non-default CNI networks this container has joined. It is a map of network name to network information. + Networks map[string]InspectAdditionalNetwork `json:"Networks,omitempty"` + Ports map[string][]InspectHostPort `json:"Ports,omitempty"` + SandboxID string `json:"SandboxID,omitempty"` + SandboxKey string `json:"SandboxKey,omitempty"` + // SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network. + SecondaryIPAddresses []string `json:"SecondaryIPAddresses,omitempty"` + // SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this networ. + SecondaryIPv6Addresses []string `json:"SecondaryIPv6Addresses,omitempty"` +} diff --git a/pkg/swagger/model_inspect_pod_container_info.go b/pkg/swagger/model_inspect_pod_container_info.go new file mode 100644 index 0000000..35410a0 --- /dev/null +++ b/pkg/swagger/model_inspect_pod_container_info.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InspectPodContainerInfo struct { + // ID is the ID of the container. + Id string `json:"Id,omitempty"` + // Name is the name of the container. + Name string `json:"Name,omitempty"` + // State is the current status of the container. + State string `json:"State,omitempty"` +} diff --git a/pkg/swagger/model_inspect_pod_infra_config.go b/pkg/swagger/model_inspect_pod_infra_config.go new file mode 100644 index 0000000..894aab7 --- /dev/null +++ b/pkg/swagger/model_inspect_pod_infra_config.go @@ -0,0 +1,36 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// InspectPodInfraConfig contains the configuration of the pod's infra container. +type InspectPodInfraConfig struct { + // DNSOption is a set of DNS options that will be used by the infra container's resolv.conf and shared with the remainder of the pod. + DNSOption []string `json:"DNSOption,omitempty"` + // DNSSearch is a set of DNS search domains that will be used by the infra container's resolv.conf and shared with the remainder of the pod. + DNSSearch []string `json:"DNSSearch,omitempty"` + // DNSServer is a set of DNS Servers that will be used by the infra container's resolv.conf and shared with the remainder of the pod. + DNSServer []string `json:"DNSServer,omitempty"` + // HostAdd adds a number of hosts to the infra container's resolv.conf which will be shared with the rest of the pod. + HostAdd []string `json:"HostAdd,omitempty"` + // HostNetwork is whether the infra container (and thus the whole pod) will use the host's network and not create a network namespace. + HostNetwork bool `json:"HostNetwork,omitempty"` + // NetworkOptions are additional options for each network + NetworkOptions map[string][]string `json:"NetworkOptions,omitempty"` + // Networks is a list of CNI networks the pod will join. + Networks []string `json:"Networks,omitempty"` + // NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own. + NoManageHosts bool `json:"NoManageHosts,omitempty"` + // NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own. + NoManageResolvConf bool `json:"NoManageResolvConf,omitempty"` + // PortBindings are ports that will be forwarded to the infra container and then shared with the pod. + PortBindings map[string][]InspectHostPort `json:"PortBindings,omitempty"` + StaticIP *[]int32 `json:"StaticIP,omitempty"` + StaticMAC *[]int32 `json:"StaticMAC,omitempty"` +} diff --git a/pkg/swagger/model_inspect_restart_policy.go b/pkg/swagger/model_inspect_restart_policy.go new file mode 100644 index 0000000..56c9245 --- /dev/null +++ b/pkg/swagger/model_inspect_restart_policy.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InspectRestartPolicy struct { + // MaximumRetryCount is the maximum number of retries allowed if the \"on-failure\" restart policy is in use. Not used if \"on-failure\" is not set. + MaximumRetryCount int32 `json:"MaximumRetryCount,omitempty"` + // Name contains the container's restart policy. Allowable values are \"no\" or \"\" (take no action), \"on-failure\" (restart on non-zero exit code, with an optional max retry count), and \"always\" (always restart on container stop, unless explicitly requested by API). Note that this is NOT actually a name of any sort - the poor naming is for Docker compatibility. + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_inspect_ulimit.go b/pkg/swagger/model_inspect_ulimit.go new file mode 100644 index 0000000..ee68413 --- /dev/null +++ b/pkg/swagger/model_inspect_ulimit.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type InspectUlimit struct { + // Hard is the hard limit that will be applied. + Hard int32 `json:"Hard,omitempty"` + // Name is the name (type) of the ulimit. + Name string `json:"Name,omitempty"` + // Soft is the soft limit that will be applied. + Soft int32 `json:"Soft,omitempty"` +} diff --git a/pkg/swagger/model_ip_net.go b/pkg/swagger/model_ip_net.go new file mode 100644 index 0000000..1bc3326 --- /dev/null +++ b/pkg/swagger/model_ip_net.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type IpNet struct { + IP *[]int32 `json:"IP,omitempty"` + Mask *[]int32 `json:"Mask,omitempty"` +} diff --git a/pkg/swagger/model_ipam.go b/pkg/swagger/model_ipam.go new file mode 100644 index 0000000..13976f8 --- /dev/null +++ b/pkg/swagger/model_ipam.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IPAM represents IP Address Management +type Ipam struct { + Config []IpamConfig `json:"Config,omitempty"` + Driver string `json:"Driver,omitempty"` + Options map[string]string `json:"Options,omitempty"` +} diff --git a/pkg/swagger/model_ipam_config.go b/pkg/swagger/model_ipam_config.go new file mode 100644 index 0000000..406b567 --- /dev/null +++ b/pkg/swagger/model_ipam_config.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IPAMConfig represents IPAM configurations +type IpamConfig struct { + AuxiliaryAddresses map[string]string `json:"AuxiliaryAddresses,omitempty"` + Gateway string `json:"Gateway,omitempty"` + IPRange string `json:"IPRange,omitempty"` + Subnet string `json:"Subnet,omitempty"` +} diff --git a/pkg/swagger/model_ipc_config.go b/pkg/swagger/model_ipc_config.go new file mode 100644 index 0000000..aba5c04 --- /dev/null +++ b/pkg/swagger/model_ipc_config.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// IpcConfig configures the ipc namespace for the container +type IpcConfig struct { + IpcMode string `json:"IpcMode,omitempty"` +} diff --git a/pkg/swagger/model_libpod_containers_prune_report.go b/pkg/swagger/model_libpod_containers_prune_report.go new file mode 100644 index 0000000..8a687d5 --- /dev/null +++ b/pkg/swagger/model_libpod_containers_prune_report.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type LibpodContainersPruneReport struct { + Error_ string `json:"error,omitempty"` + Id string `json:"id,omitempty"` + Space int64 `json:"space,omitempty"` +} diff --git a/pkg/swagger/model_libpod_images_pull_report.go b/pkg/swagger/model_libpod_images_pull_report.go new file mode 100644 index 0000000..9b5dec5 --- /dev/null +++ b/pkg/swagger/model_libpod_images_pull_report.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type LibpodImagesPullReport struct { + // Error contains text of errors from c/image + Error_ string `json:"error,omitempty"` + // ID contains image id (retained for backwards compatibility) + Id string `json:"id,omitempty"` + // Images contains the ID's of the images pulled + Images []string `json:"images,omitempty"` + // Stream used to provide output from c/image + Stream string `json:"stream,omitempty"` +} diff --git a/pkg/swagger/model_libpod_images_remove_report.go b/pkg/swagger/model_libpod_images_remove_report.go new file mode 100644 index 0000000..79a9ecd --- /dev/null +++ b/pkg/swagger/model_libpod_images_remove_report.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LibpodImagesRemoveReport is the return type for image removal via the rest api. +type LibpodImagesRemoveReport struct { + // Deleted images. + Deleted []string `json:"Deleted,omitempty"` + // Image removal requires is to return data and an error. + Errors []string `json:"Errors,omitempty"` + // ExitCode describes the exit codes as described in the `podman rmi` man page. + ExitCode int64 `json:"ExitCode,omitempty"` + // Untagged images. Can be longer than Deleted. + Untagged []string `json:"Untagged,omitempty"` +} diff --git a/pkg/swagger/model_linux_block_io.go b/pkg/swagger/model_linux_block_io.go new file mode 100644 index 0000000..86f1a40 --- /dev/null +++ b/pkg/swagger/model_linux_block_io.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxBlockIO for Linux cgroup 'blkio' resource management +type LinuxBlockIo struct { + // Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only + LeafWeight int32 `json:"leafWeight,omitempty"` + // IO read rate limit per cgroup per device, bytes per second + ThrottleReadBpsDevice []LinuxThrottleDevice `json:"throttleReadBpsDevice,omitempty"` + // IO read rate limit per cgroup per device, IO per second + ThrottleReadIOPSDevice []LinuxThrottleDevice `json:"throttleReadIOPSDevice,omitempty"` + // IO write rate limit per cgroup per device, bytes per second + ThrottleWriteBpsDevice []LinuxThrottleDevice `json:"throttleWriteBpsDevice,omitempty"` + // IO write rate limit per cgroup per device, IO per second + ThrottleWriteIOPSDevice []LinuxThrottleDevice `json:"throttleWriteIOPSDevice,omitempty"` + // Specifies per cgroup weight + Weight int32 `json:"weight,omitempty"` + // Weight per cgroup per device, can override BlkioWeight + WeightDevice []LinuxWeightDevice `json:"weightDevice,omitempty"` +} diff --git a/pkg/swagger/model_linux_block_io_device.go b/pkg/swagger/model_linux_block_io_device.go new file mode 100644 index 0000000..e8c73f6 --- /dev/null +++ b/pkg/swagger/model_linux_block_io_device.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// linuxBlockIODevice holds major:minor format supported in blkio cgroup +type LinuxBlockIoDevice struct { + // Major is the device's major number. + Major int64 `json:"major,omitempty"` + // Minor is the device's minor number. + Minor int64 `json:"minor,omitempty"` +} diff --git a/pkg/swagger/model_linux_cpu.go b/pkg/swagger/model_linux_cpu.go new file mode 100644 index 0000000..6acd733 --- /dev/null +++ b/pkg/swagger/model_linux_cpu.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxCPU for Linux cgroup 'cpu' resource management +type LinuxCpu struct { + // CPUs to use within the cpuset. Default is to use any CPU available. + Cpus string `json:"cpus,omitempty"` + // List of memory nodes in the cpuset. Default is to use any available memory node. + Mems string `json:"mems,omitempty"` + // CPU period to be used for hardcapping (in usecs). + Period int32 `json:"period,omitempty"` + // CPU hardcap limit (in usecs). Allowed cpu time in a given period. + Quota int64 `json:"quota,omitempty"` + // CPU period to be used for realtime scheduling (in usecs). + RealtimePeriod int32 `json:"realtimePeriod,omitempty"` + // How much time realtime scheduling may use (in usecs). + RealtimeRuntime int64 `json:"realtimeRuntime,omitempty"` + // CPU shares (relative weight (ratio) vs. other cgroups with cpu shares). + Shares int32 `json:"shares,omitempty"` +} diff --git a/pkg/swagger/model_linux_device.go b/pkg/swagger/model_linux_device.go new file mode 100644 index 0000000..0e66445 --- /dev/null +++ b/pkg/swagger/model_linux_device.go @@ -0,0 +1,27 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxDevice represents the mknod information for a Linux special device file +type LinuxDevice struct { + FileMode int32 `json:"fileMode,omitempty"` + // Gid of the device. + Gid int32 `json:"gid,omitempty"` + // Major is the device's major number. + Major int64 `json:"major,omitempty"` + // Minor is the device's minor number. + Minor int64 `json:"minor,omitempty"` + // Path to the device. + Path string `json:"path,omitempty"` + // Device type, block, char, etc. + Type_ string `json:"type,omitempty"` + // UID of the device. + Uid int32 `json:"uid,omitempty"` +} diff --git a/pkg/swagger/model_linux_device_cgroup.go b/pkg/swagger/model_linux_device_cgroup.go new file mode 100644 index 0000000..d7faca8 --- /dev/null +++ b/pkg/swagger/model_linux_device_cgroup.go @@ -0,0 +1,24 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxDeviceCgroup represents a device rule for the devices specified to the device controller +type LinuxDeviceCgroup struct { + // Cgroup access permissions format, rwm. + Access string `json:"access,omitempty"` + // Allow or deny + Allow bool `json:"allow,omitempty"` + // Major is the device's major number. + Major int64 `json:"major,omitempty"` + // Minor is the device's minor number. + Minor int64 `json:"minor,omitempty"` + // Device type, block, char, etc. + Type_ string `json:"type,omitempty"` +} diff --git a/pkg/swagger/model_linux_hugepage_limit.go b/pkg/swagger/model_linux_hugepage_limit.go new file mode 100644 index 0000000..393e2e4 --- /dev/null +++ b/pkg/swagger/model_linux_hugepage_limit.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxHugepageLimit structure corresponds to limiting kernel hugepages +type LinuxHugepageLimit struct { + // Limit is the limit of \"hugepagesize\" hugetlb usage + Limit int32 `json:"limit,omitempty"` + // Pagesize is the hugepage size Format: \"B' (e.g. 64KB, 2MB, 1GB, etc.) + PageSize string `json:"pageSize,omitempty"` +} diff --git a/pkg/swagger/model_linux_interface_priority.go b/pkg/swagger/model_linux_interface_priority.go new file mode 100644 index 0000000..218e279 --- /dev/null +++ b/pkg/swagger/model_linux_interface_priority.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxInterfacePriority for network interfaces +type LinuxInterfacePriority struct { + // Name is the name of the network interface + Name string `json:"name,omitempty"` + // Priority for the interface + Priority int32 `json:"priority,omitempty"` +} diff --git a/pkg/swagger/model_linux_memory.go b/pkg/swagger/model_linux_memory.go new file mode 100644 index 0000000..f6eedb9 --- /dev/null +++ b/pkg/swagger/model_linux_memory.go @@ -0,0 +1,30 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxMemory for Linux cgroup 'memory' resource management +type LinuxMemory struct { + // DisableOOMKiller disables the OOM killer for out of memory conditions + DisableOOMKiller bool `json:"disableOOMKiller,omitempty"` + // Kernel memory limit (in bytes). + Kernel int64 `json:"kernel,omitempty"` + // Kernel memory limit for tcp (in bytes) + KernelTCP int64 `json:"kernelTCP,omitempty"` + // Memory limit (in bytes). + Limit int64 `json:"limit,omitempty"` + // Memory reservation or soft_limit (in bytes). + Reservation int64 `json:"reservation,omitempty"` + // Total memory limit (memory + swap). + Swap int64 `json:"swap,omitempty"` + // How aggressive the kernel will swap memory pages. + Swappiness int32 `json:"swappiness,omitempty"` + // Enables hierarchical memory accounting + UseHierarchy bool `json:"useHierarchy,omitempty"` +} diff --git a/pkg/swagger/model_linux_network.go b/pkg/swagger/model_linux_network.go new file mode 100644 index 0000000..734b228 --- /dev/null +++ b/pkg/swagger/model_linux_network.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxNetwork identification and priority configuration +type LinuxNetwork struct { + // Set class identifier for container's network packets + ClassID int32 `json:"classID,omitempty"` + // Set priority of network traffic for container + Priorities []LinuxInterfacePriority `json:"priorities,omitempty"` +} diff --git a/pkg/swagger/model_linux_pids.go b/pkg/swagger/model_linux_pids.go new file mode 100644 index 0000000..873fcb2 --- /dev/null +++ b/pkg/swagger/model_linux_pids.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3) +type LinuxPids struct { + // Maximum number of PIDs. Default is \"no limit\". + Limit int64 `json:"limit,omitempty"` +} diff --git a/pkg/swagger/model_linux_rdma.go b/pkg/swagger/model_linux_rdma.go new file mode 100644 index 0000000..6d29188 --- /dev/null +++ b/pkg/swagger/model_linux_rdma.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11) +type LinuxRdma struct { + // Maximum number of HCA handles that can be opened. Default is \"no limit\". + HcaHandles int32 `json:"hcaHandles,omitempty"` + // Maximum number of HCA objects that can be created. Default is \"no limit\". + HcaObjects int32 `json:"hcaObjects,omitempty"` +} diff --git a/pkg/swagger/model_linux_resources.go b/pkg/swagger/model_linux_resources.go new file mode 100644 index 0000000..1a1e568 --- /dev/null +++ b/pkg/swagger/model_linux_resources.go @@ -0,0 +1,27 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxResources has container runtime resource constraints +type LinuxResources struct { + BlockIO *LinuxBlockIo `json:"blockIO,omitempty"` + Cpu *LinuxCpu `json:"cpu,omitempty"` + // Devices configures the device allowlist. + Devices []LinuxDeviceCgroup `json:"devices,omitempty"` + // Hugetlb limit (in bytes) + HugepageLimits []LinuxHugepageLimit `json:"hugepageLimits,omitempty"` + Memory *LinuxMemory `json:"memory,omitempty"` + Network *LinuxNetwork `json:"network,omitempty"` + Pids *LinuxPids `json:"pids,omitempty"` + // Rdma resource restriction configuration. Limits are a set of key value pairs that define RDMA resource limits, where the key is device name and value is resource limits. + Rdma map[string]LinuxRdma `json:"rdma,omitempty"` + // Unified resources. + Unified map[string]string `json:"unified,omitempty"` +} diff --git a/pkg/swagger/model_linux_throttle_device.go b/pkg/swagger/model_linux_throttle_device.go new file mode 100644 index 0000000..d7513d7 --- /dev/null +++ b/pkg/swagger/model_linux_throttle_device.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair +type LinuxThrottleDevice struct { + // Major is the device's major number. + Major int64 `json:"major,omitempty"` + // Minor is the device's minor number. + Minor int64 `json:"minor,omitempty"` + // Rate is the IO rate limit per cgroup per device + Rate int32 `json:"rate,omitempty"` +} diff --git a/pkg/swagger/model_linux_weight_device.go b/pkg/swagger/model_linux_weight_device.go new file mode 100644 index 0000000..419fa19 --- /dev/null +++ b/pkg/swagger/model_linux_weight_device.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice +type LinuxWeightDevice struct { + // LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only + LeafWeight int32 `json:"leafWeight,omitempty"` + // Major is the device's major number. + Major int64 `json:"major,omitempty"` + // Minor is the device's minor number. + Minor int64 `json:"minor,omitempty"` + // Weight is the bandwidth rate for the device. + Weight int32 `json:"weight,omitempty"` +} diff --git a/pkg/swagger/model_list.go b/pkg/swagger/model_list.go new file mode 100644 index 0000000..9b80790 --- /dev/null +++ b/pkg/swagger/model_list.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Callers can either use this abstract interface without understanding the details of the formats, or instantiate a specific implementation (e.g. manifest.OCI1Index) and access the public members directly. +type List struct { + Clone *List `json:"Clone,omitempty"` + // Instances returns a list of the manifests that this list knows of, other than its own. + Instances []string `json:"Instances,omitempty"` + // MIMEType returns the MIME type of this particular manifest list. + MIMEType string `json:"MIMEType,omitempty"` +} diff --git a/pkg/swagger/model_list_container.go b/pkg/swagger/model_list_container.go new file mode 100644 index 0000000..a1f50bf --- /dev/null +++ b/pkg/swagger/model_list_container.go @@ -0,0 +1,56 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Listcontainer describes a container suitable for listing +type ListContainer struct { + // Container command + Command []string `json:"Command,omitempty"` + // Container creation time + Created int64 `json:"Created,omitempty"` + // Human readable container creation time. + CreatedAt string `json:"CreatedAt,omitempty"` + // If container has exited, the return code from the command + ExitCode int32 `json:"ExitCode,omitempty"` + // If container has exited/stopped + Exited bool `json:"Exited,omitempty"` + // Time container exited + ExitedAt int64 `json:"ExitedAt,omitempty"` + // The unique identifier for the container + Id string `json:"Id,omitempty"` + // Container image + Image string `json:"Image,omitempty"` + // Container image ID + ImageID string `json:"ImageID,omitempty"` + // If this container is a Pod infra container + IsInfra bool `json:"IsInfra,omitempty"` + // Labels for container + Labels map[string]string `json:"Labels,omitempty"` + // User volume mounts + Mounts []string `json:"Mounts,omitempty"` + // The names assigned to the container + Names []string `json:"Names,omitempty"` + Namespaces *ListContainerNamespaces `json:"Namespaces,omitempty"` + // The process id of the container + Pid int64 `json:"Pid,omitempty"` + // If the container is part of Pod, the Pod ID. Requires the pod boolean to be set + Pod string `json:"Pod,omitempty"` + // If the container is part of Pod, the Pod name. Requires the pod boolean to be set + PodName string `json:"PodName,omitempty"` + // Port mappings + Ports []PortMapping `json:"Ports,omitempty"` + Size *ContainerSize `json:"Size,omitempty"` + // Time when container started + StartedAt int64 `json:"StartedAt,omitempty"` + // State of container + State string `json:"State,omitempty"` + // Status is a human-readable approximation of a duration for json output + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_list_container_namespaces.go b/pkg/swagger/model_list_container_namespaces.go new file mode 100644 index 0000000..bfbe7c9 --- /dev/null +++ b/pkg/swagger/model_list_container_namespaces.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ListContainer Namespaces contains the identifiers of the container's Linux namespaces +type ListContainerNamespaces struct { + // Cgroup namespace + Cgroup string `json:"Cgroup,omitempty"` + // IPC namespace + Ipc string `json:"Ipc,omitempty"` + // Mount namespace + Mnt string `json:"Mnt,omitempty"` + // Network namespace + Net string `json:"Net,omitempty"` + // PID namespace + Pidns string `json:"Pidns,omitempty"` + // User namespace + User string `json:"User,omitempty"` + // UTS namespace + Uts string `json:"Uts,omitempty"` +} diff --git a/pkg/swagger/model_list_pod_container.go b/pkg/swagger/model_list_pod_container.go new file mode 100644 index 0000000..a73f065 --- /dev/null +++ b/pkg/swagger/model_list_pod_container.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type ListPodContainer struct { + Id string `json:"Id,omitempty"` + Names string `json:"Names,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_list_pods_report.go b/pkg/swagger/model_list_pods_report.go new file mode 100644 index 0000000..143fd83 --- /dev/null +++ b/pkg/swagger/model_list_pods_report.go @@ -0,0 +1,25 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +type ListPodsReport struct { + Cgroup string `json:"Cgroup,omitempty"` + Containers []ListPodContainer `json:"Containers,omitempty"` + Created time.Time `json:"Created,omitempty"` + Id string `json:"Id,omitempty"` + InfraId string `json:"InfraId,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Name string `json:"Name,omitempty"` + Namespace string `json:"Namespace,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_list_registries_report.go b/pkg/swagger/model_list_registries_report.go new file mode 100644 index 0000000..4f7cca0 --- /dev/null +++ b/pkg/swagger/model_list_registries_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ListRegistriesReport is the report when querying for a sorted list of registries which may be contacted during certain operations. +type ListRegistriesReport struct { + Registries []string `json:"Registries,omitempty"` +} diff --git a/pkg/swagger/model_log_config.go b/pkg/swagger/model_log_config.go new file mode 100644 index 0000000..47ddae8 --- /dev/null +++ b/pkg/swagger/model_log_config.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// LogConfig describes the logging characteristics for a container +type LogConfig struct { + // LogDriver is the container's log driver. Optional. + Driver string `json:"driver,omitempty"` + // A set of options to accompany the log driver. Optional. + Options map[string]string `json:"options,omitempty"` + // LogPath is the path the container's logs will be stored at. Only available if LogDriver is set to \"json-file\" or \"k8s-file\". Optional. + Path string `json:"path,omitempty"` +} diff --git a/pkg/swagger/model_manifest_add_opts.go b/pkg/swagger/model_manifest_add_opts.go new file mode 100644 index 0000000..090c103 --- /dev/null +++ b/pkg/swagger/model_manifest_add_opts.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Options for adding a manifest +type ManifestAddOpts struct { + All bool `json:"all,omitempty"` + Annotation map[string]string `json:"annotation,omitempty"` + Arch string `json:"arch,omitempty"` + Features []string `json:"features,omitempty"` + Images []string `json:"images,omitempty"` + Os string `json:"os,omitempty"` + OsVersion string `json:"os_version,omitempty"` + Variant string `json:"variant,omitempty"` +} diff --git a/pkg/swagger/model_mount.go b/pkg/swagger/model_mount.go new file mode 100644 index 0000000..6fb02a4 --- /dev/null +++ b/pkg/swagger/model_mount.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Mount struct { + // Destination is the absolute path where the mount will be placed in the container. + Destination string `json:"destination,omitempty"` + // Options are fstab style mount options. + Options []string `json:"options,omitempty"` + // Source specifies the source path of the mount. + Source string `json:"source,omitempty"` + // Type specifies the mount kind. + Type_ string `json:"type,omitempty"` +} diff --git a/pkg/swagger/model_mount_point.go b/pkg/swagger/model_mount_point.go new file mode 100644 index 0000000..96d44fa --- /dev/null +++ b/pkg/swagger/model_mount_point.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// This is used for reporting the mountpoints in use by a container. +type MountPoint struct { + Destination string `json:"Destination,omitempty"` + Driver string `json:"Driver,omitempty"` + Mode string `json:"Mode,omitempty"` + Name string `json:"Name,omitempty"` + Propagation string `json:"Propagation,omitempty"` + RW bool `json:"RW,omitempty"` + Source string `json:"Source,omitempty"` + Type_ string `json:"Type,omitempty"` +} diff --git a/pkg/swagger/model_named_volume.go b/pkg/swagger/model_named_volume.go new file mode 100644 index 0000000..28971c0 --- /dev/null +++ b/pkg/swagger/model_named_volume.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NamedVolume holds information about a named volume that will be mounted into the container. +type NamedVolume struct { + // Destination to mount the named volume within the container. Must be an absolute path. Path will be created if it does not exist. + Dest string `json:"Dest,omitempty"` + // Name is the name of the named volume to be mounted. May be empty. If empty, a new named volume with a pseudorandomly generated name will be mounted at the given destination. + Name string `json:"Name,omitempty"` + // Options are options that the named volume will be mounted with. + Options []string `json:"Options,omitempty"` +} diff --git a/pkg/swagger/model_namespace.go b/pkg/swagger/model_namespace.go new file mode 100644 index 0000000..a781c0c --- /dev/null +++ b/pkg/swagger/model_namespace.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Namespace describes the namespace +type Namespace struct { + Nsmode string `json:"nsmode,omitempty"` + String_ string `json:"string,omitempty"` +} diff --git a/pkg/swagger/model_network_config.go b/pkg/swagger/model_network_config.go new file mode 100644 index 0000000..2df07f3 --- /dev/null +++ b/pkg/swagger/model_network_config.go @@ -0,0 +1,29 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkConfig configures the network namespace for the container +type NetworkConfig struct { + DNSOpt []string `json:"DNSOpt,omitempty"` + DNSSearch []string `json:"DNSSearch,omitempty"` + DNSServers []string `json:"DNSServers,omitempty"` + ExposedPorts map[string]interface{} `json:"ExposedPorts,omitempty"` + HTTPProxy bool `json:"HTTPProxy,omitempty"` + IP6Address string `json:"IP6Address,omitempty"` + IPAddress string `json:"IPAddress,omitempty"` + LinkLocalIP []string `json:"LinkLocalIP,omitempty"` + MacAddress string `json:"MacAddress,omitempty"` + NetMode string `json:"NetMode,omitempty"` + Network string `json:"Network,omitempty"` + NetworkAlias []string `json:"NetworkAlias,omitempty"` + PortBindings *map[string][]PortBinding `json:"PortBindings,omitempty"` + Publish []string `json:"Publish,omitempty"` + PublishAll bool `json:"PublishAll,omitempty"` +} diff --git a/pkg/swagger/model_network_create.go b/pkg/swagger/model_network_create.go new file mode 100644 index 0000000..838a948 --- /dev/null +++ b/pkg/swagger/model_network_create.go @@ -0,0 +1,27 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkCreate is the expected body of the \"create network\" http request message +type NetworkCreate struct { + Attachable bool `json:"Attachable,omitempty"` + // Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. + CheckDuplicate bool `json:"CheckDuplicate,omitempty"` + ConfigFrom *ConfigReference `json:"ConfigFrom,omitempty"` + ConfigOnly bool `json:"ConfigOnly,omitempty"` + Driver string `json:"Driver,omitempty"` + EnableIPv6 bool `json:"EnableIPv6,omitempty"` + IPAM *Ipam `json:"IPAM,omitempty"` + Ingress bool `json:"Ingress,omitempty"` + Internal bool `json:"Internal,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Options map[string]string `json:"Options,omitempty"` + Scope string `json:"Scope,omitempty"` +} diff --git a/pkg/swagger/model_network_create_options.go b/pkg/swagger/model_network_create_options.go new file mode 100644 index 0000000..af3c8a2 --- /dev/null +++ b/pkg/swagger/model_network_create_options.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkCreateOptions describes options to create a network +type NetworkCreateOptions struct { + DisableDNS bool `json:"DisableDNS,omitempty"` + Driver string `json:"Driver,omitempty"` + Gateway *[]int32 `json:"Gateway,omitempty"` + Internal bool `json:"Internal,omitempty"` + MacVLAN string `json:"MacVLAN,omitempty"` + Range_ *IpNet `json:"Range,omitempty"` + Subnet *IpNet `json:"Subnet,omitempty"` +} diff --git a/pkg/swagger/model_network_create_report.go b/pkg/swagger/model_network_create_report.go new file mode 100644 index 0000000..9c8e17e --- /dev/null +++ b/pkg/swagger/model_network_create_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkCreateReport describes a created network for the cli +type NetworkCreateReport struct { + Filename string `json:"Filename,omitempty"` +} diff --git a/pkg/swagger/model_network_create_request.go b/pkg/swagger/model_network_create_request.go new file mode 100644 index 0000000..bb0a644 --- /dev/null +++ b/pkg/swagger/model_network_create_request.go @@ -0,0 +1,27 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type NetworkCreateRequest struct { + Attachable bool `json:"Attachable,omitempty"` + // Check for networks with duplicate names. Network is primarily keyed based on a random ID and not on the name. Network name is strictly a user-friendly alias to the network which is uniquely identified using ID. And there is no guaranteed way to check for duplicates. Option CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. + CheckDuplicate bool `json:"CheckDuplicate,omitempty"` + ConfigFrom *ConfigReference `json:"ConfigFrom,omitempty"` + ConfigOnly bool `json:"ConfigOnly,omitempty"` + Driver string `json:"Driver,omitempty"` + EnableIPv6 bool `json:"EnableIPv6,omitempty"` + IPAM *Ipam `json:"IPAM,omitempty"` + Ingress bool `json:"Ingress,omitempty"` + Internal bool `json:"Internal,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Name string `json:"Name,omitempty"` + Options map[string]string `json:"Options,omitempty"` + Scope string `json:"Scope,omitempty"` +} diff --git a/pkg/swagger/model_network_list_report.go b/pkg/swagger/model_network_list_report.go new file mode 100644 index 0000000..1fdc7bc --- /dev/null +++ b/pkg/swagger/model_network_list_report.go @@ -0,0 +1,19 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkListReport describes the results from listing networks +type NetworkListReport struct { + Bytes []int32 `json:"Bytes,omitempty"` + CNIVersion string `json:"CNIVersion,omitempty"` + DisableCheck bool `json:"DisableCheck,omitempty"` + Name string `json:"Name,omitempty"` + Plugins []NetworkConfig `json:"Plugins,omitempty"` +} diff --git a/pkg/swagger/model_network_resource.go b/pkg/swagger/model_network_resource.go new file mode 100644 index 0000000..ec26f82 --- /dev/null +++ b/pkg/swagger/model_network_resource.go @@ -0,0 +1,34 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// NetworkResource is the body of the \"get network\" http response message +type NetworkResource struct { + Attachable bool `json:"Attachable,omitempty"` + ConfigFrom *ConfigReference `json:"ConfigFrom,omitempty"` + ConfigOnly bool `json:"ConfigOnly,omitempty"` + Containers map[string]EndpointResource `json:"Containers,omitempty"` + Created time.Time `json:"Created,omitempty"` + Driver string `json:"Driver,omitempty"` + EnableIPv6 bool `json:"EnableIPv6,omitempty"` + IPAM *Ipam `json:"IPAM,omitempty"` + Id string `json:"Id,omitempty"` + Ingress bool `json:"Ingress,omitempty"` + Internal bool `json:"Internal,omitempty"` + Labels map[string]string `json:"Labels,omitempty"` + Name string `json:"Name,omitempty"` + Options map[string]string `json:"Options,omitempty"` + Peers []PeerInfo `json:"Peers,omitempty"` + Scope string `json:"Scope,omitempty"` + Services map[string]ServiceInfo `json:"Services,omitempty"` +} diff --git a/pkg/swagger/model_network_rm_report.go b/pkg/swagger/model_network_rm_report.go new file mode 100644 index 0000000..a0b483d --- /dev/null +++ b/pkg/swagger/model_network_rm_report.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkRmReport describes the results of network removal +type NetworkRmReport struct { + Err string `json:"Err,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_network_settings.go b/pkg/swagger/model_network_settings.go new file mode 100644 index 0000000..012082d --- /dev/null +++ b/pkg/swagger/model_network_settings.go @@ -0,0 +1,32 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// NetworkSettings exposes the network settings in the api +type NetworkSettings struct { + Bridge string `json:"Bridge,omitempty"` + EndpointID string `json:"EndpointID,omitempty"` + Gateway string `json:"Gateway,omitempty"` + GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty"` + GlobalIPv6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"` + HairpinMode bool `json:"HairpinMode,omitempty"` + IPAddress string `json:"IPAddress,omitempty"` + IPPrefixLen int64 `json:"IPPrefixLen,omitempty"` + IPv6Gateway string `json:"IPv6Gateway,omitempty"` + LinkLocalIPv6Address string `json:"LinkLocalIPv6Address,omitempty"` + LinkLocalIPv6PrefixLen int64 `json:"LinkLocalIPv6PrefixLen,omitempty"` + MacAddress string `json:"MacAddress,omitempty"` + Networks map[string]EndpointSettings `json:"Networks,omitempty"` + Ports *map[string][]PortBinding `json:"Ports,omitempty"` + SandboxID string `json:"SandboxID,omitempty"` + SandboxKey string `json:"SandboxKey,omitempty"` + SecondaryIPAddresses []Address `json:"SecondaryIPAddresses,omitempty"` + SecondaryIPv6Addresses []Address `json:"SecondaryIPv6Addresses,omitempty"` +} diff --git a/pkg/swagger/model_oci_runtime_info.go b/pkg/swagger/model_oci_runtime_info.go new file mode 100644 index 0000000..3a6c011 --- /dev/null +++ b/pkg/swagger/model_oci_runtime_info.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// OCIRuntimeInfo describes the runtime (crun or runc) being used with podman +type OciRuntimeInfo struct { + Name string `json:"name,omitempty"` + Package_ string `json:"package,omitempty"` + Path string `json:"path,omitempty"` + Version string `json:"version,omitempty"` +} diff --git a/pkg/swagger/model_overlay_volume.go b/pkg/swagger/model_overlay_volume.go new file mode 100644 index 0000000..b1d6755 --- /dev/null +++ b/pkg/swagger/model_overlay_volume.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// OverlayVolume holds information about a overlay volume that will be mounted into the container. +type OverlayVolume struct { + // Destination is the absolute path where the mount will be placed in the container. + Destination string `json:"destination,omitempty"` + // Source specifies the source path of the mount. + Source string `json:"source,omitempty"` +} diff --git a/pkg/swagger/model_peer_info.go b/pkg/swagger/model_peer_info.go new file mode 100644 index 0000000..e372eb8 --- /dev/null +++ b/pkg/swagger/model_peer_info.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PeerInfo represents one peer of an overlay network +type PeerInfo struct { + IP string `json:"IP,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_pid_config.go b/pkg/swagger/model_pid_config.go new file mode 100644 index 0000000..10625d4 --- /dev/null +++ b/pkg/swagger/model_pid_config.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PidConfig configures the pid namespace for the container +type PidConfig struct { + PidMode string `json:"PidMode,omitempty"` +} diff --git a/pkg/swagger/model_play_kube_pod.go b/pkg/swagger/model_play_kube_pod.go new file mode 100644 index 0000000..66c2508 --- /dev/null +++ b/pkg/swagger/model_play_kube_pod.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PlayKubePod represents a single pod and associated containers created by play kube +type PlayKubePod struct { + // Containers - the IDs of the containers running in the created pod. + Containers []string `json:"Containers,omitempty"` + // ID - ID of the pod created as a result of play kube. + ID string `json:"ID,omitempty"` + // Logs - non-fatal errors and log messages while processing. + Logs []string `json:"Logs,omitempty"` +} diff --git a/pkg/swagger/model_play_kube_report.go b/pkg/swagger/model_play_kube_report.go new file mode 100644 index 0000000..10e2e42 --- /dev/null +++ b/pkg/swagger/model_play_kube_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PlayKubeReport struct { + // Pods - pods created by play kube. + Pods []PlayKubePod `json:"Pods,omitempty"` +} diff --git a/pkg/swagger/model_plugin.go b/pkg/swagger/model_plugin.go new file mode 100644 index 0000000..2f5c62b --- /dev/null +++ b/pkg/swagger/model_plugin.go @@ -0,0 +1,24 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Plugin A plugin for the Engine API +type Plugin struct { + Config *PluginConfig `json:"Config"` + // True if the plugin is running. False if the plugin is not running, only installed. + Enabled bool `json:"Enabled"` + // Id + Id string `json:"Id,omitempty"` + // name + Name string `json:"Name"` + // plugin remote reference used to push/pull the plugin + PluginReference string `json:"PluginReference,omitempty"` + Settings *PluginSettings `json:"Settings"` +} diff --git a/pkg/swagger/model_plugin_config.go b/pkg/swagger/model_plugin_config.go new file mode 100644 index 0000000..8fc778f --- /dev/null +++ b/pkg/swagger/model_plugin_config.go @@ -0,0 +1,39 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PluginConfig struct { + Args *PluginConfigArgs `json:"Args"` + // description + Description string `json:"Description"` + // Docker Version used to create the plugin + DockerVersion string `json:"DockerVersion,omitempty"` + // documentation + Documentation string `json:"Documentation"` + // entrypoint + Entrypoint []string `json:"Entrypoint"` + // env + Env []PluginEnv `json:"Env"` + Interface_ *PluginConfigInterface `json:"Interface"` + // ipc host + IpcHost bool `json:"IpcHost"` + Linux *PluginConfigLinux `json:"Linux"` + // mounts + Mounts []PluginMount `json:"Mounts"` + Network *PluginConfigNetwork `json:"Network"` + // pid host + PidHost bool `json:"PidHost"` + // propagated mount + PropagatedMount string `json:"PropagatedMount"` + User *PluginConfigUser `json:"User,omitempty"` + // work dir + WorkDir string `json:"WorkDir"` + Rootfs *PluginConfigRootfs `json:"rootfs,omitempty"` +} diff --git a/pkg/swagger/model_plugin_config_args.go b/pkg/swagger/model_plugin_config_args.go new file mode 100644 index 0000000..f487d1b --- /dev/null +++ b/pkg/swagger/model_plugin_config_args.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigArgs plugin config args +type PluginConfigArgs struct { + // description + Description string `json:"Description"` + // name + Name string `json:"Name"` + // settable + Settable []string `json:"Settable"` + // value + Value []string `json:"Value"` +} diff --git a/pkg/swagger/model_plugin_config_interface.go b/pkg/swagger/model_plugin_config_interface.go new file mode 100644 index 0000000..0a5395f --- /dev/null +++ b/pkg/swagger/model_plugin_config_interface.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigInterface The interface between Docker and the plugin +type PluginConfigInterface struct { + // Protocol to use for clients connecting to the plugin. + ProtocolScheme string `json:"ProtocolScheme,omitempty"` + // socket + Socket string `json:"Socket"` + // types + Types []PluginInterfaceType `json:"Types"` +} diff --git a/pkg/swagger/model_plugin_config_linux_.go b/pkg/swagger/model_plugin_config_linux_.go new file mode 100644 index 0000000..30de174 --- /dev/null +++ b/pkg/swagger/model_plugin_config_linux_.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigLinux plugin config linux +type PluginConfigLinux struct { + // allow all devices + AllowAllDevices bool `json:"AllowAllDevices"` + // capabilities + Capabilities []string `json:"Capabilities"` + // devices + Devices []PluginDevice `json:"Devices"` +} diff --git a/pkg/swagger/model_plugin_config_network.go b/pkg/swagger/model_plugin_config_network.go new file mode 100644 index 0000000..7d92ade --- /dev/null +++ b/pkg/swagger/model_plugin_config_network.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigNetwork plugin config network +type PluginConfigNetwork struct { + // type + Type_ string `json:"Type"` +} diff --git a/pkg/swagger/model_plugin_config_rootfs.go b/pkg/swagger/model_plugin_config_rootfs.go new file mode 100644 index 0000000..1941aa4 --- /dev/null +++ b/pkg/swagger/model_plugin_config_rootfs.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigRootfs plugin config rootfs +type PluginConfigRootfs struct { + // diff ids + DiffIds []string `json:"diff_ids,omitempty"` + // type + Type_ string `json:"type,omitempty"` +} diff --git a/pkg/swagger/model_plugin_config_user.go b/pkg/swagger/model_plugin_config_user.go new file mode 100644 index 0000000..4adb2e3 --- /dev/null +++ b/pkg/swagger/model_plugin_config_user.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginConfigUser plugin config user +type PluginConfigUser struct { + // g ID + GID int32 `json:"GID,omitempty"` + // UID + UID int32 `json:"UID,omitempty"` +} diff --git a/pkg/swagger/model_plugin_device.go b/pkg/swagger/model_plugin_device.go new file mode 100644 index 0000000..f85defb --- /dev/null +++ b/pkg/swagger/model_plugin_device.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginDevice plugin device +type PluginDevice struct { + // description + Description string `json:"Description"` + // name + Name string `json:"Name"` + // path + Path string `json:"Path"` + // settable + Settable []string `json:"Settable"` +} diff --git a/pkg/swagger/model_plugin_env.go b/pkg/swagger/model_plugin_env.go new file mode 100644 index 0000000..10cfb66 --- /dev/null +++ b/pkg/swagger/model_plugin_env.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginEnv plugin env +type PluginEnv struct { + // description + Description string `json:"Description"` + // name + Name string `json:"Name"` + // settable + Settable []string `json:"Settable"` + // value + Value string `json:"Value"` +} diff --git a/pkg/swagger/model_plugin_interface_type.go b/pkg/swagger/model_plugin_interface_type.go new file mode 100644 index 0000000..2e22a26 --- /dev/null +++ b/pkg/swagger/model_plugin_interface_type.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginInterfaceType plugin interface type +type PluginInterfaceType struct { + // capability + Capability string `json:"Capability"` + // prefix + Prefix string `json:"Prefix"` + // version + Version string `json:"Version"` +} diff --git a/pkg/swagger/model_plugin_mount.go b/pkg/swagger/model_plugin_mount.go new file mode 100644 index 0000000..d5ec244 --- /dev/null +++ b/pkg/swagger/model_plugin_mount.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PluginMount plugin mount +type PluginMount struct { + // description + Description string `json:"Description"` + // destination + Destination string `json:"Destination"` + // name + Name string `json:"Name"` + // options + Options []string `json:"Options"` + // settable + Settable []string `json:"Settable"` + // source + Source string `json:"Source"` + // type + Type_ string `json:"Type"` +} diff --git a/pkg/swagger/model_plugin_settings.go b/pkg/swagger/model_plugin_settings.go new file mode 100644 index 0000000..4e78efd --- /dev/null +++ b/pkg/swagger/model_plugin_settings.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PluginSettings struct { + // args + Args []string `json:"Args"` + // devices + Devices []PluginDevice `json:"Devices"` + // env + Env []string `json:"Env"` + // mounts + Mounts []PluginMount `json:"Mounts"` +} diff --git a/pkg/swagger/model_pod_basic_config.go b/pkg/swagger/model_pod_basic_config.go new file mode 100644 index 0000000..6de94c5 --- /dev/null +++ b/pkg/swagger/model_pod_basic_config.go @@ -0,0 +1,31 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodBasicConfig struct { + // Hostname is the pod's hostname. If not set, the name of the pod will be used (if a name was not provided here, the name auto-generated for the pod will be used). This will be used by the infra container and all containers in the pod as long as the UTS namespace is shared. Optional. + Hostname string `json:"hostname,omitempty"` + // InfraCommand sets the command that will be used to start the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. + InfraCommand []string `json:"infra_command,omitempty"` + // InfraConmonPidFile is a custom path to store the infra container's conmon PID. + InfraConmonPidFile string `json:"infra_conmon_pid_file,omitempty"` + // InfraImage is the image that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. + InfraImage string `json:"infra_image,omitempty"` + // Labels are key-value pairs that are used to add metadata to pods. Optional. + Labels map[string]string `json:"labels,omitempty"` + // Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional. + Name string `json:"name,omitempty"` + // NoInfra tells the pod not to create an infra container. If this is done, many networking-related options will become unavailable. Conflicts with setting any options in PodNetworkConfig, and the InfraCommand and InfraImages in this struct. Optional. + NoInfra bool `json:"no_infra,omitempty"` + // PodCreateCommand is the command used to create this pod. This will be shown in the output of Inspect() on the pod, and may also be used by some tools that wish to recreate the pod (e.g. `podman generate systemd --new`). Optional. + PodCreateCommand []string `json:"pod_create_command,omitempty"` + // SharedNamespaces instructs the pod to share a set of namespaces. Shared namespaces will be joined (by default) by every container which joins the pod. If not set and NoInfra is false, the pod will set a default set of namespaces to share. Conflicts with NoInfra=true. Optional. + SharedNamespaces []string `json:"shared_namespaces,omitempty"` +} diff --git a/pkg/swagger/model_pod_cgroup_config.go b/pkg/swagger/model_pod_cgroup_config.go new file mode 100644 index 0000000..68e2253 --- /dev/null +++ b/pkg/swagger/model_pod_cgroup_config.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// This will be expanded in future updates to pods. +type PodCgroupConfig struct { + // CgroupParent is the parent for the CGroup that the pod will create. This pod cgroup will, in turn, be the default cgroup parent for all containers in the pod. Optional. + CgroupParent string `json:"cgroup_parent,omitempty"` +} diff --git a/pkg/swagger/model_pod_create_config.go b/pkg/swagger/model_pod_create_config.go new file mode 100644 index 0000000..b71f32c --- /dev/null +++ b/pkg/swagger/model_pod_create_config.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodCreateConfig struct { + CgroupParent string `json:"cgroup-parent,omitempty"` + Hostname string `json:"hostname,omitempty"` + Infra bool `json:"infra,omitempty"` + InfraCommand string `json:"infra-command,omitempty"` + InfraImage string `json:"infra-image,omitempty"` + Labels []string `json:"labels,omitempty"` + Name string `json:"name,omitempty"` + Publish []string `json:"publish,omitempty"` + Share string `json:"share,omitempty"` +} diff --git a/pkg/swagger/model_pod_kill_report.go b/pkg/swagger/model_pod_kill_report.go new file mode 100644 index 0000000..881160c --- /dev/null +++ b/pkg/swagger/model_pod_kill_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodKillReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_network_config.go b/pkg/swagger/model_pod_network_config.go new file mode 100644 index 0000000..4269724 --- /dev/null +++ b/pkg/swagger/model_pod_network_config.go @@ -0,0 +1,34 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodNetworkConfig struct { + // CNINetworks is a list of CNI networks that the infra container will join. As, by default, containers share their network with the infra container, these networks will effectively be joined by the entire pod. Only available when NetNS is set to Bridge, the default for root. Optional. + CniNetworks []string `json:"cni_networks,omitempty"` + // DNSOption is a set of DNS options that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true. Optional. + DnsOption []string `json:"dns_option,omitempty"` + // DNSSearch is a set of DNS search domains that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, DNS search domains from the host's resolv.conf will be used. Conflicts with NoInfra=true. Optional. + DnsSearch []string `json:"dns_search,omitempty"` + // DNSServer is a set of DNS servers that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, the host's DNS servers will be used, unless the only server set is a localhost address. As the container cannot connect to the host's localhost, a default server will instead be set. Conflicts with NoInfra=true. Optional. + DnsServer [][]int32 `json:"dns_server,omitempty"` + // HostAdd is a set of hosts that will be added to the infra container's etc/hosts that will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true and NoManageHosts. Optional. + Hostadd []string `json:"hostadd,omitempty"` + Netns *Namespace `json:"netns,omitempty"` + // NetworkOptions are additional options for each network Optional. + NetworkOptions map[string][]string `json:"network_options,omitempty"` + // NoManageHosts indicates that /etc/hosts should not be managed by the pod. Instead, each container will create a separate /etc/hosts as they would if not in a pod. Conflicts with HostAdd. + NoManageHosts bool `json:"no_manage_hosts,omitempty"` + // NoManageResolvConf indicates that /etc/resolv.conf should not be managed by the pod. Instead, each container will create and manage a separate resolv.conf as if they had not joined a pod. Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. Optional. + NoManageResolvConf bool `json:"no_manage_resolv_conf,omitempty"` + // PortMappings is a set of ports to map into the infra container. As, by default, containers share their network with the infra container, this will forward the ports to the entire pod. Only available if NetNS is set to Bridge or Slirp. Optional. + Portmappings []PortMapping `json:"portmappings,omitempty"` + StaticIp *[]int32 `json:"static_ip,omitempty"` + StaticMac *[]int32 `json:"static_mac,omitempty"` +} diff --git a/pkg/swagger/model_pod_pause_report.go b/pkg/swagger/model_pod_pause_report.go new file mode 100644 index 0000000..d8bb098 --- /dev/null +++ b/pkg/swagger/model_pod_pause_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodPauseReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_prune_report.go b/pkg/swagger/model_pod_prune_report.go new file mode 100644 index 0000000..da35fab --- /dev/null +++ b/pkg/swagger/model_pod_prune_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodPruneReport struct { + Err string `json:"Err,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_restart_report.go b/pkg/swagger/model_pod_restart_report.go new file mode 100644 index 0000000..e388be1 --- /dev/null +++ b/pkg/swagger/model_pod_restart_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodRestartReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_rm_report.go b/pkg/swagger/model_pod_rm_report.go new file mode 100644 index 0000000..4ed2bfd --- /dev/null +++ b/pkg/swagger/model_pod_rm_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodRmReport struct { + Err string `json:"Err,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_spec_generator.go b/pkg/swagger/model_pod_spec_generator.go new file mode 100644 index 0000000..5aaf2f0 --- /dev/null +++ b/pkg/swagger/model_pod_spec_generator.go @@ -0,0 +1,55 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PodSpecGenerator describes options to create a pod +type PodSpecGenerator struct { + // CgroupParent is the parent for the CGroup that the pod will create. This pod cgroup will, in turn, be the default cgroup parent for all containers in the pod. Optional. + CgroupParent string `json:"cgroup_parent,omitempty"` + // CNINetworks is a list of CNI networks that the infra container will join. As, by default, containers share their network with the infra container, these networks will effectively be joined by the entire pod. Only available when NetNS is set to Bridge, the default for root. Optional. + CniNetworks []string `json:"cni_networks,omitempty"` + // DNSOption is a set of DNS options that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true. Optional. + DnsOption []string `json:"dns_option,omitempty"` + // DNSSearch is a set of DNS search domains that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, DNS search domains from the host's resolv.conf will be used. Conflicts with NoInfra=true. Optional. + DnsSearch []string `json:"dns_search,omitempty"` + // DNSServer is a set of DNS servers that will be used in the infra container's resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, the host's DNS servers will be used, unless the only server set is a localhost address. As the container cannot connect to the host's localhost, a default server will instead be set. Conflicts with NoInfra=true. Optional. + DnsServer [][]int32 `json:"dns_server,omitempty"` + // HostAdd is a set of hosts that will be added to the infra container's etc/hosts that will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true and NoManageHosts. Optional. + Hostadd []string `json:"hostadd,omitempty"` + // Hostname is the pod's hostname. If not set, the name of the pod will be used (if a name was not provided here, the name auto-generated for the pod will be used). This will be used by the infra container and all containers in the pod as long as the UTS namespace is shared. Optional. + Hostname string `json:"hostname,omitempty"` + // InfraCommand sets the command that will be used to start the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. + InfraCommand []string `json:"infra_command,omitempty"` + // InfraConmonPidFile is a custom path to store the infra container's conmon PID. + InfraConmonPidFile string `json:"infra_conmon_pid_file,omitempty"` + // InfraImage is the image that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional. + InfraImage string `json:"infra_image,omitempty"` + // Labels are key-value pairs that are used to add metadata to pods. Optional. + Labels map[string]string `json:"labels,omitempty"` + // Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional. + Name string `json:"name,omitempty"` + Netns *Namespace `json:"netns,omitempty"` + // NetworkOptions are additional options for each network Optional. + NetworkOptions map[string][]string `json:"network_options,omitempty"` + // NoInfra tells the pod not to create an infra container. If this is done, many networking-related options will become unavailable. Conflicts with setting any options in PodNetworkConfig, and the InfraCommand and InfraImages in this struct. Optional. + NoInfra bool `json:"no_infra,omitempty"` + // NoManageHosts indicates that /etc/hosts should not be managed by the pod. Instead, each container will create a separate /etc/hosts as they would if not in a pod. Conflicts with HostAdd. + NoManageHosts bool `json:"no_manage_hosts,omitempty"` + // NoManageResolvConf indicates that /etc/resolv.conf should not be managed by the pod. Instead, each container will create and manage a separate resolv.conf as if they had not joined a pod. Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. Optional. + NoManageResolvConf bool `json:"no_manage_resolv_conf,omitempty"` + // PodCreateCommand is the command used to create this pod. This will be shown in the output of Inspect() on the pod, and may also be used by some tools that wish to recreate the pod (e.g. `podman generate systemd --new`). Optional. + PodCreateCommand []string `json:"pod_create_command,omitempty"` + // PortMappings is a set of ports to map into the infra container. As, by default, containers share their network with the infra container, this will forward the ports to the entire pod. Only available if NetNS is set to Bridge or Slirp. Optional. + Portmappings []PortMapping `json:"portmappings,omitempty"` + // SharedNamespaces instructs the pod to share a set of namespaces. Shared namespaces will be joined (by default) by every container which joins the pod. If not set and NoInfra is false, the pod will set a default set of namespaces to share. Conflicts with NoInfra=true. Optional. + SharedNamespaces []string `json:"shared_namespaces,omitempty"` + StaticIp *[]int32 `json:"static_ip,omitempty"` + StaticMac *[]int32 `json:"static_mac,omitempty"` +} diff --git a/pkg/swagger/model_pod_start_report.go b/pkg/swagger/model_pod_start_report.go new file mode 100644 index 0000000..18e7829 --- /dev/null +++ b/pkg/swagger/model_pod_start_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodStartReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_stats_report.go b/pkg/swagger/model_pod_stats_report.go new file mode 100644 index 0000000..424b5e0 --- /dev/null +++ b/pkg/swagger/model_pod_stats_report.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodStatsReport struct { + BlockIO string `json:"BlockIO,omitempty"` + CID string `json:"CID,omitempty"` + CPU string `json:"CPU,omitempty"` + Mem string `json:"Mem,omitempty"` + MemUsage string `json:"MemUsage,omitempty"` + Name string `json:"Name,omitempty"` + NetIO string `json:"NetIO,omitempty"` + PIDS string `json:"PIDS,omitempty"` + Pod string `json:"Pod,omitempty"` +} diff --git a/pkg/swagger/model_pod_stop_report.go b/pkg/swagger/model_pod_stop_report.go new file mode 100644 index 0000000..b0be8db --- /dev/null +++ b/pkg/swagger/model_pod_stop_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodStopReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_pod_unpause_report.go b/pkg/swagger/model_pod_unpause_report.go new file mode 100644 index 0000000..edb01da --- /dev/null +++ b/pkg/swagger/model_pod_unpause_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PodUnpauseReport struct { + Errs []string `json:"Errs,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_port.go b/pkg/swagger/model_port.go new file mode 100644 index 0000000..a903d54 --- /dev/null +++ b/pkg/swagger/model_port.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Port An open port on a container +type Port struct { + // Host IP address that the container's port is mapped to + IP string `json:"IP,omitempty"` + // Port on the container + PrivatePort int32 `json:"PrivatePort"` + // Port exposed on the host + PublicPort int32 `json:"PublicPort,omitempty"` + // type + Type_ string `json:"Type"` +} diff --git a/pkg/swagger/model_port_binding.go b/pkg/swagger/model_port_binding.go new file mode 100644 index 0000000..833a240 --- /dev/null +++ b/pkg/swagger/model_port_binding.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// PortBinding represents a binding between a Host IP address and a Host Port +type PortBinding struct { + // HostIP is the host IP Address + HostIp string `json:"HostIp,omitempty"` + // HostPort is the host port number + HostPort string `json:"HostPort,omitempty"` +} diff --git a/pkg/swagger/model_port_mapping.go b/pkg/swagger/model_port_mapping.go new file mode 100644 index 0000000..7d158b7 --- /dev/null +++ b/pkg/swagger/model_port_mapping.go @@ -0,0 +1,23 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type PortMapping struct { + // ContainerPort is the port number that will be exposed from the container. Mandatory. + ContainerPort int32 `json:"container_port,omitempty"` + // HostIP is the IP that we will bind to on the host. If unset, assumed to be 0.0.0.0 (all interfaces). + HostIp string `json:"host_ip,omitempty"` + // HostPort is the port number that will be forwarded from the host into the container. If omitted, a random port on the host (guaranteed to be over 1024) will be assigned. + HostPort int32 `json:"host_port,omitempty"` + // Protocol is the protocol forward. Must be either \"tcp\", \"udp\", and \"sctp\", or some combination of these separated by commas. If unset, assumed to be TCP. + Protocol string `json:"protocol,omitempty"` + // Range is the number of ports that will be forwarded, starting at HostPort and ContainerPort and counting up. This is 1-indexed, so 1 is assumed to be a single port (only the Hostport:Containerport mapping will be added), 2 is two ports (both Hostport:Containerport and Hostport+1:Containerport+1), etc. If unset, assumed to be 1 (a single port). Both hostport + range and containerport + range must be less than 65536. + Range_ int32 `json:"range,omitempty"` +} diff --git a/pkg/swagger/model_posix_rlimit.go b/pkg/swagger/model_posix_rlimit.go new file mode 100644 index 0000000..6f6fc68 --- /dev/null +++ b/pkg/swagger/model_posix_rlimit.go @@ -0,0 +1,20 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// POSIXRlimit type and restrictions +type PosixRlimit struct { + // Hard is the hard limit for the specified type + Hard int32 `json:"hard,omitempty"` + // Soft is the soft limit for the specified type + Soft int32 `json:"soft,omitempty"` + // Type of the rlimit to set + Type_ string `json:"type,omitempty"` +} diff --git a/pkg/swagger/model_remote_socket.go b/pkg/swagger/model_remote_socket.go new file mode 100644 index 0000000..007c9b1 --- /dev/null +++ b/pkg/swagger/model_remote_socket.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// RemoteSocket describes information about the API socket +type RemoteSocket struct { + Exists bool `json:"exists,omitempty"` + Path string `json:"path,omitempty"` +} diff --git a/pkg/swagger/model_report.go b/pkg/swagger/model_report.go new file mode 100644 index 0000000..f92237e --- /dev/null +++ b/pkg/swagger/model_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Report struct { + Err map[string]string `json:"Err,omitempty"` + Id []string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_restart_policy.go b/pkg/swagger/model_restart_policy.go new file mode 100644 index 0000000..4d97cd8 --- /dev/null +++ b/pkg/swagger/model_restart_policy.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type RestartPolicy struct { + MaximumRetryCount int64 `json:"MaximumRetryCount,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_root_fs.go b/pkg/swagger/model_root_fs.go new file mode 100644 index 0000000..699b756 --- /dev/null +++ b/pkg/swagger/model_root_fs.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// RootFS holds the root fs information of an image +type RootFs struct { + Layers []string `json:"Layers,omitempty"` + Type_ string `json:"Type,omitempty"` +} diff --git a/pkg/swagger/model_schema2_health_config.go b/pkg/swagger/model_schema2_health_config.go new file mode 100644 index 0000000..7ba1688 --- /dev/null +++ b/pkg/swagger/model_schema2_health_config.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Schema2HealthConfig is a HealthConfig, which holds configuration settings for the HEALTHCHECK feature, from docker/docker/api/types/container. +type Schema2HealthConfig struct { + Interval int64 `json:"Interval,omitempty"` + // Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit. + Retries int64 `json:"Retries,omitempty"` + StartPeriod int64 `json:"StartPeriod,omitempty"` + // Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell + Test []string `json:"Test,omitempty"` + Timeout int64 `json:"Timeout,omitempty"` +} diff --git a/pkg/swagger/model_security_config.go b/pkg/swagger/model_security_config.go new file mode 100644 index 0000000..81feb51 --- /dev/null +++ b/pkg/swagger/model_security_config.go @@ -0,0 +1,29 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// SecurityConfig configures the security features for the container +type SecurityConfig struct { + ApparmorProfile string `json:"ApparmorProfile,omitempty"` + CapAdd []string `json:"CapAdd,omitempty"` + CapDrop []string `json:"CapDrop,omitempty"` + CapRequired []string `json:"CapRequired,omitempty"` + LabelOpts []string `json:"LabelOpts,omitempty"` + NoNewPrivs bool `json:"NoNewPrivs,omitempty"` + Privileged bool `json:"Privileged,omitempty"` + ProcOpts []string `json:"ProcOpts,omitempty"` + ReadOnlyRootfs bool `json:"ReadOnlyRootfs,omitempty"` + ReadOnlyTmpfs bool `json:"ReadOnlyTmpfs,omitempty"` + SeccompPolicy int64 `json:"SeccompPolicy,omitempty"` + SeccompProfileFromImage string `json:"SeccompProfileFromImage,omitempty"` + SeccompProfilePath string `json:"SeccompProfilePath,omitempty"` + SecurityOpts []string `json:"SecurityOpts,omitempty"` + Sysctl map[string]string `json:"Sysctl,omitempty"` +} diff --git a/pkg/swagger/model_service_info.go b/pkg/swagger/model_service_info.go new file mode 100644 index 0000000..99e132a --- /dev/null +++ b/pkg/swagger/model_service_info.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ServiceInfo represents service parameters with the list of service's tasks +type ServiceInfo struct { + LocalLBIndex int64 `json:"LocalLBIndex,omitempty"` + Ports []string `json:"Ports,omitempty"` + Tasks []Task `json:"Tasks,omitempty"` + VIP string `json:"VIP,omitempty"` +} diff --git a/pkg/swagger/model_service_update_response.go b/pkg/swagger/model_service_update_response.go new file mode 100644 index 0000000..87c6bd5 --- /dev/null +++ b/pkg/swagger/model_service_update_response.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ServiceUpdateResponse service update response +type ServiceUpdateResponse struct { + // Optional warning messages + Warnings []string `json:"Warnings,omitempty"` +} diff --git a/pkg/swagger/model_slirp_info.go b/pkg/swagger/model_slirp_info.go new file mode 100644 index 0000000..2c25244 --- /dev/null +++ b/pkg/swagger/model_slirp_info.go @@ -0,0 +1,17 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// SlirpInfo describes the slirp executable that is being being used. +type SlirpInfo struct { + Executable string `json:"executable,omitempty"` + Package_ string `json:"package,omitempty"` + Version string `json:"version,omitempty"` +} diff --git a/pkg/swagger/model_spec_generator.go b/pkg/swagger/model_spec_generator.go new file mode 100644 index 0000000..045cb44 --- /dev/null +++ b/pkg/swagger/model_spec_generator.go @@ -0,0 +1,172 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// SpecGenerator creates an OCI spec and Libpod configuration options to create a container based on the given configuration. +type SpecGenerator struct { + // Annotations are key-value options passed into the container runtime that can be used to trigger special behavior. Optional. + Annotations map[string]string `json:"annotations,omitempty"` + // ApparmorProfile is the name of the Apparmor profile the container will use. Optional. + ApparmorProfile string `json:"apparmor_profile,omitempty"` + // CapAdd are capabilities which will be added to the container. Conflicts with Privileged. Optional. + CapAdd []string `json:"cap_add,omitempty"` + // CapDrop are capabilities which will be removed from the container. Conflicts with Privileged. Optional. + CapDrop []string `json:"cap_drop,omitempty"` + // CgroupParent is the container's CGroup parent. If not set, the default for the current cgroup driver will be used. Optional. + CgroupParent string `json:"cgroup_parent,omitempty"` + Cgroupns *Namespace `json:"cgroupns,omitempty"` + // CgroupsMode sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely. + CgroupsMode string `json:"cgroups_mode,omitempty"` + // CNINetworks is a list of CNI networks to join the container to. If this list is empty, the default CNI network will be joined instead. If at least one entry is present, we will not join the default network (unless it is part of this list). Only available if NetNS is set to bridge. Optional. + CniNetworks []string `json:"cni_networks,omitempty"` + // Command is the container's command. If not given and Image is specified, this will be populated by the image's configuration. Optional. + Command []string `json:"command,omitempty"` + // ConmonPidFile is a path at which a PID file for Conmon will be placed. If not given, a default location will be used. Optional. + ConmonPidFile string `json:"conmon_pid_file,omitempty"` + // ContainerCreateCommand is the command that was used to create this container. This will be shown in the output of Inspect() on the container, and may also be used by some tools that wish to recreate the container (e.g. `podman generate systemd --new`). Optional. + ContainerCreateCommand []string `json:"containerCreateCommand,omitempty"` + // Devices are devices that will be added to the container. Optional. + Devices []LinuxDevice `json:"devices,omitempty"` + // DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsOption []string `json:"dns_option,omitempty"` + // DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsSearch []string `json:"dns_search,omitempty"` + // DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default. Conflicts with UseImageResolvConf. Optional. + DnsServer [][]int32 `json:"dns_server,omitempty"` + // Entrypoint is the container's entrypoint. If not given and Image is specified, this will be populated by the image's configuration. Optional. + Entrypoint []string `json:"entrypoint,omitempty"` + // Env is a set of environment variables that will be set in the container. Optional. + Env map[string]string `json:"env,omitempty"` + // EnvHost indicates that the host environment should be added to container Optional. + EnvHost bool `json:"env_host,omitempty"` + // Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set. Expose is a map of uint16 (port number) to a string representing protocol. Allowed protocols are \"tcp\", \"udp\", and \"sctp\", or some combination of the three separated by commas. If protocol is set to \"\" we will assume TCP. Only available if NetNS is set to Bridge or Slirp, and PublishExposedPorts is set. Optional. + Expose *interface{} `json:"expose,omitempty"` + // Groups are a list of supplemental groups the container's user will be granted access to. Optional. + Groups []string `json:"groups,omitempty"` + Healthconfig *Schema2HealthConfig `json:"healthconfig,omitempty"` + // HostAdd is a set of hosts which will be added to the container's etc/hosts file. Conflicts with UseImageHosts. Optional. + Hostadd []string `json:"hostadd,omitempty"` + // Hostname is the container's hostname. If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private. Optional. + Hostname string `json:"hostname,omitempty"` + // EnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional. + Httpproxy bool `json:"httpproxy,omitempty"` + Idmappings *IdMappingOptions `json:"idmappings,omitempty"` + // Image is the image the container will be based on. The image will be used as the container's root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified. + Image string `json:"image,omitempty"` + // ImageVolumeMode indicates how image volumes will be created. Supported modes are \"ignore\" (do not create), \"tmpfs\" (create as tmpfs), and \"anonymous\" (create as anonymous volumes). The default if unset is anonymous. Optional. + ImageVolumeMode string `json:"image_volume_mode,omitempty"` + // Init specifies that an init binary will be mounted into the container, and will be used as PID1. + Init bool `json:"init,omitempty"` + // InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional. + InitPath string `json:"init_path,omitempty"` + Ipcns *Namespace `json:"ipcns,omitempty"` + // Labels are key-value pairs that are used to add metadata to containers. Optional. + Labels map[string]string `json:"labels,omitempty"` + LogConfiguration *LogConfig `json:"log_configuration,omitempty"` + // Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. + Mounts []Mount `json:"mounts,omitempty"` + // Name is the name the container will be given. If no name is provided, one will be randomly generated. Optional. + Name string `json:"name,omitempty"` + // Namespace is the libpod namespace the container will be placed in. Optional. + Namespace string `json:"namespace,omitempty"` + Netns *Namespace `json:"netns,omitempty"` + // NetworkOptions are additional options for each network Optional. + NetworkOptions map[string][]string `json:"network_options,omitempty"` + // NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container. + NoNewPrivileges bool `json:"no_new_privileges,omitempty"` + // OCIRuntime is the name of the OCI runtime that will be used to create the container. If not specified, the default will be used. Optional. + OciRuntime string `json:"oci_runtime,omitempty"` + // OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional. + OomScoreAdj int64 `json:"oom_score_adj,omitempty"` + // Overlay volumes are named volumes that will be added to the container. Optional. + OverlayVolumes []OverlayVolume `json:"overlay_volumes,omitempty"` + Pidns *Namespace `json:"pidns,omitempty"` + // Pod is the ID of the pod the container will join. Optional. + Pod string `json:"pod,omitempty"` + // PortBindings is a set of ports to map into the container. Only available if NetNS is set to bridge or slirp. Optional. + Portmappings []PortMapping `json:"portmappings,omitempty"` + // Privileged is whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled). TODO: this conflicts with things. TODO: this does more. + Privileged bool `json:"privileged,omitempty"` + // ProcOpts are the options used for the proc mount. + ProcfsOpts []string `json:"procfs_opts,omitempty"` + // PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host. This is based on ports set in Expose below, and any ports specified by the Image (if one is given). Only available if NetNS is set to Bridge or Slirp. + PublishImagePorts bool `json:"publish_image_ports,omitempty"` + // Rlimits are POSIX rlimits to apply to the container. Optional. + RLimits []PosixRlimit `json:"r_limits,omitempty"` + // RawImageName is the user-specified and unprocessed input referring to a local or a remote image. + RawImageName string `json:"raw_image_name,omitempty"` + // ReadOnlyFilesystem indicates that everything will be mounted as read-only + ReadOnlyFilesystem bool `json:"read_only_filesystem,omitempty"` + // Remove indicates if the container should be removed once it has been started and exits + Remove bool `json:"remove,omitempty"` + ResourceLimits *LinuxResources `json:"resource_limits,omitempty"` + // RestartPolicy is the container's restart policy - an action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used. Optional. + RestartPolicy string `json:"restart_policy,omitempty"` + // RestartRetries is the number of attempts that will be made to restart the container. Only available when RestartPolicy is set to \"on-failure\". Optional. + RestartTries int32 `json:"restart_tries,omitempty"` + // Rootfs is the path to a directory that will be used as the container's root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified. + Rootfs string `json:"rootfs,omitempty"` + // RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional. + RootfsPropagation string `json:"rootfs_propagation,omitempty"` + // Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET + SdnotifyMode string `json:"sdnotifyMode,omitempty"` + // SeccompPolicy determines which seccomp profile gets applied the container. valid values: empty,default,image + SeccompPolicy string `json:"seccomp_policy,omitempty"` + // SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile. If not specified, no Seccomp profile will be used. Optional. + SeccompProfilePath string `json:"seccomp_profile_path,omitempty"` + // SelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional. + SelinuxOpts []string `json:"selinux_opts,omitempty"` + // ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional. + ShmSize int64 `json:"shm_size,omitempty"` + StaticIp *[]int32 `json:"static_ip,omitempty"` + StaticIpv6 *[]int32 `json:"static_ipv6,omitempty"` + StaticMac *[]int32 `json:"static_mac,omitempty"` + // Stdin is whether the container will keep its STDIN open. + Stdin bool `json:"stdin,omitempty"` + StopSignal int64 `json:"stop_signal,omitempty"` + // StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead. Optional. + StopTimeout int32 `json:"stop_timeout,omitempty"` + // Sysctl sets kernel parameters for the container + Sysctl map[string]string `json:"sysctl,omitempty"` + // Systemd is whether the container will be started in systemd mode. Valid options are \"true\", \"false\", and \"always\". \"true\" enables this mode only if the binary run in the container is sbin/init or systemd. \"always\" unconditionally enables systemd mode. \"false\" unconditionally disables systemd mode. If enabled, mounts and stop signal will be modified. If set to \"always\" or set to \"true\" and conditionally triggered, conflicts with StopSignal. If not specified, \"false\" will be assumed. Optional. + Systemd string `json:"systemd,omitempty"` + // Terminal is whether the container will create a PTY. Optional. + Terminal bool `json:"terminal,omitempty"` + // IO read rate limit per cgroup per device, bytes per second + ThrottleReadBpsDevice map[string]LinuxThrottleDevice `json:"throttleReadBpsDevice,omitempty"` + // IO read rate limit per cgroup per device, IO per second + ThrottleReadIOPSDevice map[string]LinuxThrottleDevice `json:"throttleReadIOPSDevice,omitempty"` + // IO write rate limit per cgroup per device, bytes per second + ThrottleWriteBpsDevice map[string]LinuxThrottleDevice `json:"throttleWriteBpsDevice,omitempty"` + // IO write rate limit per cgroup per device, IO per second + ThrottleWriteIOPSDevice map[string]LinuxThrottleDevice `json:"throttleWriteIOPSDevice,omitempty"` + // Timezone is the timezone inside the container. Local means it has the same timezone as the host machine + Timezone string `json:"timezone,omitempty"` + // Umask is the umask the init process of the container will be run with. + Umask string `json:"umask,omitempty"` + // CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional. + Unified map[string]string `json:"unified,omitempty"` + // UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image. Conflicts with HostAdd. + UseImageHosts bool `json:"use_image_hosts,omitempty"` + // UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image. Conflicts with DNSServer, DNSSearch, DNSOption. + UseImageResolveConf bool `json:"use_image_resolve_conf,omitempty"` + // User is the user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container's /etc/passwd. If unset, the container will be run as root. Optional. + User string `json:"user,omitempty"` + Userns *Namespace `json:"userns,omitempty"` + Utsns *Namespace `json:"utsns,omitempty"` + // Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional. + Volumes []NamedVolume `json:"volumes,omitempty"` + // VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container. + VolumesFrom []string `json:"volumes_from,omitempty"` + // Weight per cgroup per device, can override BlkioWeight + WeightDevice map[string]LinuxWeightDevice `json:"weightDevice,omitempty"` + // WorkDir is the container's working directory. If unset, the default, /, will be used. Optional. + WorkDir string `json:"work_dir,omitempty"` +} diff --git a/pkg/swagger/model_store_info.go b/pkg/swagger/model_store_info.go new file mode 100644 index 0000000..c81a6e3 --- /dev/null +++ b/pkg/swagger/model_store_info.go @@ -0,0 +1,23 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// StoreInfo describes the container storage and its attributes +type StoreInfo struct { + ConfigFile string `json:"configFile,omitempty"` + ContainerStore *ContainerStore `json:"containerStore,omitempty"` + GraphDriverName string `json:"graphDriverName,omitempty"` + GraphOptions map[string]interface{} `json:"graphOptions,omitempty"` + GraphRoot string `json:"graphRoot,omitempty"` + GraphStatus map[string]string `json:"graphStatus,omitempty"` + ImageStore *ImageStore `json:"imageStore,omitempty"` + RunRoot string `json:"runRoot,omitempty"` + VolumePath string `json:"volumePath,omitempty"` +} diff --git a/pkg/swagger/model_system_df_container_report.go b/pkg/swagger/model_system_df_container_report.go new file mode 100644 index 0000000..85c9a91 --- /dev/null +++ b/pkg/swagger/model_system_df_container_report.go @@ -0,0 +1,26 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// SystemDfContainerReport describes a container for use with df +type SystemDfContainerReport struct { + Command []string `json:"Command,omitempty"` + ContainerID string `json:"ContainerID,omitempty"` + Created time.Time `json:"Created,omitempty"` + Image string `json:"Image,omitempty"` + LocalVolumes int64 `json:"LocalVolumes,omitempty"` + Names string `json:"Names,omitempty"` + RWSize int64 `json:"RWSize,omitempty"` + Size int64 `json:"Size,omitempty"` + Status string `json:"Status,omitempty"` +} diff --git a/pkg/swagger/model_system_df_image_report.go b/pkg/swagger/model_system_df_image_report.go new file mode 100644 index 0000000..a963b12 --- /dev/null +++ b/pkg/swagger/model_system_df_image_report.go @@ -0,0 +1,25 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +import ( + "time" +) + +// SystemDfImageReport describes an image for use with df +type SystemDfImageReport struct { + Containers int64 `json:"Containers,omitempty"` + Created time.Time `json:"Created,omitempty"` + ImageID string `json:"ImageID,omitempty"` + Repository string `json:"Repository,omitempty"` + SharedSize int64 `json:"SharedSize,omitempty"` + Size int64 `json:"Size,omitempty"` + Tag string `json:"Tag,omitempty"` + UniqueSize int64 `json:"UniqueSize,omitempty"` +} diff --git a/pkg/swagger/model_system_df_volume_report.go b/pkg/swagger/model_system_df_volume_report.go new file mode 100644 index 0000000..bb782e3 --- /dev/null +++ b/pkg/swagger/model_system_df_volume_report.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// SystemDfVolumeReport describes a volume and its size +type SystemDfVolumeReport struct { + Links int64 `json:"Links,omitempty"` + ReclaimableSize int64 `json:"ReclaimableSize,omitempty"` + Size int64 `json:"Size,omitempty"` + VolumeName string `json:"VolumeName,omitempty"` +} diff --git a/pkg/swagger/model_task.go b/pkg/swagger/model_task.go new file mode 100644 index 0000000..d17ad7a --- /dev/null +++ b/pkg/swagger/model_task.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Task carries the information about one backend task +type Task struct { + EndpointID string `json:"EndpointID,omitempty"` + EndpointIP string `json:"EndpointIP,omitempty"` + Info map[string]string `json:"Info,omitempty"` + Name string `json:"Name,omitempty"` +} diff --git a/pkg/swagger/model_throttle_device.go b/pkg/swagger/model_throttle_device.go new file mode 100644 index 0000000..24e7d10 --- /dev/null +++ b/pkg/swagger/model_throttle_device.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// ThrottleDevice is a structure that holds device:rate_per_second pair +type ThrottleDevice struct { + Path string `json:"Path,omitempty"` + Rate int32 `json:"Rate,omitempty"` +} diff --git a/pkg/swagger/model_ulimit.go b/pkg/swagger/model_ulimit.go new file mode 100644 index 0000000..a1925d1 --- /dev/null +++ b/pkg/swagger/model_ulimit.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type Ulimit struct { + Hard int64 `json:"Hard,omitempty"` + Name string `json:"Name,omitempty"` + Soft int64 `json:"Soft,omitempty"` +} diff --git a/pkg/swagger/model_user_config.go b/pkg/swagger/model_user_config.go new file mode 100644 index 0000000..6e29073 --- /dev/null +++ b/pkg/swagger/model_user_config.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// UserConfig configures the user namespace for the container +type UserConfig struct { + GroupAdd []string `json:"GroupAdd,omitempty"` + IDMappings *IdMappingOptions `json:"IDMappings,omitempty"` + User string `json:"User,omitempty"` + UsernsMode string `json:"UsernsMode,omitempty"` +} diff --git a/pkg/swagger/model_uts_config.go b/pkg/swagger/model_uts_config.go new file mode 100644 index 0000000..1b54f6f --- /dev/null +++ b/pkg/swagger/model_uts_config.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// UtsConfig configures the uts namespace for the container +type UtsConfig struct { + HostAdd []string `json:"HostAdd,omitempty"` + Hostname string `json:"Hostname,omitempty"` + NoHosts bool `json:"NoHosts,omitempty"` + UtsMode string `json:"UtsMode,omitempty"` +} diff --git a/pkg/swagger/model_version.go b/pkg/swagger/model_version.go new file mode 100644 index 0000000..133bae5 --- /dev/null +++ b/pkg/swagger/model_version.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Version is an output struct for API +type Version struct { + APIVersion string `json:"APIVersion,omitempty"` + Built int64 `json:"Built,omitempty"` + BuiltTime string `json:"BuiltTime,omitempty"` + GitCommit string `json:"GitCommit,omitempty"` + GoVersion string `json:"GoVersion,omitempty"` + OsArch string `json:"OsArch,omitempty"` + Version string `json:"Version,omitempty"` +} diff --git a/pkg/swagger/model_volume.go b/pkg/swagger/model_volume.go new file mode 100644 index 0000000..48de062 --- /dev/null +++ b/pkg/swagger/model_volume.go @@ -0,0 +1,31 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// Volume volume +type Volume struct { + // Date/Time the volume was created. + CreatedAt string `json:"CreatedAt,omitempty"` + // Name of the volume driver used by the volume. + Driver string `json:"Driver"` + // User-defined key/value metadata. + Labels map[string]string `json:"Labels"` + // Mount path of the volume on the host. + Mountpoint string `json:"Mountpoint"` + // Name of the volume. + Name string `json:"Name"` + // The driver specific options used when creating the volume. + Options map[string]string `json:"Options"` + // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. + Scope string `json:"Scope"` + // Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. + Status map[string]interface{} `json:"Status,omitempty"` + UsageData *VolumeUsageData `json:"UsageData,omitempty"` +} diff --git a/pkg/swagger/model_volume_create.go b/pkg/swagger/model_volume_create.go new file mode 100644 index 0000000..9554621 --- /dev/null +++ b/pkg/swagger/model_volume_create.go @@ -0,0 +1,21 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type VolumeCreate struct { + // Volume driver to use + Driver string `json:"Driver,omitempty"` + // User-defined key/value metadata. + Label map[string]string `json:"Label,omitempty"` + // New volume's name. Can be left blank + Name string `json:"Name,omitempty"` + // Mapping of driver options and values. + Options map[string]string `json:"Options,omitempty"` +} diff --git a/pkg/swagger/model_volume_create_body.go b/pkg/swagger/model_volume_create_body.go new file mode 100644 index 0000000..8853293 --- /dev/null +++ b/pkg/swagger/model_volume_create_body.go @@ -0,0 +1,22 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// VolumeCreateBody Volume configuration +type VolumeCreateBody struct { + // Name of the volume driver to use. + Driver string `json:"Driver"` + // A mapping of driver options and values. These options are passed directly to the driver and are driver specific. + DriverOpts map[string]string `json:"DriverOpts"` + // User-defined key/value metadata. + Labels map[string]string `json:"Labels"` + // The new volume's name. If not specified, Docker generates a name. + Name string `json:"Name"` +} diff --git a/pkg/swagger/model_volume_info.go b/pkg/swagger/model_volume_info.go new file mode 100644 index 0000000..abf314b --- /dev/null +++ b/pkg/swagger/model_volume_info.go @@ -0,0 +1,28 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// VolumeInfo Volume list response +type VolumeInfo struct { + // Date/Time the volume was created. + CreatedAt string `json:"CreatedAt,omitempty"` + // Name of the volume driver used by the volume. Only supports local driver + Driver string `json:"Driver"` + // User-defined key/value metadata. Always included + Labels map[string]string `json:"Labels,omitempty"` + // Mount path of the volume on the host. + Mountpoint string `json:"Mountpoint"` + // Name of the volume. + Name string `json:"Name"` + // The driver specific options used when creating the volume. + Options map[string]string `json:"Options"` + // The level at which the volume exists. Libpod does not implement volume scoping, and this is provided solely for Docker compatibility. The value is only \"local\". + Scope string `json:"Scope"` +} diff --git a/pkg/swagger/model_volume_list_body.go b/pkg/swagger/model_volume_list_body.go new file mode 100644 index 0000000..37dae18 --- /dev/null +++ b/pkg/swagger/model_volume_list_body.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// VolumeListBody Volume list response +type VolumeListBody struct { + Volumes []VolumeInfo `json:"Volumes,omitempty"` +} diff --git a/pkg/swagger/model_volume_list_ok_body.go b/pkg/swagger/model_volume_list_ok_body.go new file mode 100644 index 0000000..ccaf046 --- /dev/null +++ b/pkg/swagger/model_volume_list_ok_body.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// VolumeListOKBody Volume list response +type VolumeListOkBody struct { + // List of volumes + Volumes []Volume `json:"Volumes"` + // Warnings that occurred when fetching the list of volumes. + Warnings []string `json:"Warnings"` +} diff --git a/pkg/swagger/model_volume_prune_report.go b/pkg/swagger/model_volume_prune_report.go new file mode 100644 index 0000000..43f8115 --- /dev/null +++ b/pkg/swagger/model_volume_prune_report.go @@ -0,0 +1,15 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +type VolumePruneReport struct { + Err string `json:"Err,omitempty"` + Id string `json:"Id,omitempty"` +} diff --git a/pkg/swagger/model_volume_usage_data.go b/pkg/swagger/model_volume_usage_data.go new file mode 100644 index 0000000..63aa242 --- /dev/null +++ b/pkg/swagger/model_volume_usage_data.go @@ -0,0 +1,18 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints. +type VolumeUsageData struct { + // The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. + RefCount int64 `json:"RefCount"` + // Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") + Size int64 `json:"Size"` +} diff --git a/pkg/swagger/model_weight_device.go b/pkg/swagger/model_weight_device.go new file mode 100644 index 0000000..2a00e03 --- /dev/null +++ b/pkg/swagger/model_weight_device.go @@ -0,0 +1,16 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +// WeightDevice is a structure that holds device:weight pair +type WeightDevice struct { + Path string `json:"Path,omitempty"` + Weight int32 `json:"Weight,omitempty"` +} diff --git a/pkg/swagger/response.go b/pkg/swagger/response.go new file mode 100644 index 0000000..fa8e2b8 --- /dev/null +++ b/pkg/swagger/response.go @@ -0,0 +1,43 @@ +/* + * Provides a container compatible interface. + * + * This documentation describes the Podman v2.0 RESTful API. It replaces the Podman v1.0 API and was initially delivered along with Podman v2.0. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /var/run/docker.sock to /run/podman/podman.sock See podman-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v1.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/images/json' | jq + * + * API version: 0.0.1 + * Contact: podman@lists.podman.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the swagger operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +}