aws_s3

package
v0.0.0-...-d4a0960 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*s3.Client, error)

Types

type S3

type S3 struct {
	S3Client  *s3.Client
	S3Manager *manager.Uploader
}

func (*S3) GetBucket

func (p *S3) GetBucket(bucketName string) string

func (*S3) SendContent

func (p *S3) SendContent(fileKey string, content []byte) (string, error)

func (*S3) SendFile

func (p *S3) SendFile(fileKey string, file io.Reader, itype string) (string, error)

UploadByFile 上传文件

Jump to

Keyboard shortcuts

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