Ejemplo n.º 1
0
func (ds *dockerService) PortForward(pod *kubecontainer.Pod, port uint16, stream io.ReadWriteCloser) error {
	return dockertools.PortForward(ds.client, pod, port, stream)
}
Ejemplo n.º 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)
}
Ejemplo n.º 3
0
func (ds *dockerService) PortForward(sandboxID string, port uint16, stream io.ReadWriteCloser) error {
	return dockertools.PortForward(ds.client, sandboxID, port, stream)
}