Documentation
¶
Overview ¶
Package s3 implements a generic Amazon S3 client
Index ¶
- type Auth
- type Bucket
- type Client
- func (c *Client) Buckets() ([]*Bucket, error)
- func (c *Client) Delete(bucket, key string) error
- func (c *Client) Get(bucket, key string) (body io.ReadCloser, size int64, err error)
- func (c *Client) ListBucket(bucket string, startAt string, maxKeys int) (items []*Item, err error)
- func (c *Client) PutObject(name, bucket string, md5 hash.Hash, size int64, body io.Reader) error
- func (c *Client) Stat(name, bucket string) (size int64, reterr error)
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { AccessKey string SecretAccessKey string // Hostname is the S3 hostname to use. // If empty, the stanard US region of "s3.amazonaws.com" is // used. Hostname string }
func (*Auth) SignRequest ¶
type Client ¶
Client is an Amazon S3 client.
func (*Client) ListBucket ¶
ListBucket returns 0 to maxKeys (inclusive) items from the provided bucket. Keys before startAt will be skipped. (This is the S3 'marker' value). If the length of the returned items is equal to maxKeys, there is no indication whether or not the returned list is truncated.
Click to show internal directories.
Click to hide internal directories.