mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00

add the ability to attach to a running container. the tunnel side of this is not enabled yet as we have work on the endpoints and plumbing to do yet. add the ability to exec a command in a running container. the tunnel side is also being deferred for same reason. Signed-off-by: Brent Baude <bbaude@redhat.com>
19 lines
552 B
Go
19 lines
552 B
Go
//+build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/containers/libpod/libpod/define"
|
|
"k8s.io/client-go/tools/remotecommand"
|
|
)
|
|
|
|
func (c *Container) attach(streams *define.AttachStreams, keys string, resize <-chan remotecommand.TerminalSize, startContainer bool, started chan bool) error {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (c *Container) attachToExec(streams *define.AttachStreams, keys string, resize <-chan remotecommand.TerminalSize, sessionID string, startFd *os.File, attachFd *os.File) error {
|
|
return define.ErrNotImplemented
|
|
}
|