aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-03-21 00:02:40 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-03-21 00:21:59 +0100
commitd48b0b5131905d1eec427feadd514eb8a423d3a1 (patch)
tree730517f7c810f3a783d096857e6c6280727cd27c
parentc6277e74331cfe54e2517f0765b7e420228eb60a (diff)
downloadpodman-d48b0b5131905d1eec427feadd514eb8a423d3a1.tar.gz
podman-d48b0b5131905d1eec427feadd514eb8a423d3a1.tar.bz2
podman-d48b0b5131905d1eec427feadd514eb8a423d3a1.zip
Add stubs for pkg/adapter/terminal_linux.go
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r--pkg/adapter/terminal_unsupported.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/adapter/terminal_unsupported.go b/pkg/adapter/terminal_unsupported.go
new file mode 100644
index 000000000..3009f0a38
--- /dev/null
+++ b/pkg/adapter/terminal_unsupported.go
@@ -0,0 +1,23 @@
+// +build !linux
+
+package adapter
+
+import (
+ "context"
+ "os"
+
+ "github.com/containers/libpod/libpod"
+ "github.com/containers/libpod/libpod/define"
+)
+
+// ExecAttachCtr execs and attaches to a container
+func ExecAttachCtr(ctx context.Context, ctr *libpod.Container, tty, privileged bool, env map[string]string, cmd []string, user, workDir string, streams *libpod.AttachStreams, preserveFDs uint, detachKeys string) (int, error) {
+ return -1, define.ErrNotImplemented
+}
+
+// StartAttachCtr starts and (if required) attaches to a container
+// if you change the signature of this function from os.File to io.Writer, it will trigger a downstream
+// error. we may need to just lint disable this one.
+func StartAttachCtr(ctx context.Context, ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool, startContainer bool, recursive bool) error { //nolint-interfacer
+ return define.ErrNotImplemented
+}