Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const AuthenticatedRead + const BucketOwnerFull + const BucketOwnerRead + const LifecycleRuleDateFormat + const LifecycleRuleStatusDisabled + const LifecycleRuleStatusEnabled + const Private + const PublicRead + const PublicReadWrite + const StorageClassGlacier + type ACL string + type Bucket struct + Name string + func (b *Bucket) Del(path string) error + func (b *Bucket) DelBucket() (err error) + func (b *Bucket) DelMulti(objects Delete) error + func (b *Bucket) DeleteLifecycleConfiguration() error + func (b *Bucket) Exists(path string) (exists bool, err error) + func (b *Bucket) Get(path string) (data []byte, err error) + func (b *Bucket) GetLifecycleConfiguration() (*LifecycleConfiguration, error) + func (b *Bucket) GetReader(path string) (rc io.ReadCloser, err error) + func (b *Bucket) GetResponse(path string) (resp *http.Response, err error) + func (b *Bucket) GetResponseWithHeaders(path string, headers map[string][]string) (resp *http.Response, err error) + func (b *Bucket) Head(path string, headers map[string][]string) (*http.Response, error) + func (b *Bucket) InitMulti(key string, contType string, perm ACL, options Options) (*Multi, error) + func (b *Bucket) List(prefix, delim, marker string, max int) (result *ListResp, err error) + func (b *Bucket) ListMulti(prefix, delim string) (multis []*Multi, prefixes []string, err error) + func (b *Bucket) Location() (string, error) + func (b *Bucket) Multi(key, contType string, perm ACL, options Options) (*Multi, error) + func (b *Bucket) PostFormArgs(path string, expires time.Time, redirect string) (action string, fields map[string]string) + func (b *Bucket) PostFormArgsEx(path string, expires time.Time, redirect string, conds []string) (action string, fields map[string]string) + func (b *Bucket) Put(path string, data []byte, contType string, perm ACL, options Options) error + func (b *Bucket) PutBucket(perm ACL) error + func (b *Bucket) PutBucketSubresource(subresource string, r io.Reader, length int64) error + func (b *Bucket) PutBucketWebsite(configuration WebsiteConfiguration) error + func (b *Bucket) PutCopy(path string, perm ACL, options CopyOptions, source string) (*CopyObjectResult, error) + func (b *Bucket) PutLifecycleConfiguration(c *LifecycleConfiguration) error + func (b *Bucket) PutReader(path string, r io.Reader, length int64, contType string, perm ACL, ...) error + func (b *Bucket) SignedURL(path string, expires time.Time) string + func (b *Bucket) SignedURLWithArgs(path string, expires time.Time, params url.Values, headers http.Header) string + func (b *Bucket) SignedURLWithMethod(method, path string, expires time.Time, params url.Values, headers http.Header) string + func (b *Bucket) URL(path string) string + func (b *Bucket) UploadSignedURL(path, method, content_type string, expires time.Time) string + func (b *Bucket) Versions(prefix, delim, keyMarker string, versionIdMarker string, max int) (result *VersionsResp, err error) + type BucketInfo struct + CreationDate string + Name string + type CopyObjectResult struct + ETag string + LastModified string + type CopyOptions struct + ContentType string + CopySourceOptions string + MetadataDirective string + type Delete struct + Objects []Object + Quiet bool + type Error struct + BucketName string + Code string + HostId string + Message string + RequestId string + StatusCode int + func (e *Error) Error() string + type ErrorDocument struct + Key string + type Expiration struct + Date string + Days *uint + func (r *Expiration) ParseDate() (time.Time, error) + type GetLocationResp struct + Location string + type GetServiceResp struct + Buckets []BucketInfo + Owner Owner + type IndexDocument struct + Suffix string + type Key struct + ETag string + Key string + LastModified string + Owner Owner + Size int64 + StorageClass string + type LifecycleConfiguration struct + Rules *[]*LifecycleRule + XMLName xml.Name + func (c *LifecycleConfiguration) AddRule(r *LifecycleRule) + type LifecycleRule struct + Expiration *Expiration + ID string + NoncurrentVersionExpiration *NoncurrentVersionExpiration + NoncurrentVersionTransition *NoncurrentVersionTransition + Prefix string + Status string + Transition *Transition + func NewLifecycleRule(id, prefix string) *LifecycleRule + func (r *LifecycleRule) Disable() + func (r *LifecycleRule) Enable() + func (r *LifecycleRule) SetExpirationDate(date time.Time) + func (r *LifecycleRule) SetExpirationDays(days uint) + func (r *LifecycleRule) SetNoncurrentVersionExpirationDays(days uint) + func (r *LifecycleRule) SetNoncurrentVersionTransitionDays(days uint) + func (r *LifecycleRule) SetTransitionDate(date time.Time) + func (r *LifecycleRule) SetTransitionDays(days uint) + type ListResp struct + CommonPrefixes []string + Contents []Key + Delimiter string + IsTruncated bool + Marker string + MaxKeys int + Name string + NextMarker string + Prefix string + type Multi struct + Bucket *Bucket + Key string + UploadId string + func (m *Multi) Abort() error + func (m *Multi) Complete(parts []Part) error + func (m *Multi) ListParts() ([]Part, error) + func (m *Multi) ListPartsFull(partNumberMarker int, maxParts int) ([]Part, error) + func (m *Multi) PutAll(r ReaderAtSeeker, partSize int64) ([]Part, error) + func (m *Multi) PutPart(n int, r io.ReadSeeker) (Part, error) + func (m *Multi) PutPartCopy(n int, options CopyOptions, source string) (*CopyObjectResult, Part, error) + type NoncurrentVersionExpiration struct + Days *uint + type NoncurrentVersionTransition struct + Days *uint + StorageClass string + type Object struct + Key string + VersionId string + type Options struct + CacheControl string + ContentDisposition string + ContentEncoding string + ContentMD5 string + Meta map[string][]string + Range string + RedirectLocation string + SSE bool + SSECustomerAlgorithm string + SSECustomerKey string + SSECustomerKeyMD5 string + type Owner struct + DisplayName string + ID string + type Part struct + ETag string + N int + Size int64 + type ReaderAtSeeker interface + type RedirectAllRequestsTo struct + HostName string + Protocol string + type RoutingRule struct + ConditionKeyPrefixEquals string + RedirectReplaceKeyPrefixWith string + RedirectReplaceKeyWith string + type S3 struct + ConnectTimeout time.Duration + ReadTimeout time.Duration + Signature int + func New(auth aws.Auth, region aws.Region) *S3 + func (s3 *S3) Bucket(name string) *Bucket + func (s3 *S3) GetService() (*GetServiceResp, error) + type Transition struct + Date string + Days *uint + StorageClass string + func (r *Transition) ParseDate() (time.Time, error) + type Version struct + ETag string + IsLatest bool + Key string + LastModified string + Owner Owner + Size int64 + StorageClass string + VersionId string + type VersionsResp struct + CommonPrefixes []string + Delimiter string + IsTruncated bool + KeyMarker string + MaxKeys int + Name string + Prefix string + VersionIdMarker string + Versions []Version + type WebsiteConfiguration struct + ErrorDocument *ErrorDocument + IndexDocument *IndexDocument + RedirectAllRequestsTo *RedirectAllRequestsTo + RoutingRules *[]RoutingRule + XMLName xml.Name