Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type R2Config ¶
type R2Config struct {
AccountID string
AccessKeyID string
AccessKeySecret string
BucketName string
}
R2Config holds configuration specific to Cloudflare R2
type S3Client ¶
type S3Client interface {
Upload(ctx context.Context, uploadContainer s3manager.UploadInput) error
Download(ctx context.Context, bucket, key string) (string, error)
ListFiles(ctx context.Context, bucket string) ([]string, error)
ChangeRegion(ctx context.Context, region string)
Delete(ctx context.Context, bucket, key string) error
}
func NewR2Client ¶
NewR2Client creates an S3Client configured for Cloudflare R2
func NewS3Client ¶
Click to show internal directories.
Click to hide internal directories.