WeaviateEx.Backup.Storage (WeaviateEx v0.7.4)
View SourceBackup storage backend types.
Available Backends
:filesystem- Local filesystem storage:s3- Amazon S3 or S3-compatible storage:gcs- Google Cloud Storage:azure- Azure Blob Storage
Examples
iex> Storage.valid?(:s3)
true
iex> Storage.to_api_path(:filesystem)
"filesystem"
iex> Storage.from_api("gcs")
{:ok, :gcs}
Summary
Functions
List all available storage backends.
Parse from API response.
Convert to API path segment.
Check if backend is valid.
Types
Functions
@spec all() :: [t()]
List all available storage backends.
Examples
iex> Storage.all()
[:filesystem, :s3, :gcs, :azure]
Parse from API response.
Examples
iex> Storage.from_api("s3")
{:ok, :s3}
iex> Storage.from_api("invalid")
{:error, :invalid_backend}
Convert to API path segment.
Examples
iex> Storage.to_api_path(:filesystem)
"filesystem"
iex> Storage.to_api_path(:s3)
"s3"
Check if backend is valid.
Examples
iex> Storage.valid?(:s3)
true
iex> Storage.valid?(:invalid)
false