Package io.agentscope.extensions.oss
Class OssSnapshotSpec
java.lang.Object
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
io.agentscope.extensions.oss.OssSnapshotSpec
- All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec
public class OssSnapshotSpec
extends io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
Convenience
SandboxSnapshotSpec for Alibaba Cloud OSS snapshot storage.-
Constructor Summary
ConstructorsConstructorDescriptionOssSnapshotSpec(com.aliyun.oss.OSS ossClient, String bucketName, String keyPrefix) Creates an OSS snapshot spec from an existing OSS client.OssSnapshotSpec(String endpoint, String accessKeyId, String accessKeySecret, String bucketName, String keyPrefix) Creates an OSS snapshot spec from endpoint/credential settings. -
Method Summary
Methods inherited from class io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
build, getClient
-
Constructor Details
-
OssSnapshotSpec
Creates an OSS snapshot spec from an existing OSS client.- Parameters:
ossClient- initialized OSS clientbucketName- target bucketkeyPrefix- key prefix (optional, may be null/blank)
-
OssSnapshotSpec
public OssSnapshotSpec(String endpoint, String accessKeyId, String accessKeySecret, String bucketName, String keyPrefix) Creates an OSS snapshot spec from endpoint/credential settings.- Parameters:
endpoint- OSS endpoint (e.g. oss-cn-hangzhou.aliyuncs.com)accessKeyId- access key idaccessKeySecret- access key secretbucketName- target bucketkeyPrefix- key prefix (optional, may be null/blank)
-