apps/docs/src/content/docs/en/ruby-sdk/object-storage.mdx
Initialize ObjectStorage with S3-compatible credentials
def initialize(endpoint_url:, aws_access_key_id:, aws_secret_access_key:, aws_session_token:, bucket_name:, region:)
Initialize ObjectStorage with S3-compatible credentials
Parameters:
endpoint_url String - The endpoint URL for the object storage serviceaws_access_key_id String - The access key ID for the object storage serviceaws_secret_access_key String - The secret access key for the object storage serviceaws_session_token String - The session token for the object storage servicebucket_name String - The name of the bucket to use (defaults to "daytona-volume-builds")region String - AWS region (defaults to us-east-1)Returns:
ObjectStorage - a new instance of ObjectStoragedef bucket_name()
Returns:
String - The name of the S3 bucket used for object storagedef s3_client()
Returns:
Aws:S3:Client - The S3 clientdef upload(path, organization_id, archive_base_path)
Uploads a file to the object storage service
Parameters:
path String - The path to the file to uploadorganization_id String - The organization ID to usearchive_base_path String, nil - The base path to use for the archiveReturns:
String - The hash of the uploaded fileRaises:
Errno:ENOENT - If the path does not exist