s3

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.S3Config) (*Service, error)

func (*Service) CreateBucket added in v0.9.1

func (s *Service) CreateBucket(ctx context.Context, bucketName string, region string) error

func (*Service) DeleteBucket added in v0.9.1

func (s *Service) DeleteBucket(ctx context.Context, bucketName string) error

func (*Service) DeleteObject

func (s *Service) DeleteObject(ctx context.Context, objectName string) error

func (*Service) DownloadObject

func (s *Service) DownloadObject(ctx context.Context, objectName string) (io.ReadCloser, error)

func (*Service) GetPresignedURL added in v0.4.0

func (s *Service) GetPresignedURL(ctx context.Context, objectName string, expires time.Duration) (*url.URL, error)

func (*Service) ListBuckets added in v0.9.1

func (s *Service) ListBuckets(ctx context.Context) ([]minio.BucketInfo, error)

func (*Service) ListObjects

func (s *Service) ListObjects(ctx context.Context) ([]minio.ObjectInfo, error)

func (*Service) ListObjectsBatch

func (s *Service) ListObjectsBatch(ctx context.Context, startAfter, prefix string, batchSize int) ([]minio.ObjectInfo, error)

func (*Service) UploadObject

func (s *Service) UploadObject(filePath string, data []byte) error

func (*Service) UploadObjectReader added in v0.6.0

func (s *Service) UploadObjectReader(ctx context.Context, filePath string, objectName string, r io.Reader, length int64, mimeType string) error

Jump to

Keyboard shortcuts

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