S3Client

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Client

type S3Client struct {
	*s3.Client
}

func NewS3Client

func NewS3Client() *S3Client

func (*S3Client) GetPresignedDownloadUrl

func (client *S3Client) GetPresignedDownloadUrl(bucketName string, objectKey string, expiration int64) (string, error)

func (*S3Client) GetPresignedUploadUrl

func (client *S3Client) GetPresignedUploadUrl(bucketName string, objectKey string, expiration int64) (string, error)

func (*S3Client) ReadBytes

func (client *S3Client) ReadBytes(bucketName string, objectKey string) ([]byte, error)

func (*S3Client) RemoveObject

func (client *S3Client) RemoveObject(bucketName string, objectKey string) error

func (*S3Client) WriteBytes

func (client *S3Client) WriteBytes(bucketName string, objectKey string, data []byte) error

Jump to

Keyboard shortcuts

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