s3

package
v0.0.0-...-82264af Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeoutSeconds uint64 = 30
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxRetries int
	Region     string
	// contains filtered or unexported fields
}

type S3

type S3 struct {
	Storage *s3.S3
	// contains filtered or unexported fields
}

func Build

func Build(config *Config) *S3

func (*S3) Delete

func (s *S3) Delete(ctx context.Context, bucket string, key string) (bool, error)

func (*S3) Download

func (s *S3) Download(ctx context.Context, bucket string, key string) (*operation.OperationResponse, error)

func (*S3) List

func (s *S3) List(ctx context.Context, bucket string, key string, pageSize int64) (*operation.OperationResponse, error)

func (*S3) Upload

func (s *S3) Upload(ctx context.Context, bucket string, key string, content interface{}) (*operation.OperationResponse, error)

Jump to

Keyboard shortcuts

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