mirror of
https://github.com/containers/podman.git
synced 2025-07-20 03:52:53 +08:00
pkg/domain: Add stubs for non-linux builds
[NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
25
pkg/domain/infra/abi/terminal/terminal_unsupported.go
Normal file
25
pkg/domain/infra/abi/terminal/terminal_unsupported.go
Normal file
@ -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")
|
||||||
|
}
|
Reference in New Issue
Block a user