aws

package
v0.0.0-...-2e1fd75 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Api

type S3Api interface {
	// ListAllKeys list all the keys in a prefix/path of a bucket
	ListAllKeys(bucketName string, prefix string) ([]string, error)
	// Upload upload a slice of path to a bucket and prefix
	Upload(bucketName string, prefix string, uploadPaths []string, uploaded chan<- string) error
}

S3Api describe the calls to AWS S3 API

type S3LocalCred

type S3LocalCred struct {
	AwsRegion string
}

S3LocalCred holds aws configs to use AWS local credentials configured by awscli.

func (*S3LocalCred) ListAllKeys

func (s *S3LocalCred) ListAllKeys(bucketName string, prefix string) ([]string, error)

func (*S3LocalCred) Upload

func (s *S3LocalCred) Upload(bucketName string, prefix string, uploadPaths []string, uploaded chan<- string) error

Jump to

Keyboard shortcuts

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