aws

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	CF              cloudformationiface.CloudFormationAPI
	S3UploadManager S3UploadManager
	S3              s3iface.S3API
	AccountID       string
	Region          string
}

type BucketError

type BucketError struct {
	Op     string
	Bucket string
	Err    error
}

func (*BucketError) Error

func (e *BucketError) Error() string

func (*BucketError) Unwrap

func (e *BucketError) Unwrap() error

type Config

type Config struct {
	Region   string
	Profile  string
	Endpoint string
}

func (*Config) Merge

func (ac *Config) Merge(otherCfg Config)

type Provider

type Provider struct{}

func (Provider) Must

func (p Provider) Must(cfg Config) *AWS

func (Provider) New

func (Provider) New(cfg Config) (*AWS, error)

type S3Settings

type S3Settings struct {
	BucketName string
	Prefix     string
	KMSKeyID   string

	ThresholdSize int
}

func (*S3Settings) Merge

func (cfg *S3Settings) Merge(otherCfg S3Settings)

type S3UploadManager

type S3UploadManager interface {
	Upload(*s3manager.UploadInput, ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
}

type S3Uploader

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

func NewS3Uploader

func NewS3Uploader(mgr S3UploadManager, s3api s3iface.S3API, cfg S3Settings) *S3Uploader

func (S3Uploader) Cleanup

func (s S3Uploader) Cleanup() error

func (*S3Uploader) Upload

func (s *S3Uploader) Upload(body string) (_ string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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