storage

package
v0.0.0-...-bebf002 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadFileToS3

func UploadFileToS3(s *session.Session, fileHeader *multipart.FileHeader) (string, error)

Types

type S3

type S3 struct {
	AccessKey        string
	SecretKey        string
	Endpoint         string
	Region           string
	DisableSSL       bool
	S3ForcePathStyle bool
	MaxSize          int64
}

func (*S3) NewConnect

func (s *S3) NewConnect(ctx context.Context) (*session.Session, error)

Jump to

Keyboard shortcuts

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