Supabase.Storage.get_bucket

You're seeing just the function get_bucket, go back to Supabase.Storage module for more information.

Specs

get_bucket(Supabase.Connection.t(), binary()) ::
  {:error, map()} | {:ok, Supabase.Storage.Bucket.t()}

Retrieves the details of an existing Storage bucket.

Notes

  • Policy permissions required
    • buckets permissions: select
    • objects permissions: none

Example

{:ok, bucket} =
  Supabase.storage()
  |> Supabase.Storage.get_bucket("avatars")