s3

package
v0.0.0-...-dba4764 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5HexDigest

func Md5HexDigest(body io.Reader) string

Types

type BaseClient

type BaseClient struct {
	Auth   aws.Auth
	Bucket string
}

type NamedClient

type NamedClient struct {
	*BaseClient
}

func NewNamedClient

func NewNamedClient() *NamedClient

func (*NamedClient) PutByBytes

func (nc *NamedClient) PutByBytes(src []byte, ctype string) (string, error)

func (*NamedClient) PutByString

func (nc *NamedClient) PutByString(src, ctype string) (string, error)

func (*NamedClient) PutByUrl

func (nc *NamedClient) PutByUrl(src string) (dst string, err error)

func (*NamedClient) SetAuth

func (nc *NamedClient) SetAuth(key, secret string) *NamedClient

func (*NamedClient) SetBucket

func (nc *NamedClient) SetBucket(name string) *NamedClient

Jump to

Keyboard shortcuts

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