s3

package
v0.0.0-...-01eac64 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5Sum

func Md5Sum(r io.ReadSeeker) (md5hex string, md5b64 string, size int64, err error)

func Md5sumBase64

func Md5sumBase64(data []byte) string

func Md5sumBase64File

func Md5sumBase64File(f *os.File) (md5sum string, size int64, err error)

Types

type S3

type S3 struct {
	Bucket      string `goansible:"bucket,required"`
	Region      string `goansible:"region"`
	PutFile     string `goansible:"put_file"`
	GetFile     string `goansible:"get_file"`
	Mkdir       bool   `goansible:"mkdir"`
	At          string `goansible:"at"`
	Public      bool   `goansible:"public"`
	ContentType string `goansible:"content_type"`
	Writable    bool   `goansible:"writable"`
	GZip        bool   `goansible:"gzip"`
}

func (*S3) Run

func (s *S3) Run(env *goansible.CommandEnv) (*goansible.Result, error)

func (*S3) S3CpFile

func (s *S3) S3CpFile(a, b string) (*goansible.Result, error)

func (*S3) UploadFileD

func (s *S3) UploadFileD(S3 *s3.S3, key string, file *os.File, contentType, perm string) (*s3.PutObjectInput, *s3.PutObjectOutput, error)

func (*S3) ZipUploadReaderD

func (s *S3) ZipUploadReaderD(S3 *s3.S3, key string, data io.Reader, contentType, perm string) (*s3.PutObjectInput, *s3.PutObjectOutput, error)

Jump to

Keyboard shortcuts

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