Class AbstractKubernetesServiceInstanceProvider.PortBinder
java.lang.Object
io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider.PortBinder
- Enclosing class:
- AbstractKubernetesServiceInstanceProvider
Utility class for transparent access to
CoreV1EndpointPort
and V1ServicePort
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromEndpointPort
(io.kubernetes.client.openapi.models.CoreV1EndpointPort endpointPort) fromServicePort
(io.kubernetes.client.openapi.models.V1ServicePort servicePort) getName()
int
getPort()
-
Constructor Details
-
PortBinder
-
-
Method Details
-
getName
- Returns:
- port name
-
getPort
public int getPort()- Returns:
- port number
-
fromServicePort
public static AbstractKubernetesServiceInstanceProvider.PortBinder fromServicePort(@Nullable io.kubernetes.client.openapi.models.V1ServicePort servicePort) -
fromEndpointPort
public static AbstractKubernetesServiceInstanceProvider.PortBinder fromEndpointPort(@Nullable io.kubernetes.client.openapi.models.CoreV1EndpointPort endpointPort)
-