Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Client *s3.S3 Bucket string ACL string Creds Credentials }
Bucket handler for a S3 bucket
func New ¶
New creates a new connection to a S3 bucket using the provided credentials. regions: eu-west-1, us-east-1, us-west-1 ACL private, public-read
type ByLastModified ¶
type ByLastModified []Object
ByLastModified implements sort.Interface for []Object based on the LastModified field. Sort is descending by time
func (ByLastModified) Len ¶
func (a ByLastModified) Len() int
func (ByLastModified) Less ¶
func (a ByLastModified) Less(i, j int) bool
func (ByLastModified) Swap ¶
func (a ByLastModified) Swap(i, j int)
type Config ¶
type Config struct { Bucket string ACL string Region string Credentials Credentials }
Config for bucket
type Credentials ¶
Credentials represents a pair of AWS credentials
Click to show internal directories.
Click to hide internal directories.