Documentation ¶
Index ¶
- func Download(ctx context.Context, storage *S3, src string, dest string) (err error)
- func ListFiles(storage *S3, prefix string, recursive bool) (files []string, err error)
- func ReaperDownload(ctx context.Context, storage *S3, src string, dest string) (err error)
- func Upload(ctx context.Context, storage *S3, src string, dest string) (err error)
- type S3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReaperDownload ¶
Types ¶
type S3 ¶
type S3 struct { Ak string `json:"ak"` Sk string `json:"sk"` Endpoint string `json:"endpoint"` Bucket string `json:"bucket"` Subfolder string `json:"subfolder"` Insecure bool `json:"insecure"` IsDefault bool `json:"is_default"` }
func NewS3StorageFromURL ¶
func (*S3) GetObjectPath ¶
Click to show internal directories.
Click to hide internal directories.