mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #7391 from vmarmol/rkt-portforward
Add PortForward to runtime API.
This commit is contained in:
commit
5ea5fff586
@ -66,6 +66,8 @@ type Runtime interface {
|
|||||||
// Attaches the processes stdin, stdout, and stderr. Optionally uses a
|
// Attaches the processes stdin, stdout, and stderr. Optionally uses a
|
||||||
// tty.
|
// tty.
|
||||||
ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool)
|
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 pulls an image from the network to local storage.
|
||||||
Pull(image string)
|
Pull(image string)
|
||||||
// IsImagePresent checks whether the container image is already in the local storage.
|
// IsImagePresent checks whether the container image is already in the local storage.
|
||||||
|
Loading…
Reference in New Issue
Block a user