package
2.0.0-beta1+incompatible
Repository: https://github.com/elliot/builder-1.git
Documentation: pkg.go.dev
# Functions
CreateBucket creates a new bucket in the S3 API compatible storage.
CredsOK checks if the required credentials to make a request exist.
DownloadObject uses the given getter to download the contents the object at ${bucketName}/${objKey} and returns the object's contents in the given byte slice.
GetClient returns a S3 API compatible storage client.
NewSlugBuilderInfo creates and populates a new SlugBuilderInfo based on the given data.
ObjectExists determines whether the object in ${bucketName}/${objKey} exists, as reported by statter.
UploadObject uploads the contents of readaer to ${bucektName}/${objectKey} using the given putter.
WaitForObject checks statter for the object at ${bucketName}/${objKey} right away, then at every tick, then once when the timeout is up.
# Variables
ACLPublicRead default ACL for objects in the S3 API compatible storage.
# Structs
Client is the S3 client combined with the S3 endpoint.
Endpoint represents all the details about a storage endpoint.
FakeBucketCreator is a mock function that can be swapped in for an BucketCreator, so you can unit test your code.
FakeGetObjectCall represents a single call a single call to GetObject on a FakeObjectGetter.
FakeMakeBucketCall represents a single call to MakeBucket on a FakeBucketCreator.
FakeObject is a mock function that can be swapped in for an *s3.Object, so you can unit test your code.
FakeObjectGetter is a mock function that can be swapped in for an ObjectGetter, so you can unit test your code.
FakeObjectPutter is a mock function that can be swapped in for an ObjectPutter, so you can unit test your code.
FakeObjectStatter is a mock function that can be swapped in for an ObjectStatter, so you can unit test your code.
FakePutObjectCall represents a single call to PutObject on a FakeObjectPutter.
FakeStatObjectCall represents a single call to StatObject on the FakeObjectStatter.
RealObjectGetter is an adapter to make the *s3.Client GetObject function compatible with the ObjectGetter interface.
SlugBuilderInfo contains all of the object storage related information needed to pass to a slug builder.
# Interfaces
BucketCreator is a *(github.com/minio/minio-go).Client compatible interface, restricted to just the MakeBucket function.
Object is a *(github.com/minio/minio-go).Object compatible interface.
ObjectGetter is the interface to get an object from object storage.
ObjectPutter is a *(github.com/minio/minio-go).Client compatible interface, restricted to just the PutObject function.
ObjectStatter is a *(github.com/minio/minio-go).Client compatible interface, restricted to just the StatObject function.