OssConfig
public class OssConfig extends FileSystemConfig
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:26–123OSS 配置,保存相关配置项。位于 io.agentscope.runtime.sandbox.manager.fs.oss 包,继承自 FileSystemConfig。核心成员包括 getOssEndpoint、getOssAccessKeyId、getOssAccessKeySecret、getOssBucketName、builder、createStorageManager。
A class in io.agentscope.runtime.sandbox.manager.fs.oss that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.oss. Extends FileSystemConfig.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.runtime.sandbox.manager.fs.oss that deploys, schedules and serves agents. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public OssConfig(Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount, String ossEndpoint, String ossAccessKeyId, String ossAccessKeySecret, String ossBucketName) | 初始化 `OssConfig` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getOssEndpoint() | 获取OSS 端点。 Returns the oss endpoint. |
public String getOssAccessKeyId() | 获取OSS 访问键标识。 Returns the oss access key id. |
public String getOssAccessKeySecret() | 获取OSS 访问键密钥。 Returns the oss access key secret. |
public String getOssBucketName() | 获取OSS 存储桶名称。 Returns the oss bucket name. |
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
public StorageManager createStorageManager() | 创建存储管理器。 Creates the storage manager. |
构造器详情Constructor Detail
OssConfig
public OssConfig(Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount, String ossEndpoint, String ossAccessKeyId, String ossAccessKeySecret, String ossBucketName)
初始化 OssConfig 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
readonlyMounts | Map<String, String> | 只读 Mounts(类型 `Map`)。The readonly mounts. |
storageFolderPath | String | 存储 Folder 路径(类型 `String`)。The storage folder path. |
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
nonCopyMount | Map<String, String> | non Copy Mount(类型 `Map`)。The non copy mount. |
ossEndpoint | String | OSS 端点(类型 `String`)。The oss endpoint. |
ossAccessKeyId | String | OSS 访问键标识(类型 `String`)。The oss access key id. |
ossAccessKeySecret | String | OSS 访问键密钥(类型 `String`)。The oss access key secret. |
ossBucketName | String | OSS 存储桶名称(类型 `String`)。The oss bucket name. |
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:32–48方法详情Method Detail
getOssEndpoint
public String getOssEndpoint()
获取OSS 端点。
Returns the oss endpoint.
Stringio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:58–60getOssAccessKeyId
public String getOssAccessKeyId()
获取OSS 访问键标识。
Returns the oss access key id.
Stringio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:62–64getOssAccessKeySecret
public String getOssAccessKeySecret()
获取OSS 访问键密钥。
Returns the oss access key secret.
Stringio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:66–68getOssBucketName
public String getOssBucketName()
获取OSS 存储桶名称。
Returns the oss bucket name.
Stringio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:70–72builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:74–76createStorageManager
public StorageManager createStorageManager()
创建存储管理器。
Creates the storage manager.
StorageManagerio/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:78–81嵌套类详情Nested Class Detail
Builder
public static class Builder extends FileSystemConfig.Builder<Builder>构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.fs.oss 包,继承自 FileSystemConfig.Builder<Builder>。核心成员包括 self、ossEndpoint、ossAccessKeyId、ossAccessKeySecret、ossBucketName、build。
A class in io.agentscope.runtime.sandbox.manager.fs.oss that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.oss. Extends FileSystemConfig.Builder