nsaws

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAwsRegion = "us-east-1"
	AwsTraceEnvVar   = "AWS_TRACE"
)

Variables

This section is empty.

Functions

func NewCloudfrontClient added in v0.0.31

func NewCloudfrontClient(user caws.User, region string) *cloudfront.Client

func NewConfig

func NewConfig(user caws.User, region string) aws.Config

Types

type S3Uploader added in v0.0.31

type S3Uploader struct {
	// BucketName refers to the S3 bucket name that files will be uploaded
	BucketName string
	// ObjectDirectory allows placing files under a subdirectory within S3
	ObjectDirectory string
	// OnObjectUpload allows performing an operation (like logging) when a file completes upload
	OnObjectUpload func(objectKey string)
}

func (*S3Uploader) UploadDir added in v0.0.31

func (u *S3Uploader) UploadDir(ctx context.Context, cfg aws.Config, baseDir string, filepaths []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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