SandboxIdentity
public static class SandboxIdentity
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:85–114沙箱身份,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.kubernetes.client.crd 包。核心成员包括 getSandboxName、getPodName、getPodIP、getAnnotations、SandboxIdentity。
Resolved identity metadata extracted from a ready Sandbox resource.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SandboxIdentity(String sandboxName, String podName, String podIP, Map<String, String> annotations) | 初始化 `SandboxIdentity` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getSandboxName() | 获取沙箱名称。 Returns the sandbox name. |
public String getPodName() | 获取 `getPodName`。 Returns the pod name. |
public String getPodIP() | 获取 `getPodIP`。 Returns the pod IP. |
public Map<String, String> getAnnotations() | 获取注解。 Returns the annotations. |
构造器详情Constructor Detail
SandboxIdentity
public SandboxIdentity(String sandboxName, String podName, String podIP, Map<String, String> annotations)
初始化 SandboxIdentity 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sandboxName | String | 沙箱名称(类型 `String`)。The sandbox name. |
podName | String | pod 名称(类型 `String`)。The pod name. |
podIP | String | pod IP(类型 `String`)。The pod IP. |
annotations | Map<String, String> | 注解(类型 `Map`)。The annotations. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:91–97方法详情Method Detail
getSandboxName
public String getSandboxName()
获取沙箱名称。
Returns the sandbox name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:99–101getPodName
public String getPodName()
获取 getPodName。
Returns the pod name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:103–105getPodIP
public String getPodIP()
获取 getPodIP。
Returns the pod IP.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:107–109getAnnotations
public Map<String, String> getAnnotations()
获取注解。
Returns the annotations.
Map<String, String>返回映射。Returns map.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:111–113