diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-21 14:48:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 14:48:50 +0100 |
commit | 89a3e5979b5f247e83a1723c7f355983fa7c7a86 (patch) | |
tree | b984a7371d05de8713df0f662eca8a33935f9c30 /pkg/adapter/terminal_unsupported.go | |
parent | 195a82ffbc435716ef5bb69f6eefa333abe3f840 (diff) | |
parent | de7bcca7d5b0129329b6b08fd241cdc1a768bafb (diff) | |
download | podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.gz podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.bz2 podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.zip |
Merge pull request #5579 from mtrmac/macOS-unit-tests
Make macOS unit tests runnable
Diffstat (limited to 'pkg/adapter/terminal_unsupported.go')
-rw-r--r-- | pkg/adapter/terminal_unsupported.go | 23 |
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 +} |