s3

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAwsAcessKeyIdRequired = errors.New("[s3 storage] access key id required")
View Source
var ErrAwsBucketRequired = errors.New("[s3 storage] bucket required")
View Source
var ErrAwsRegionRequired = errors.New("[s3 storage] region required")
View Source
var ErrAwsSecretAccessKeyRequired = errors.New("[s3 storage] secret access key required")

Functions

This section is empty.

Types

type Options

type Options struct {
	Bucket          string
	Region          string
	AccessKeyID     string
	SecretAccessKey string
}

type S3Storage

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

func NewS3Storage

func NewS3Storage(opts Options) *S3Storage

func (*S3Storage) Create

func (*S3Storage) Destroy

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

func (*S3Storage) GenerateSignedURL

func (s *S3Storage) GenerateSignedURL(ctx context.Context, key string, expirationTime time.Duration) (string, error)

Jump to

Keyboard shortcuts

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