summaryrefslogtreecommitdiff
path: root/libpod/oci_missing.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-04-14 10:54:06 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-05-14 16:51:57 -0400
commit50cc56bc4a37b4f83988608ec864ece3b67386d8 (patch)
tree2c239199bd45fbae155ccc75b7b4555c6fe477a8 /libpod/oci_missing.go
parent0d9625152b9acf1dc7662e38f56aa5b106c4dfcd (diff)
downloadpodman-50cc56bc4a37b4f83988608ec864ece3b67386d8.tar.gz
podman-50cc56bc4a37b4f83988608ec864ece3b67386d8.tar.bz2
podman-50cc56bc4a37b4f83988608ec864ece3b67386d8.zip
Add an initial implementation of HTTP-forwarded exec
This is heavily based off the existing exec implementation, but does not presently share code with it, to try and ensure we don't break anything. Still to do: - Add code sharing with existing exec implementation - Wire in the frontend (exec HTTP endpoint) - Move all exec-related code in oci_conmon_linux.go into a new file - Investigate code sharing between HTTP attach and HTTP exec. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/oci_missing.go')
-rw-r--r--libpod/oci_missing.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/libpod/oci_missing.go b/libpod/oci_missing.go
index 172805b0d..626740f72 100644
--- a/libpod/oci_missing.go
+++ b/libpod/oci_missing.go
@@ -121,7 +121,12 @@ func (r *MissingRuntime) AttachResize(ctr *Container, newSize remotecommand.Term
}
// ExecContainer is not available as the runtime is missing
-func (r *MissingRuntime) ExecContainer(ctr *Container, sessionID string, options *ExecOptions) (int, chan error, error) {
+func (r *MissingRuntime) ExecContainer(ctr *Container, sessionID string, options *ExecOptions, streams *define.AttachStreams) (int, chan error, error) {
+ return -1, nil, r.printError()
+}
+
+// ExecContainerHTTP is not available as the runtime is missing
+func (r *MissingRuntime) ExecContainerHTTP(ctr *Container, sessionID string, options *ExecOptions, httpConn net.Conn, httpBuf *bufio.ReadWriter, streams *HTTPAttachStreams, cancel <-chan bool) (int, chan error, error) {
return -1, nil, r.printError()
}