diff options
author | Brent Baude <bbaude@redhat.com> | 2020-02-02 12:34:51 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-02-03 12:40:01 -0600 |
commit | 81296cba829622a313ba38624548e3214d2164fc (patch) | |
tree | 880604b0944b62694ea1a037982cf572b735edd1 /pkg/api/handlers | |
parent | 23f795786224c27f737e9043e9d513f54fa35ba8 (diff) | |
download | podman-81296cba829622a313ba38624548e3214d2164fc.tar.gz podman-81296cba829622a313ba38624548e3214d2164fc.tar.bz2 podman-81296cba829622a313ba38624548e3214d2164fc.zip |
[CI:DOCS]add apiv2 endpoints for exec
add the openapi/swagger documentation for exec. The subcommands added are create, inspect, resize, and start.
at the time of this writing, no structure is declared for the inspect response. once the libpod work for this is complete, we can inherit and swaggerize it.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/exec.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/api/handlers/exec.go b/pkg/api/handlers/exec.go new file mode 100644 index 000000000..8a7b2ae26 --- /dev/null +++ b/pkg/api/handlers/exec.go @@ -0,0 +1,25 @@ +package handlers + +import ( + "net/http" + + "github.com/containers/libpod/libpod/define" + "github.com/containers/libpod/pkg/api/handlers/utils" +) + +func CreateExec(w http.ResponseWriter, r *http.Request) { + utils.Error(w, "function not implemented", http.StatusInternalServerError, define.ErrNotImplemented) +} + +func StartExec(w http.ResponseWriter, r *http.Request) { + utils.Error(w, "function not implemented", http.StatusInternalServerError, define.ErrNotImplemented) +} + +func ResizeExec(w http.ResponseWriter, r *http.Request) { + utils.Error(w, "function not implemented", http.StatusInternalServerError, define.ErrNotImplemented) + +} + +func InspectExec(w http.ResponseWriter, r *http.Request) { + utils.Error(w, "function not implemented", http.StatusInternalServerError, define.ErrNotImplemented) +} |