mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
a1a79c08b7
This includes: Implement exec -i and fix some typos in description of -i docs pass failed runtime status to caller Add resize handling for a terminal connection Customize exec systemd-cgroup slice fix healthcheck fix top add --detach-keys Implement podman-remote exec (jhonce) * Cleanup some orphaned code (jhonce) adapt remote exec for conmon exec (pehunt) Fix healthcheck and exec to match docs Introduce two new OCIRuntime errors to more comprehensively describe situations in which the runtime can error Use these different errors in branching for exit code in healthcheck and exec Set conmon to use new api version Signed-off-by: Jhon Honce <jhonce@redhat.com> Signed-off-by: Peter Hunt <pehunt@redhat.com>
48 lines
1.3 KiB
Go
48 lines
1.3 KiB
Go
// +build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
|
|
"github.com/containers/libpod/libpod/define"
|
|
"k8s.io/client-go/tools/remotecommand"
|
|
)
|
|
|
|
func (r *OCIRuntime) moveConmonToCgroup(ctr *Container, cgroupParent string, cmd *exec.Cmd) error {
|
|
return define.ErrOSNotSupported
|
|
}
|
|
|
|
func newPipe() (parent *os.File, child *os.File, err error) {
|
|
return nil, nil, define.ErrNotImplemented
|
|
}
|
|
|
|
func (r *OCIRuntime) createContainer(ctr *Container, restoreOptions *ContainerCheckpointOptions) (err error) {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (r *OCIRuntime) pathPackage() string {
|
|
return ""
|
|
}
|
|
|
|
func (r *OCIRuntime) conmonPackage() string {
|
|
return ""
|
|
}
|
|
|
|
func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, restoreOptions *ContainerCheckpointOptions) (err error) {
|
|
return define.ErrOSNotSupported
|
|
}
|
|
|
|
func (r *OCIRuntime) execStopContainer(ctr *Container, timeout uint) error {
|
|
return define.ErrOSNotSupported
|
|
}
|
|
|
|
func (r *OCIRuntime) stopContainer(ctr *Container, timeout uint) error {
|
|
return define.ErrOSNotSupported
|
|
}
|
|
|
|
func (r *OCIRuntime) execContainer(c *Container, cmd, capAdd, env []string, tty bool, cwd, user, sessionID string, streams *AttachStreams, preserveFDs int, resize chan remotecommand.TerminalSize, detachKeys string) (int, chan error, error) {
|
|
return -1, nil, define.ErrOSNotSupported
|
|
}
|