s3

package
v0.0.0-...-bfc6906 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2013 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadToS3

func UploadToS3(path string, bucket string, info S3UploadInfo) error

Types

type S3Credentials

type S3Credentials struct {
	Key    string
	Secret []byte
}

func GetCredentials

func GetCredentials() (S3Credentials, error)

type S3Info

type S3Info struct {
	Size        int64
	ModTime     time.Time
	ContentType string
	MD5         string
	URL         string
	RedirectURL string
}

func GetS3Info

func GetS3Info(bucket string, s3ItemPath string) (S3Info, error)

type S3UploadInfo

type S3UploadInfo struct {
	Encoding      string
	ContentType   string
	Public        bool
	ContentLength int64
	ModTime       time.Time
	MD5           string
	ItemPath      string
}

Jump to

Keyboard shortcuts

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