From 3a61421711c0c9bf8862656994b12df9a432052d Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Mon, 27 Apr 2015 14:30:55 -0700 Subject: [PATCH] Add PortForward to runtime API. --- pkg/kubelet/container/runtime.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kubelet/container/runtime.go b/pkg/kubelet/container/runtime.go index 60e3c87436..1bc5f8be49 100644 --- a/pkg/kubelet/container/runtime.go +++ b/pkg/kubelet/container/runtime.go @@ -66,6 +66,8 @@ type Runtime interface { // Attaches the processes stdin, stdout, and stderr. Optionally uses a // tty. ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool) + // Forward the specified port from the specified pod to the stream. + PortForward(pod Pod, port uint16, stream io.ReadWriteCloser) // Pull pulls an image from the network to local storage. Pull(image string) // IsImagePresent checks whether the container image is already in the local storage.