summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-08-12 10:51:28 +0100
committerDoug Rabson <dfr@rabson.org>2022-08-15 10:45:24 +0100
commit1393038c84f9e60bd608ec1c54c39bb70b82c953 (patch)
treeb7a8d9c5c1e05c931fd60cdd9f31937468f7dfec /pkg/domain/infra
parent65641ba8d5f9fa6f39806b4fb841031ef6756433 (diff)
downloadpodman-1393038c84f9e60bd608ec1c54c39bb70b82c953.tar.gz
podman-1393038c84f9e60bd608ec1c54c39bb70b82c953.tar.bz2
podman-1393038c84f9e60bd608ec1c54c39bb70b82c953.zip
pkg/domain: Add stubs for non-linux builds
[NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/terminal/terminal_unsupported.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/terminal/terminal_unsupported.go b/pkg/domain/infra/abi/terminal/terminal_unsupported.go
new file mode 100644
index 000000000..8fe325736
--- /dev/null
+++ b/pkg/domain/infra/abi/terminal/terminal_unsupported.go
@@ -0,0 +1,25 @@
+//go:build !linux
+// +build !linux
+
+package terminal
+
+import (
+ "context"
+ "errors"
+ "os"
+
+ "github.com/containers/podman/v4/libpod"
+ "github.com/containers/podman/v4/libpod/define"
+)
+
+// ExecAttachCtr execs and attaches to a container
+func ExecAttachCtr(ctx context.Context, ctr *libpod.Container, execConfig *libpod.ExecConfig, streams *define.AttachStreams) (int, error) {
+ return -1, errors.New("not implemented ExecAttachCtr")
+}
+
+// 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) error { //nolint: interfacer
+ return errors.New("not implemented StartAttachCtr")
+}