s3

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 5 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 interface {
	Upload(fileGlob string, to string, sourcesDir string) error
}

func NewClient

func NewClient(config NewClientConfig) Client

type NewClientConfig

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

	Logger logger.Logger

	Stdout io.Writer
	Stderr io.Writer

	OutBinaryPath string
}

type Params

type Params struct {
	File string `json:"file"`
	To   string `json:"to"`
}

type Request

type Request struct {
	Params Params `json:"params"`
	Source Source `json:"source"`
}

type Source

type Source struct {
	AccessKeyID     string `json:"access_key_id"`
	SecretAccessKey string `json:"secret_access_key"`
	Bucket          string `json:"bucket"`
	RegionName      string `json:"region_name"`
	Regexp          string `json:"regexp"`
}

Jump to

Keyboard shortcuts

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