Supabase.Storage.Bucket (supabase_storage v0.5.0)
Represents a Bucket on Supabase Storage.
This module defines the structure and operations related to a storage bucket on Supabase.
Summary
Types
@type file_size_limit_t() :: %Supabase.Storage.Bucket.FileSizeLimit{ size: integer(), unit: :byte | :megabyte | :gigabyte | :terabyte }
A FileSizeLimit consists of:
size: The maximum file size limit itself as an integer.unitThe unit of the file size limit, can be::byte,:megabyte,:gigabyteor:terabyte, defaults to:byte.
@type t() :: %Supabase.Storage.Bucket{ allowed_mime_types: [String.t()] | nil, created_at: NaiveDateTime.t() | nil, file_size_limit: file_size_limit_t() | nil, id: String.t() | nil, name: String.t() | nil, owner: String.t() | nil, public: boolean(), type: :standard | :analytics, updated_at: NaiveDateTime.t() | nil }
A Bucket consists of:
id: The unique identifier for the bucket.name: The display name of the bucket.owner: The owner of the bucket.file_size_limit: The maximum file size allowed in the bucket. Can benilfor no limit.allowed_mime_types: List of MIME types permitted in this bucket. Can benilfor no restrictions.created_at: Timestamp indicating when the bucket was created.updated_at: Timestamp indicating the last update to the bucket.public: Boolean flag determining if the bucket is publicly accessible or not.type: The type of bucket - either:standardor:analytics. Defaults to:standard.
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
@spec parse([map()]) :: {:ok, [t()]} | {:error, Ecto.Changeset.t()}
@spec parse(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}