Versions in this module Expand all Collapse all v0 v0.0.3 Oct 25, 2024 Changes in this version + type Backend struct + func New(opts ...Option) *Backend + func (db *Backend) BucketExists(ctx context.Context, name string) (exists bool, err error) + func (db *Backend) CopyObject(ctx context.Context, srcBucket, srcKey, dstBucket, dstKey string, ...) (result gofakes3.CopyObjectResult, err error) + func (db *Backend) CreateBucket(ctx context.Context, name string) error + func (db *Backend) DeleteBucket(ctx context.Context, name string) error + func (db *Backend) DeleteMulti(ctx context.Context, bucketName string, objects ...string) (result gofakes3.MultiDeleteResult, err error) + func (db *Backend) DeleteObject(ctx context.Context, bucketName, objectName string) (result gofakes3.ObjectDeleteResult, rerr error) + func (db *Backend) DeleteObjectVersion(bucketName, objectName string, versionID gofakes3.VersionID) (result gofakes3.ObjectDeleteResult, rerr error) + func (db *Backend) GetObject(ctx context.Context, bucketName, objectName string, ...) (*gofakes3.Object, error) + func (db *Backend) GetObjectVersion(bucketName, objectName string, versionID gofakes3.VersionID, ...) (*gofakes3.Object, error) + func (db *Backend) HeadObject(ctx context.Context, bucketName, objectName string) (*gofakes3.Object, error) + func (db *Backend) HeadObjectVersion(bucketName, objectName string, versionID gofakes3.VersionID) (*gofakes3.Object, error) + func (db *Backend) ListBucket(ctx context.Context, name string, prefix *gofakes3.Prefix, ...) (*gofakes3.ObjectList, error) + func (db *Backend) ListBucketVersions(bucketName string, prefix *gofakes3.Prefix, ...) (*gofakes3.ListBucketVersionsResult, error) + func (db *Backend) ListBuckets(ctx context.Context) ([]gofakes3.BucketInfo, error) + func (db *Backend) PutObject(ctx context.Context, bucketName, objectName string, meta map[string]string, ...) (result gofakes3.PutObjectResult, err error) + func (db *Backend) SetVersioningConfiguration(bucketName string, v gofakes3.VersioningConfiguration) error + func (db *Backend) VersioningConfiguration(bucketName string) (versioning gofakes3.VersioningConfiguration, rerr error) + type Option func(b *Backend) + func WithTimeSource(timeSource gofakes3.TimeSource) Option + func WithVersionSeed(seed int64) Option