storage

package
v0.0.0-...-1b8f325 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 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 S3Option

type S3Option func(c *S3Storage)

func SetLogger

func SetLogger(logger *logrus.Logger) S3Option

func SetS3Bucket

func SetS3Bucket(s3Bucket string) S3Option

func SetS3Region

func SetS3Region(s3Region string) S3Option

type S3Storage

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

func NewS3Storage

func NewS3Storage(opts ...func(*S3Storage)) *S3Storage

func (*S3Storage) GetDriverName

func (config *S3Storage) GetDriverName() string

func (*S3Storage) Put

func (config *S3Storage) Put(key string, body []byte) error

PutObject uploads data to an S3 bucket.

func (*S3Storage) PutStream

func (config *S3Storage) PutStream(key string, fp io.Reader) error

Jump to

Keyboard shortcuts

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