s3

package
v0.0.0-...-61bc7f6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Dao

type S3Dao struct {
	// private static final Logger LOG = LoggerFactory.getLogger(S3Dao.class);
	S3Client                     S3SvcClientI
	ServerSideEncryptionStrategy encryption.ServerSideEncryptionStrategy
	ObjectCannedACL              types.ObjectCannedACL
}

func (*S3Dao) DeletePayloadFromS3

func (dao *S3Dao) DeletePayloadFromS3(s3BucketName, s3Key string) error

func (*S3Dao) GetTextFromS3

func (dao *S3Dao) GetTextFromS3(s3BucketName, s3Key string) (string, error)

func (*S3Dao) StoreTextInS3

func (dao *S3Dao) StoreTextInS3(s3BucketName, s3Key, payloadContentStr string) error

type S3DaoClientI

type S3DaoClientI interface {
	GetTextFromS3(s3BucketName, s3Key string) (string, error)
	StoreTextInS3(s3BucketName, s3Key, payloadContentStr string) error
	DeletePayloadFromS3(s3BucketName, s3Key string) error
}

type S3SvcClientI

type S3SvcClientI interface {
	PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
	PutBucketEncryption(ctx context.Context, params *s3.PutBucketEncryptionInput, optFns ...func(*s3.Options)) (*s3.PutBucketEncryptionOutput, error)
	DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
	GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}

Jump to

Keyboard shortcuts

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