Documentation ¶
Index ¶
- Constants
- func ResponseError(res *http.Response) error
- func ResponseErrorFrom(b []byte) error
- type ACL
- type Bucket
- type Bytes
- type Client
- func (c *Client) ChangeACL(path, acl string) error
- func (c *Client) CreateBucket(name, region, acl string) error
- func (c *Client) Delete(path string) error
- func (c *Client) DeleteBucket(name string) error
- func (c *Client) Get(key string) (io.Reader, error)
- func (c *Client) GetACL(key string) (ACL, error)
- func (c *Client) List() ([]Object, error)
- func (c *Client) ListBuckets() ([]Bucket, error)
- func (c *Client) NewUpload(path string, headers *http.Header) (*Upload, error)
- func (c *Client) Trace(out io.Writer, yes, body bool)
- type Grant
- type Object
- type Upload
Constants ¶
View Source
const ( PrivateACL = "private" PublicReadACL = "public-read" PublicReadWriteACL = "public-read-write" AWSExecReadACL = "aws-exec-read" AuthenticatedReadACL = "authenticated-read" BucketOwnerReadACL = "bucket-owner-read" BucketOwnerFullControlACL = "bucket-owner-full-control" LogDeliveryWriteACL = "log-delivery-write" )
View Source
const EveryoneURI = "http://acs.amazonaws.com/groups/global/AllUsers"
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseErrorFrom ¶
Types ¶
type Client ¶
type Client struct { AccessKeyID string SecretAccessKey string Token string Region string Bucket string Domain string Protocol string SOCKS5Proxy string SignatureVersion int CACertificates []string SkipSystemCAs bool InsecureSkipVerify bool UsePathBuckets bool // contains filtered or unexported fields }
func (*Client) CreateBucket ¶
func (*Client) DeleteBucket ¶
func (*Client) ListBuckets ¶
type Upload ¶
type Upload struct { Key string // contains filtered or unexported fields }
func (*Upload) ParallelStream ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.