s3

package
v0.0.0-...-33635b2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsCliPath

func AwsCliPath(path string) bucketOption

func InjectCommandFactory

func InjectCommandFactory(factory CommandFactory) bucketOption

func NewBucket

func NewBucket(name, endpoint, key, secret string, logger lager.Logger, options ...bucketOption) *s3Bucket

Types

type Bucket

type Bucket interface {
	Upload(source, destination string) error
	Name() string
}

type Client

type Client interface {
	GetOrCreateBucket(string) (Bucket, error)
	ApiClient() *goamz.S3
}

func NewClient

func NewClient(endpoint, accessKey, secretKey string, logger lager.Logger) Client

type Command

type Command interface {
	CombinedOutput() ([]byte, error)
}

type CommandFactory

type CommandFactory func(name string, env []string, arg ...string) Command

Jump to

Keyboard shortcuts

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