Documentation ¶
Index ¶
- Variables
- type Bucket
- type BucketDetails
- type S3Bucket
- func (s *S3Bucket) Create(bucketName string, bucketDetails BucketDetails) (string, error)
- func (s *S3Bucket) Delete(bucketName string, deleteObjects bool) error
- func (s *S3Bucket) Describe(bucketName, partition string) (BucketDetails, error)
- func (s *S3Bucket) Modify(bucketName string, bucketDetails BucketDetails) error
- type S3Client
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBucketDoesNotExist = errors.New("s3 bucket does not exist")
)
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket interface { Describe(bucketName, partition string) (BucketDetails, error) Create(bucketName string, details BucketDetails) (string, error) Modify(bucketName string, details BucketDetails) error Delete(bucketName string, deleteObjects bool) error }
type BucketDetails ¶
type S3Bucket ¶
type S3Bucket struct {
// contains filtered or unexported fields
}
func NewS3Bucket ¶
func (*S3Bucket) Create ¶
func (s *S3Bucket) Create(bucketName string, bucketDetails BucketDetails) (string, error)
Create attempts to create an S3 bucket. If successful, it returns the bucket's location and a nil error. If not, it returns an empty string and an error.
type S3Client ¶
type S3Client interface { GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error) CreateBucket(input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error) PutBucketTagging(input *s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error) PutBucketEncryption(input *s3.PutBucketEncryptionInput) (*s3.PutBucketEncryptionOutput, error) PutBucketPolicy(input *s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error) DeletePublicAccessBlock(input *s3.DeletePublicAccessBlockInput) (*s3.DeletePublicAccessBlockOutput, error) DeleteBucket(input *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error) GetPublicAccessBlock(input *s3.GetPublicAccessBlockInput) (*s3.GetPublicAccessBlockOutput, error) }
Click to show internal directories.
Click to hide internal directories.