ObjectStorage
class ObjectStorage()ObjectStorage class for interacting with object storage services.
Attributes:
endpoint_urlstr - The endpoint URL for the object storage service.aws_access_key_idstr - The access key ID for the object storage service.aws_secret_access_keystr - The secret access key for the object storage service.aws_session_tokenstr - The session token for the object storage service. Used for temporary credentials.bucket_namestr - The name of the bucket to use. Defaults to “daytona-volume-builds”.
ObjectStorage.upload
def upload(path: str, organization_id: str, archive_base_path: str | None = None) -> strUploads a file to the object storage service.
Arguments:
pathstr - The path to the file to upload.organization_idstr - The organization ID to use.archive_base_pathstr - The base path to use for the archive.
Returns:
str- The hash of the uploaded file.