s3

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const S3BucketEncryptionAlgorithm = "AES256"

S3BucketEncryptionAlgorithm is used to determine which algorithm use S3 to encrypt buckets.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileObject added in v0.3.0

type FileObject struct {
	FileName    string
	Content     *bytes.Reader
	ContentType string
}

type Service

type Service struct {
	Client s3iface.S3API
	// contains filtered or unexported fields
}

Service holds a collection of interfaces.

func NewService

func NewService(clusterScope scope.S3Scope) *Service

NewService returns a new service given the S3 api client.

func (*Service) AllowPublicAccess added in v0.15.0

func (s *Service) AllowPublicAccess(bucketName string) error

func (*Service) BlockPublicAccess added in v0.6.0

func (s *Service) BlockPublicAccess(bucketName string) error

func (*Service) CreateBucket

func (s *Service) CreateBucket(bucketName string) error

func (*Service) CreateTags added in v0.3.0

func (s *Service) CreateTags(bucketName string, customerTags map[string]string) error

func (*Service) DeleteBucket

func (s *Service) DeleteBucket(bucketName string) error

func (*Service) DeleteFiles

func (s *Service) DeleteFiles(bucketName string) error

func (*Service) EncryptBucket added in v0.3.0

func (s *Service) EncryptBucket(bucketName string) error

func (*Service) IsBucketReady

func (s *Service) IsBucketReady(bucketName string) error

func (*Service) UpdatePolicy added in v0.6.0

func (s *Service) UpdatePolicy(bucketName, oaiId string) error

func (*Service) UploadFiles

func (s *Service) UploadFiles(release *semver.Version, domain, bucketName string, privateKey *rsa.PrivateKey) error

Jump to

Keyboard shortcuts

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