Documentation ¶
Index ¶
Constants ¶
View Source
const CHUNK_SIZE int = 15
basically all copied from: https://github.com/gabrielhora/s3md5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type R2ConfigData ¶
type R2ConfigData struct { Type string `validate:"required,oneof='R2'"` BucketName string `validate:"required"` Url string `validate:"required"` AccountId string `validate:"required"` AccessKeyId string `validate:"required"` AccessKeySecret string `validate:"required"` }
Currently only supports Cloudflare's R2
type S3Object ¶
func ConfigS3 ¶
func ConfigS3(storageConfig *R2ConfigData) *S3Object
TODO: generalize this configuration to any S3 source
func (*S3Object) DeleteFile ¶
func (*S3Object) ListObjects ¶
Click to show internal directories.
Click to hide internal directories.