AS AgentScopeAPI 手册 / API Reference

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
sandboxNameString沙箱名称(类型 `String`)。The sandbox name.
podNameStringpod 名称(类型 `String`)。The pod name.
podIPStringpod IP(类型 `String`)。The pod IP.
annotationsMap<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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:99–101

getPodName

public String getPodName()

获取 getPodName。

Returns the pod name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:103–105

getPodIP

public String getPodIP()

获取 getPodIP。

Returns the pod IP.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:107–109

getAnnotations

public Map<String, String> getAnnotations()

获取注解。

Returns the annotations.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxResource.java:111–113
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.