Versions in this module Expand all Collapse all v1 v1.0.0 Feb 18, 2016 Changes in this version + var ErrInvalidObjectPrefix = ErrInvalidObjectName + func ErrEntityTooLarge(totalSize, maxObjectSize int64, bucketName, objectName string) error + func ErrEntityTooSmall(totalSize int64, bucketName, objectName string) error + func ErrInvalidArgument(message string) error + func ErrInvalidBucketName(message string) error + func ErrInvalidObjectName(message string) error + func ErrInvalidParts(expectedParts, uploadedParts int) error + func ErrUnexpectedEOF(totalRead, totalSize int64, bucketName, objectName string) error + type BucketACL string + func (b BucketACL) String() string + type BucketInfo struct + CreationDate time.Time + Name string + type Client struct + func New(endpoint string, accessKeyID, secretAccessKey string, insecure bool) (*Client, error) + func NewV2(endpoint string, accessKeyID, secretAccessKey string, insecure bool) (*Client, error) + func NewV4(endpoint string, accessKeyID, secretAccessKey string, insecure bool) (*Client, error) + func (c *Client) SetAppInfo(appName string, appVersion string) + func (c *Client) SetCustomTransport(customHTTPTransport http.RoundTripper) + func (c *Client) TraceOff() + func (c *Client) TraceOn(outputStream io.Writer) + func (c Client) BucketExists(bucketName string) error + func (c Client) FGetObject(bucketName, objectName, filePath string) error + func (c Client) FPutObject(bucketName, objectName, filePath, contentType string) (n int64, err error) + func (c Client) GetBucketACL(bucketName string) (BucketACL, error) + func (c Client) GetObject(bucketName, objectName string) (*Object, error) + func (c Client) ListBuckets() ([]BucketInfo, error) + func (c Client) ListIncompleteUploads(bucketName, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan ObjectMultipartInfo + func (c Client) ListObjects(bucketName, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan ObjectInfo + func (c Client) MakeBucket(bucketName string, acl BucketACL, location string) error + func (c Client) PresignedGetObject(bucketName string, objectName string, expires time.Duration, ...) (url string, err error) + func (c Client) PresignedPostPolicy(p *PostPolicy) (map[string]string, error) + func (c Client) PresignedPutObject(bucketName string, objectName string, expires time.Duration) (url string, err error) + func (c Client) PutObject(bucketName, objectName string, reader io.Reader, contentType string) (n int64, err error) + func (c Client) PutObjectWithProgress(bucketName, objectName string, reader io.Reader, contentType string, ...) (n int64, err error) + func (c Client) RemoveBucket(bucketName string) error + func (c Client) RemoveIncompleteUpload(bucketName, objectName string) error + func (c Client) RemoveObject(bucketName, objectName string) error + func (c Client) SetBucketACL(bucketName string, acl BucketACL) error + func (c Client) StatObject(bucketName, objectName string) (ObjectInfo, error) + type ErrorResponse struct + AmzBucketRegion string + BucketName string + Code string + HostID string + Key string + Message string + RequestID string + XMLName xml.Name + func ToErrorResponse(err error) ErrorResponse + func (e ErrorResponse) Error() string + type Object struct + func (o *Object) Close() (err error) + func (o *Object) Read(b []byte) (n int, err error) + func (o *Object) ReadAt(b []byte, offset int64) (n int, err error) + func (o *Object) Seek(offset int64, whence int) (n int64, err error) + func (o *Object) Stat() (ObjectInfo, error) + type ObjectInfo struct + ContentType string + ETag string + Err error + Key string + LastModified time.Time + Owner struct{ ... } + Size int64 + StorageClass string + type ObjectMultipartInfo struct + Err error + Initiated time.Time + Initiator initiator + Key string + Owner owner + Size int64 + StorageClass string + UploadID string + type PostPolicy struct + func NewPostPolicy() *PostPolicy + func (p *PostPolicy) SetBucket(bucketName string) error + func (p *PostPolicy) SetContentLengthRange(min, max int64) error + func (p *PostPolicy) SetContentType(contentType string) error + func (p *PostPolicy) SetExpires(t time.Time) error + func (p *PostPolicy) SetKey(key string) error + func (p *PostPolicy) SetKeyStartsWith(keyStartsWith string) error + func (p PostPolicy) String() string + type SignatureType int + const Latest + const SignatureV2 + const SignatureV4 Incompatible versions in this module v3.0.2+incompatible Sep 1, 2017