s3

package
v0.0.0-...-5815c51 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_S3_BUCKET_KEY   = "TROUSSEAU_S3_BUCKET"
	ENV_S3_FILENAME_KEY = "TROUSSEAU_S3_FILENAME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Storage

type S3Storage struct {
	AwsAuth    aws.Auth
	BucketName string
	Region     aws.Region
	// contains filtered or unexported fields
}

S3Storage is an implementation of the RemoteStorage interface to be able to push/pull trousseau to a amazon S3 bucket.

func NewS3Storage

func NewS3Storage(auth aws.Auth, bucketName string, region aws.Region) *S3Storage

func (*S3Storage) Connect

func (ss *S3Storage) Connect() error

func (*S3Storage) Pull

func (ss *S3Storage) Pull(remotePath, localPath string) error

func (*S3Storage) Push

func (ss *S3Storage) Push(localPath, remotePath string) error

Jump to

Keyboard shortcuts

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