s3

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Storage

type S3Storage struct {
	Client *s3.Client
	Bucket string
}

func GetS3Storage

func GetS3Storage(bucket string, region string) (*S3Storage, error)

func (*S3Storage) Download

func (s *S3Storage) Download(ctx context.Context, key, filePath string) error

func (*S3Storage) Upload

func (s *S3Storage) Upload(ctx context.Context, file []byte, key string, options ...types.UploadOptions) (string, error)

Jump to

Keyboard shortcuts

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