Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
DeleteFile deletes a file from the storage provider.
ctx: the context for the operation. bucket: the storage bucket from which the file is deleted. key: the key or identifier of the file to be deleted. Returns an error.
func DownloadFile ¶ added in v0.0.4
DownloadFile downloads a file from the storage provider.
ctx: the context for the operation. bucket: the storage bucket from which the file is downloaded. key: the key or identifier of the file to be downloaded. Returns a file pointer and an error.
func Initialize ¶
func Initialize()
Initialize initializes the storage provider based on the configured cloud.
No parameters. No return values.
func UploadFile ¶
UploadFile uploads a file to the storage provider.
ctx: the context for the operation. bucket: the storage bucket to upload the file to. key: the key or identifier of the file to be uploaded. file: the file to be uploaded. Returns the location of the uploaded file and an error, if any.
Types ¶
This section is empty.