Karta. Storage. BlobStore. S3
(Karta v1.0.0)
A blob store on any S3-compatible service (Garage, MinIO, AWS S3), with
path-style URLs (<endpoint>/<bucket>/<key>) and AWS Signature Version 4
from Req (:aws_sigv4). No AWS SDK is involved.
Configuration:
:endpoint- e.g."https://s3.example.com"(required):bucket(required):access_key_id,:secret_access_key(required):region- default"us-east-1"; Garage uses its configureds3_region:receive_timeout- milliseconds per request, default 30 000:req_options- extraReqoptions (tests useplug:)
Uploads stream the body with an UNSIGNED-PAYLOAD signature and an exact
content-length; an S3 PUT is atomic, so a failed upload leaves no
partial object. Uploads are not retried here (the SMTP client retries the
whole message); reads and deletes are retried on transient errors.
open/2 reads a blob in ranges (one GET per piece, :read_size bytes,
default 4 MiB): a message is never held whole in memory, and a small
object still costs one request. A store in front of S3 that answers a
range request with 200 instead of 206 is not supported for reads in
pieces; get/2 reads it whole.