S3Client

interface S3Client

S3 client wrapper protocol mainly used for providing an abstraction layer on top of AWS S3 SDK.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun delete(objectId: String)

Deletes a blob from AWS S3.

Link copied to clipboard
abstract suspend fun download(key: String): ByteArray

Downloads a blob from AWS S3.

Link copied to clipboard
abstract suspend fun upload(data: ByteArray, objectId: String): String

Uploads a blob to AWS S3.

Properties

Link copied to clipboard
abstract val bucket: String

S3 bucket used by Sudo service for storing users' blobs.

Link copied to clipboard
abstract val region: String

AWS region hosting the S3 bucket.