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 like this:
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, var requireValidSession: Boolean = false) : MainConfig, CustomSerializationConfig, AuthDependentPluginConfig
Config for the storage plugin
Properties
Link copied to clipboard
Access vector storage operations.
Link copied to clipboard
The API used for network requests.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Access analytics storage operations using Iceberg tables.
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
Returns all buckets in the storage
Link copied to clipboard
Link copied to clipboard
Purges the CDN cache for an entire bucket.
Link copied to clipboard
Link copied to clipboard
Updates a bucket in the storage