Documentation
¶
Overview ¶
Package s3fake exposes a local fake S3 service for local clusters.
Package s3fake exposes a lightweight, on-disk fake S3 server suitable for embedding in the local Podplane background server.
It wraps github.com/johannesboyne/gofakes3 with the s3afero MultiBucket backend so tests / dev clusters can read and write a normal filesystem directory as if it were S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketHandler ¶
BucketHandler returns an S3-compatible single-bucket API backed by storageDir.
func Handler ¶
Handler returns an S3-compatible multi-bucket API backed by the supplied storage directory. Buckets are created on first use.
storageDir must exist (or be creatable). If it does not exist it is created with mode 0700.
func WriteObject ¶
WriteObject writes one object directly to the fake S3 on-disk storage using the same gofakes3 backend as Handler. It is useful for seeding local buckets before the HTTP server is running while still preserving backend metadata.
Types ¶
This section is empty.