Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Endpoint string
Region string
Bucket string
AccessKey string
SecretKey string
}
Config holds the connection details for an S3-compatible object store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store puts, deletes, checks and links objects in an S3-compatible bucket.
func NewStore ¶
NewStore builds a Store connected to the S3-compatible endpoint described by cfg.
The HTTP client forces HTTP/1.1: the Ceph RadosGW endpoint this app targets returns a PROTOCOL_ERROR over HTTP/2.
func (*Store) PublicURL ¶
PublicURL builds the public CDN URL for key, e.g. "https://cdn.example.com/bucket/category/uuid.png".
Click to show internal directories.
Click to hide internal directories.