Class GatewayStrategy
java.lang.Object
io.agentscope.extensions.sandbox.kubernetes.client.internal.strategy.GatewayStrategy
- All Implemented Interfaces:
ConnectionStrategy
Gateway connection strategy — watches a Kubernetes Gateway resource for an
external address, then routes through the sandbox-router.
-
Constructor Summary
ConstructorsConstructorDescriptionGatewayStrategy(io.fabric8.kubernetes.client.KubernetesClient client, GatewayConnectionConfig config) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.agentscope.extensions.sandbox.kubernetes.client.internal.strategy.ConnectionStrategy
shouldInjectRouterHeaders
-
Constructor Details
-
GatewayStrategy
public GatewayStrategy(io.fabric8.kubernetes.client.KubernetesClient client, GatewayConnectionConfig config)
-
-
Method Details
-
connect
Description copied from interface:ConnectionStrategyDiscover and return the base URL.- Specified by:
connectin interfaceConnectionStrategy- Returns:
- the base URL (e.g.
http://127.0.0.1:12345) - Throws:
Exception- if discovery fails
-
close
public void close()Description copied from interface:ConnectionStrategyRelease any resources held by this strategy (e.g. port-forward tunnels).- Specified by:
closein interfaceConnectionStrategy
-