res://addons/w4gd/supabase/storage.gd
Inherits: res://addons/w4gd/supabase/endpoint.gd < RefCounted
The Supabase Storage end-point at /storage/v1.
Methods
void |
copy_object ( String p_bucket, String p_source, String p_destination ) |
void |
create_bucket ( String p_name, bool p_public, String p_id ) |
void |
create_object_url ( String p_bucket, String p_path, int p_expires_in ) |
void |
delete_bucket ( String p_name ) |
void |
delete_object ( String p_bucket, String p_path ) |
void |
delete_objects ( String p_bucket, Array p_prefixes ) |
void |
empty_bucket ( String p_name ) |
void |
get_bucket ( String p_name ) |
void |
get_object ( String p_bucket, String p_path ) |
void |
get_object_auth ( String p_bucket, String p_path ) |
void |
get_object_from_url ( String p_bucket, String p_path, String p_token ) |
void |
get_object_info ( String p_bucket, String p_path ) |
void |
get_object_info_auth ( String p_bucket, String p_path ) |
void |
get_object_info_public ( String p_bucket, String p_path ) |
void |
get_object_public ( String p_bucket, String p_path ) |
void |
get_status ( ) |
void |
list_buckets ( ) |
void |
list_objects ( String p_bucket, String p_prefix, int p_limit, int p_offset, String p_sort_col, SortOrder p_sort_order ) |
void |
move_object ( String p_bucket, String p_source, String p_destination ) |
void |
update_bucket ( String p_name, bool p_public ) |
void |
update_object ( String p_bucket, String p_path, Variant p_data, String p_mime ) |
void |
upload_object ( String p_bucket, String p_path, Variant p_data, String p_mime ) |
void |
upsert_object ( String p_bucket, String p_path, Variant p_data, String p_mime ) |
Enumerations
enum SortOrder:
SortOrder ASC = 0
SortOrder DESC = 1
Method Descriptions
void copy_object ( String p_bucket, String p_source, String p_destination )
Copies the given object.
void create_bucket ( String p_name, bool p_public, String p_id )
Creates a new bucket with the given name.
void create_object_url ( String p_bucket, String p_path, int p_expires_in )
Creates a publicly sharable "signed URL" for the given object.
void delete_bucket ( String p_name )
Deletes the given bucket.
void delete_object ( String p_bucket, String p_path )
Deletes the given object.
void delete_objects ( String p_bucket, Array p_prefixes )
Deletes multiple objects.
void empty_bucket ( String p_name )
Empties the given bucket.
void get_bucket ( String p_name )
Gets the given bucket.
void get_object ( String p_bucket, String p_path )
Gets an object.
void get_object_auth ( String p_bucket, String p_path )
Gets an object as an authenticated user.
void get_object_from_url ( String p_bucket, String p_path, String p_token )
Gets an object via a "signed URL".
void get_object_info ( String p_bucket, String p_path )
Gets an object's info.
void get_object_info_auth ( String p_bucket, String p_path )
Gets an object's info as an authenticated user.
void get_object_info_public ( String p_bucket, String p_path )
Gets an object's info as an anonymous user.
void get_object_public ( String p_bucket, String p_path )
Gets an object as an anonymous user.
void get_status ( )
Checks the status of the storage service.
void list_buckets ( )
List all buckets that the current user has access to.
void list_objects ( String p_bucket, String p_prefix, int p_limit, int p_offset, String p_sort_col, SortOrder p_sort_order )
Lists objects.
void move_object ( String p_bucket, String p_source, String p_destination )
Moves the given object.
void update_bucket ( String p_name, bool p_public )
Updates the given bucket.
void update_object ( String p_bucket, String p_path, Variant p_data, String p_mime )
Updates the given object.
void upload_object ( String p_bucket, String p_path, Variant p_data, String p_mime )
Uploads a new object.
void upsert_object ( String p_bucket, String p_path, Variant p_data, String p_mime )
Uploads a new object or updates an existing one if it already exists.