Documentation
¶
Overview ¶
Package bucket opens the object storage dbbat talks to.
There are exactly two drivers: s3:// (AWS S3 and anything that speaks its API: MinIO, Ceph, R2, Scaleway, Google Cloud Storage through its XML API) and file:// (a directory). No Google or Azure SDK is linked into the binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoScheme is returned for a URL with no scheme. ErrNoScheme = errors.New("bucket URL has no scheme (expected e.g. s3://bucket/prefix)") // ErrUnsupportedScheme is returned for a scheme dbbat has no driver for. ErrUnsupportedScheme = errors.New("bucket URL scheme is not supported") )
Errors returned by Normalize and Open.
Functions ¶
func Normalize ¶
Normalize validates the scheme of a bucket URL and turns the documented "s3://bucket/prefix" form into what gocloud.dev understands.
The s3 opener reads the bucket from the URL host and ignores the path, so the path is folded into the "prefix" query parameter. file:// and mem:// URLs are passed through untouched (their path is the location).
Types ¶
This section is empty.