Documentation
¶
Overview ¶
Package s3blob implements the blob.Store interface backed by an S3-compatible object store (MinIO in dev, and any S3-compatible service in production). It is a drop-in swap for blob.LocalStore, preserving the same content-addressable dedup semantics: identical content bytes hash to the same key and are only ever uploaded once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Endpoint string
AccessKeyID string
SecretAccessKey string
Bucket string
UseSSL bool
}
Config holds the connection details for an S3-compatible object store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores blobs in an S3-compatible bucket, keyed by their full hex sha256 digest (no sharding — S3 doesn't need it the way a local filesystem does).
func New ¶
New constructs a Store, connecting to the configured S3-compatible endpoint and ensuring the target bucket exists (creating it if missing) so callers don't need a separate provisioning step.