Beispiel #1
0
func (ds *dockerService) PortForward(pod *kubecontainer.Pod, port uint16, stream io.ReadWriteCloser) error {
	return dockertools.PortForward(ds.client, pod, port, stream)
}
Beispiel #2
0
func (r *streamingRuntime) PortForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error {
	if port < 0 || port > math.MaxUint16 {
		return fmt.Errorf("invalid port %d", port)
	}
	return dockertools.PortForward(r.client, podSandboxID, uint16(port), stream)
}
Beispiel #3
0
func (ds *dockerService) PortForward(sandboxID string, port uint16, stream io.ReadWriteCloser) error {
	return dockertools.PortForward(ds.client, sandboxID, port, stream)
}