integration

package
v1.11.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func CleanupBucket(client *s3.Client, bucketName string) error

CleanupBucket deletes the contents of a S3 bucket, before deleting the bucket it self.

func CreateFileOfSize

func CreateFileOfSize(dir string, size int64) (*os.File, error)

CreateFileOfSize will return an *os.File that is of size bytes

func GenerateBucketName

func GenerateBucketName() string

GenerateBucketName returns a unique bucket name.

func MustUUID

func MustUUID() string

MustUUID returns an UUID string or panics

func SetupBucket

func SetupBucket(client *s3.Client, bucketName, region string) (err error)

SetupBucket returns a test bucket created for the integration tests.

func SizeToName

func SizeToName(size int) string

SizeToName returns a human-readable string for the given size bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL