Documentation ¶
Index ¶
- Variables
- func EnqueueFile(event FileEvent) error
- func Init(cfg Config)
- func IsCacheEnabled() bool
- func QueueAck(msgid string) error
- func UseSQS(region, href string)
- func UsingQueue() bool
- type Config
- type FileEvent
- type Retryer
- type S3Bucket
- func (b S3Bucket) Copy(dst, src string) error
- func (b S3Bucket) CopyFromBucket(dst string, srcBucket S3Bucket, src string, mime, contentDisp string) error
- func (b S3Bucket) Delete(key string) error
- func (b S3Bucket) Exists(key string) bool
- func (b S3Bucket) Get(key string) (io.ReadCloser, error)
- func (b S3Bucket) Head(key string) (S3Head, error)
- func (b S3Bucket) Keys() ([]string, error)
- func (b S3Bucket) List(prefix string) (map[string]S3Head, error)
- func (b S3Bucket) PresignGet(key string, ttl time.Duration) (string, error)
- func (b S3Bucket) PresignPut(key string, size int64, disp string, ttl time.Duration) (string, error)
- func (b S3Bucket) Put(contentType, key string, r io.ReadSeeker) error
- type S3Head
- type StorageType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( S3Region = "us-west-2" S3Endpoint string S3AccessKeyID string S3AccessKeySecret string // for R2 CFAccountID string )
Functions ¶
func EnqueueFile ¶
func IsCacheEnabled ¶
func IsCacheEnabled() bool
func UsingQueue ¶
func UsingQueue() bool
Types ¶
type Retryer ¶
type Retryer struct {
client.DefaultRetryer
}
type S3Bucket ¶
type S3Bucket struct { S3 *s3.S3 Name string Type StorageType }
func (S3Bucket) CopyFromBucket ¶
func (S3Bucket) PresignGet ¶
func (S3Bucket) PresignPut ¶
type StorageType ¶
type StorageType string
const ( StorageTypeS3 StorageType = "s3" StorageTypeB2 StorageType = "b2" StorageTypeR2 StorageType = "r2" )
Click to show internal directories.
Click to hide internal directories.