Documentation ¶
Index ¶
- type S3Spec
- func (s S3Spec) BucketExists(bucket string) (res bool, err error)
- func (s S3Spec) BucketHasLifecycleRule(bucket string, rule s3.LifecycleRule) (res bool, err error)
- func (s S3Spec) BucketHasLoggingEnabled(bucket string) (res bool, err error)
- func (s S3Spec) BucketHasServerSideEncryption(bucket, algorithm string) (res bool, err error)
- func (s S3Spec) BucketHasVersioningEnabled(bucket string) (res bool, err error)
- func (s S3Spec) BucketHasWebsiteEnabled(bucket string) (res bool, err error)
- func (s S3Spec) ObjectExists(bucket, key string) (res bool, err error)
- func (s S3Spec) ObjectHasTag(bucket, key string, tag TagGetter) (res bool, err error)
- type Tag
- type TagGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Spec ¶
S3Spec contains the AWS session
func (S3Spec) BucketExists ¶ added in v0.12.0
BucketExists returns true if the specified S3 bucket exists
func (S3Spec) BucketHasLifecycleRule ¶ added in v0.12.1
BucketHasLifecycleRule returns true if the specified S3 bucket has the provided lifecycle rule. Throws an error if the bucket does not exist.
func (S3Spec) BucketHasLoggingEnabled ¶ added in v0.12.0
BucketHasLoggingEnabled returns true if the specified S3 bucket has logging enabled. Throws an error if the bucket does not exist.
func (S3Spec) BucketHasServerSideEncryption ¶ added in v0.12.0
BucketHasServerSideEncryption returns true if the specified S3 bucket has the provided Server Side Encryption method. Throws an error if the bucket does not exist.
func (S3Spec) BucketHasVersioningEnabled ¶ added in v0.12.0
BucketHasVersioningEnabled returns true if the specified S3 bucket has versioning enabled. Throws an error if the bucket does not exist.
func (S3Spec) BucketHasWebsiteEnabled ¶ added in v0.12.0
BucketHasWebsiteEnabled returns true if the specified S3 bucket is setup as a website. Throws an error if the bucket does not exist.
func (S3Spec) ObjectExists ¶ added in v0.13.0
ObjectExists returns true if the provided key exists in the specified bucket