Documentation
¶
Overview ¶
Package s3fixture provides functions to create a test-scoped (temporary) bucket backed by S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketName ¶
BucketName generates a random bucket name scoped to the test.
Types ¶
type Fixture ¶
type Fixture struct {
Client *s3.Client
URL string
Key secret.String
Secret secret.String
Bucket string
Region string
Versioned bool // Versioned will be set true if we have managed to enable versioning
ForceLocal bool // ForceLocal will fail on a local run if S3 is not running
ForceVersioned bool // ForceVersioned will fail if the bucket can not be set versioned
DisallowPublicRead bool // DisallowPublicRead will not set permissions on the bucket for direct access to links
}
Click to show internal directories.
Click to hide internal directories.