FakeS3Service

@Singleton()
class FakeS3Service @Inject() constructor : S3Service

Functions

add
Link copied to clipboard
fun add(bucket: String, key: String, fileContent: ByteString)
getFileSize
Link copied to clipboard
open override fun getFileSize(bucket: String, key: String): Long
Returns the size in bytes.
getFileStreamStartingAt
Link copied to clipboard
open override fun getFileStreamStartingAt(bucket: String, key: String, start: Long): BufferedSource
Starts a streaming the file starting at a certain byte.
getWithSeek
Link copied to clipboard
open override fun getWithSeek(bucket: String, key: String, seekStart: Long, seekEnd: Long): ByteString
Obtains a file slice.
listFiles
Link copied to clipboard
open override fun listFiles(bucket: String, keyPrefix: String): List<String>
Returns a list of paths/keys for a prefix.
loadResourceDirectory
Link copied to clipboard
fun loadResourceDirectory(resourcePath: String)
Loads a whole directory of resource files into FakeS3Service