s3util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDownloader

func NewDownloader(io *sys.IO, cfg *Config) (*s3.S3, error)

func NewUploader

func NewUploader(io *sys.IO, cfg *Config) (*s3manager.Uploader, error)

func SkipTest

func SkipTest() bool

Types

type Config

type Config struct {
	Profile  string
	Region   string
	Bucket   string
	Prefix   string
	Endpoint string
}

func NewTestConfig

func NewTestConfig() (*Config, error)

type URI

type URI struct {
	Profile  string
	Region   string
	Bucket   string
	Key      string
	Endpoint string
}

func ParseURI

func ParseURI(s string) (*URI, error)

func (*URI) ToConfig

func (uri *URI) ToConfig() *Config

Jump to

Keyboard shortcuts

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