summaryrefslogtreecommitdiff
path: root/libpod/oci_missing.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-16 21:10:53 +0100
committerGitHub <noreply@github.com>2020-01-16 21:10:53 +0100
commit74b89da27c5da20ddcbff5ea3689795ad2b720f5 (patch)
tree0a4516323bc9dd5bedf4ef75595892dcf7a27b63 /libpod/oci_missing.go
parent79fbe7252e35b086e168c55c32b6c7b8e83496bc (diff)
parentac47e80b07ddc1e56e7c4fd6b0deca9f3bdc5f54 (diff)
downloadpodman-74b89da27c5da20ddcbff5ea3689795ad2b720f5.tar.gz
podman-74b89da27c5da20ddcbff5ea3689795ad2b720f5.tar.bz2
podman-74b89da27c5da20ddcbff5ea3689795ad2b720f5.zip
Merge pull request #4837 from mheon/rework_attach
Add an API for Attach over HTTP API
Diffstat (limited to 'libpod/oci_missing.go')
-rw-r--r--libpod/oci_missing.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/oci_missing.go b/libpod/oci_missing.go
index 0faa1805b..ff7eea625 100644
--- a/libpod/oci_missing.go
+++ b/libpod/oci_missing.go
@@ -1,13 +1,16 @@
package libpod
import (
+ "bufio"
"fmt"
+ "net"
"path/filepath"
"sync"
"github.com/containers/libpod/libpod/define"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
+ "k8s.io/client-go/tools/remotecommand"
)
var (
@@ -107,6 +110,16 @@ func (r *MissingRuntime) UnpauseContainer(ctr *Container) error {
return r.printError()
}
+// HTTPAttach is not available as the runtime is missing
+func (r *MissingRuntime) HTTPAttach(ctr *Container, httpConn net.Conn, httpBuf *bufio.ReadWriter, streams *HTTPAttachStreams, detachKeys *string, cancel <-chan bool) error {
+ return r.printError()
+}
+
+// AttachResize is not available as the runtime is missing
+func (r *MissingRuntime) AttachResize(ctr *Container, newSize remotecommand.TerminalSize) error {
+ return r.printError()
+}
+
// ExecContainer is not available as the runtime is missing
func (r *MissingRuntime) ExecContainer(ctr *Container, sessionID string, options *ExecOptions) (int, chan error, error) {
return -1, nil, r.printError()