KubernetesFilesystemSpec
public class KubernetesFilesystemSpec extends SandboxFilesystemSpec
io/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:26–118Kubernetes 文件系统规格,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.kubernetes 包,继承自 SandboxFilesystemSpec。核心成员包括 client、kubernetesClient、namespace、warmPoolName、workspaceRoot、fileApiBaseDir。
SandboxFilesystemSpec for the agent-sandbox backed Kubernetes sandbox store.
方法摘要Method Summary
方法详情Method Detail
client
public KubernetesFilesystemSpec client(SandboxClient<?> client)
设置客户端。
Performs the client operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
client | SandboxClient<?> | 客户端(类型 `SandboxClient`)。The client. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:33–36kubernetesClient
public KubernetesFilesystemSpec kubernetesClient(io.fabric8.kubernetes.client.KubernetesClient kc)
设置该参数。
Performs the kubernetes client operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
kc | io.fabric8.kubernetes.client.KubernetesClient | kc(类型 `io.fabric8.kubernetes.client.KubernetesClient`)。The kc. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:38–42namespace
public KubernetesFilesystemSpec namespace(String namespace)
设置命名空间。
Performs the namespace operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
namespace | String | 命名空间(类型 `String`)。The namespace. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:44–47warmPoolName
public KubernetesFilesystemSpec warmPoolName(String warmPoolName)
设置该参数。
Performs the warm pool name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
warmPoolName | String | warm 连接池名称(类型 `String`)。The warm pool name. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:49–52workspaceRoot
public KubernetesFilesystemSpec workspaceRoot(String workspaceRoot)
设置工作区根。
Performs the workspace root operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceRoot | String | 工作区根(类型 `String`)。The workspace root. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:54–57fileApiBaseDir
public KubernetesFilesystemSpec fileApiBaseDir(String fileApiBaseDir)
设置文件 API 基类目录。
Performs the file api base dir operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileApiBaseDir | String | 文件 API 基类目录(类型 `String`)。The file api base dir. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:59–62apiUrl
public KubernetesFilesystemSpec apiUrl(String apiUrl)
设置API URL。
Performs the api url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiUrl | String | API URL(类型 `String`)。The api url. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:64–67gatewayName
public KubernetesFilesystemSpec gatewayName(String gatewayName)
设置网关名称。
Performs the gateway name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayName | String | 网关名称(类型 `String`)。The gateway name. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:69–72gatewayNamespace
public KubernetesFilesystemSpec gatewayNamespace(String gatewayNamespace)
设置网关命名空间。
Performs the gateway namespace operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayNamespace | String | 网关命名空间(类型 `String`)。The gateway namespace. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:74–77gatewayScheme
public KubernetesFilesystemSpec gatewayScheme(String gatewayScheme)
设置该参数。
Performs the gateway scheme operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gatewayScheme | String | 网关 Scheme(类型 `String`)。The gateway scheme. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:79–82serverPort
public KubernetesFilesystemSpec serverPort(int serverPort)
设置该参数。
Performs the server port operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverPort | int | 服务端 Port(类型 `int`)。The server port. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:84–87snapshotSpec
public KubernetesFilesystemSpec snapshotSpec(SandboxSnapshotSpec snapshotSpec)
设置快照规格。
Performs the snapshot spec operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotSpec | SandboxSnapshotSpec | 快照规格(类型 `SandboxSnapshotSpec`)。The snapshot spec. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:89–92workspaceSpec
public KubernetesFilesystemSpec workspaceSpec(WorkspaceSpec workspaceSpec)
设置工作区规格。
Performs the workspace spec operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceSpec | WorkspaceSpec | 工作区规格(类型 `WorkspaceSpec`)。The workspace spec. |
KubernetesFilesystemSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:94–97createClient
protected SandboxClient<?> createClient()
创建客户端。
Creates the client.
SandboxClient<?>io/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:99–102clientOptions
protected SandboxClientOptions clientOptions()
返回客户端选项。
Returns the client options.
SandboxClientOptionsio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:104–107snapshotSpec
protected SandboxSnapshotSpec snapshotSpec()
返回快照规格。
Returns the snapshot spec.
SandboxSnapshotSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:109–112workspaceSpec
protected WorkspaceSpec workspaceSpec()
返回工作区规格。
Returns the workspace spec.
WorkspaceSpecio/agentscope/extensions/sandbox/kubernetes/KubernetesFilesystemSpec.java:114–117