s3

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var S3AccessKeyId string
View Source
var S3SecretAccessKey string

Functions

func DownloadFromS3

func DownloadFromS3(path string, gzipFileName string) (string, error)

func S3Session

func S3Session(params S3ConnectParams) (*session.Session, error)

func UploadToS3

func UploadToS3(gzipFileName string, jsonBytes []byte, path string, actionType string) (string, int64, error)

Types

type Credentials

type Credentials struct {
	UserName string
	Password string
}

type S3BucketInfo

type S3BucketInfo struct {
	S3Acl        string
	S3Region     string
	S3Endpoint   string
	S3BucketName string
}
var S3BucketInfoValues S3BucketInfo

type S3ConnectParams

type S3ConnectParams struct {
	S3Region          string
	S3AccessKeyId     string
	S3SecretAccessKey string
}

type S3FileInfo

type S3FileInfo struct {
	FileName string
	FileSize int64
}

type S3Upload

type S3Upload struct {
	BucketName    string
	Path          string
	ActionType    string
	Data          io.ReadCloser
	ConnectParams *S3ConnectParams
	GzipFileName  string
	Size          int64
	GzipSize      int64
}

Jump to

Keyboard shortcuts

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