s3

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestRetries = 5
)

Variables

This section is empty.

Functions

func BucketExists added in v0.0.5

func BucketExists(ctx context.Context, s3Backend backendstore.S3Client, bucketName string) (bool, error)

func BucketToCreateBucketInput

func BucketToCreateBucketInput(bucket *v1alpha1.Bucket) *s3.CreateBucketInput

func BucketToPutBucketACLInput added in v0.0.2

func BucketToPutBucketACLInput(bucket *v1alpha1.Bucket) *s3.PutBucketAclInput

func BucketToPutBucketOwnershipControlsInput added in v0.0.2

func BucketToPutBucketOwnershipControlsInput(bucket *v1alpha1.Bucket) *s3.PutBucketOwnershipControlsInput

func CreateBucket added in v0.0.18

func CreateBucket(ctx context.Context, s3Backend backendstore.S3Client, bucket *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)

func DeleteBucket added in v0.0.5

func DeleteBucket(ctx context.Context, s3Backend backendstore.S3Client, bucketName *string) error

func GenerateLifecycleConfigurationInput added in v0.0.22

func GenerateLifecycleConfigurationInput(name string, config *v1alpha1.BucketLifecycleConfiguration) *awss3.PutBucketLifecycleConfigurationInput

GenerateLifecycleConfiguration creates the PutBucketLifecycleConfigurationInput for the AWS SDK

func GenerateLifecycleRules added in v0.0.22

func GenerateLifecycleRules(in []v1alpha1.LifecycleRule) []types.LifecycleRule

GenerateLifecycleRules creates the list of LifecycleRules for the AWS SDK

func IsAlreadyExists added in v0.0.18

func IsAlreadyExists(err error) bool

IsAlreadyExists helper function to test for ErrCodeBucketAlreadyOwnedByYou error

func IsNotFound added in v0.0.18

func IsNotFound(err error) bool

IsNotFound helper function to test for NotFound error

func NewClient

func NewClient(ctx context.Context, data map[string][]byte, pcSpec *apisv1alpha1.ProviderConfigSpec) (*s3.Client, error)

func NoSuchBucket added in v0.0.19

func NoSuchBucket(err error) bool

NoSuchBucket helper function to test for NoSuchBucket error

func SortFilterTags added in v0.0.22

func SortFilterTags(rules []types.LifecycleRule)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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