Package io.fabric8.kubernetes.client.dsl
Interface PortForwardable<H,L,I,O>
- All Known Subinterfaces:
PodResource<T,D>,ServiceResource<T,D>
- All Known Implementing Classes:
PodOperationsImpl,ServiceOperationsImpl
public interface PortForwardable<H,L,I,O>
-
Method Summary
Modifier and Type Method Description LportForward(int port)Create a server socket on a random local port.LportForward(int port, int localPort)Create a server socket on a specified local port.HportForward(int port, I in, O out)Connects directly the remote port to the given input and output channels.
-
Method Details
-
portForward
Connects directly the remote port to the given input and output channels.- Parameters:
port- port as integerin- input channelout- output channel- Returns:
- returns port forward interface
-
portForward
Create a server socket on a specified local port. Every connection to the local port will be forwarded to the remote port on the resource.- Parameters:
port- port in integerlocalPort- local port in integer- Returns:
- returns local port forward interface
-
portForward
Create a server socket on a random local port. Every connection to the local port will be forwarded to the remote port on the resource. The random local port can be retrieved from the returned object.- Parameters:
port- port as integer- Returns:
- returns local port
-