Storage
Plugin for interacting with the supabase storage api
To use it you need to install it to the SupabaseClient:
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
install(Storage)
}
Content copied to clipboard
then you have to interact with the storage api:
val bucket = supabase.storage.from("icons")
val bytes = bucket.downloadAuthenticated("icon.png")
Content copied to clipboard
Types
Link copied to clipboard
Link copied to clipboard
data class Config(var transferTimeout: Duration = 120.seconds, resumable: Storage.Config.Resumable = Resumable(), var serializer: SupabaseSerializer? = null) : MainConfig, CustomSerializationConfig
Config for the storage plugin
Properties
Functions
Link copied to clipboard
Creates a new bucket in the storage
Link copied to clipboard
Deletes a bucket by its bucketId
Link copied to clipboard
Empties a bucket by its bucketId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Retrieves a bucket by its bucketId
Link copied to clipboard
Returns all buckets in the storage
Link copied to clipboard
Updates a bucket in the storage