Documentation ¶
Index ¶
- Constants
- func CleanupBucket(client *s3.Client, bucketName string) error
- func CreateFileOfSize(dir string, size int64) (*os.File, error)
- func GenerateBucketName() string
- func MustUUID() string
- func SetupBucket(client *s3.Client, bucketName, region string) (err error)
- func SizeToName(size int) string
Constants ¶
View Source
const BucketPrefix = "aws-sdk-go-v2-integration"
BucketPrefix is the root prefix of integration test buckets.
Variables ¶
This section is empty.
Functions ¶
func CleanupBucket ¶
CleanupBucket deletes the contents of a S3 bucket, before deleting the bucket it self.
func CreateFileOfSize ¶
CreateFileOfSize will return an *os.File that is of size bytes
func GenerateBucketName ¶
func GenerateBucketName() string
GenerateBucketName returns a unique bucket name.
func SetupBucket ¶
SetupBucket returns a test bucket created for the integration tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.