s3

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	AccessKeyID     string
	AccessKeySecret string
	Region          string
	BucketName      string
	UploadTimeout   int
	BaseURL         string
}

type Handler

type Handler struct {
	AWSConfig *AWSConfig
	// contains filtered or unexported fields
}

func MakeHandler

func MakeHandler(config *AWSConfig) *Handler

func (*Handler) CreateS3Session

func (a *Handler) CreateS3Session()

func (*Handler) CreateSession

func (a *Handler) CreateSession()

func (*Handler) UploadObject

func (a *Handler) UploadObject(file multipart.File, bucket string, fileName string) error

Jump to

Keyboard shortcuts

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