Documentation ¶
Index ¶
- type Client
- func (Client) LocalDelete(relativeFilePath string) error
- func (Client) LocalGetFullPath(relativeFilePath string) string
- func (Client) LocalUpload(relativeFilePath string, fileReader io.Reader) (int64, error)
- func (Client) S3Delete(accessKey, secretKey, region, endpoint, bucketName, key string) error
- func (Client) S3GetDownloadLink(accessKey, secretKey, region, endpoint, bucketName, key string, ...) (string, error)
- func (Client) S3Test(accessKey, secretKey, region, endpoint, bucketName string) error
- func (Client) S3Upload(accessKey, secretKey, region, endpoint, bucketName, key string, ...) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
func (Client) LocalDelete ¶
LocalDelete Deletes a file using the provided path relative to the local backups directory.
func (Client) LocalGetFullPath ¶
LocalGetFullPath Returns the full path of a file using the provided relative file path to the local backups directory.
func (Client) LocalUpload ¶
LocalUpload Creates a new file using the provided path and reader relative to the local backups directory.
Returns the size of the file created, in bytes.
func (Client) S3GetDownloadLink ¶
func (Client) S3GetDownloadLink( accessKey, secretKey, region, endpoint, bucketName, key string, expiration time.Duration, ) (string, error)
S3GetDownloadLink generates a presigned URL for downloading a file from S3
Click to show internal directories.
Click to hide internal directories.