aws

package
v0.0.0-...-bd658e9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWS_REGION = "ap-northeast-2"
)

Variables

This section is empty.

Functions

func GetFilenameFromPath

func GetFilenameFromPath(filepath string) string

*

  • Get file name & ext

Types

type S3Client

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

func NewS3Service

func NewS3Service(config *S3ClientConfig) *S3Client

func (*S3Client) DownloadFile

func (client *S3Client) DownloadFile(fileItem string) (string, error)

func (*S3Client) UploadFile

func (client *S3Client) UploadFile(filePath string, bucketPath string) (string, error)

func (*S3Client) UploadFiles

func (client *S3Client) UploadFiles(basePath, insideDir string, files []string)

type S3ClientConfig

type S3ClientConfig struct {
	Bucket string
}

Jump to

Keyboard shortcuts

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