S3Service

interface S3Service

Functions

getFileSize
Link copied to clipboard
abstract fun getFileSize(bucket: String, key: String): Long
Returns the size in bytes.
getFileStreamStartingAt
Link copied to clipboard
abstract fun getFileStreamStartingAt(bucket: String, key: String, start: Long): BufferedSource
Starts a streaming the file starting at a certain byte.
getWithSeek
Link copied to clipboard
abstract fun getWithSeek(bucket: String, key: String, seekStart: Long, seekEnd: Long): ByteString
Obtains a file slice.
listFiles
Link copied to clipboard
abstract fun listFiles(bucket: String, pathPrefix: String): List<String>
Returns a list of paths/keys for a prefix.

Inheritors

RealS3Service
Link copied to clipboard
FakeS3Service
Link copied to clipboard