Package io.fabric8.kubernetes.client.dsl
Interface PortForwardable<H,L,I,O>
-
- All Known Subinterfaces:
PodResource<T>
,ServiceResource<T>
- All Known Implementing Classes:
PodOperationsImpl
,ServiceOperationsImpl
public interface PortForwardable<H,L,I,O>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description L
portForward(int port)
Create a server socket on a random local port.L
portForward(int port, int localPort)
Create a server socket on a specified local port.H
portForward(int port, I in, O out)
Connects directly the remote port to the given input and output channels.
-
-
-
Method Detail
-
portForward
H portForward(int port, I in, O out)
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
L portForward(int port, int localPort)
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
L portForward(int port)
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
-
-