s3

package
v0.31.26 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config NewClientConfig) *Client

func (Client) Upload

func (c Client) Upload(fileGlob string, to string, sourcesDir string) error

type FileSizeGetter added in v0.31.23

type FileSizeGetter struct{}

func (FileSizeGetter) FileSize added in v0.31.23

func (f FileSizeGetter) FileSize(localPath string) (int64, error)

type NewClientConfig

type NewClientConfig struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
	RegionName      string
	Bucket          string

	Logger            logger.Logger
	Stderr            io.Writer
	SkipSSLValidation bool
	FileSizeGetter    fileSizeGetter
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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