Documentation ¶
Index ¶
- Variables
- type AclGrantee
- type Client
- func (client *Client) DeleteObject(bucket, key string) *DeleteObject
- func (client *Client) Do(req Request) (*http.Response, error)
- func (client *Client) GetObject(bucket, key string) *GetObject
- func (client *Client) PutObject(bucket, key string) *PutObject
- func (client *Client) Request(req Request) (*http.Request, error)
- func (client *Client) Sign(req *http.Request)
- func (client *Client) SignUrl(req *url.URL, lifetime int64)
- type DeleteObject
- type DeleteObjectResponse
- type Error
- type GetObject
- func (request *GetObject) Exec() (*GetObjectResponse, error)
- func (request *GetObject) IfMatch(etag string) *GetObject
- func (request *GetObject) IfModifiedSince(latest time.Time) *GetObject
- func (request *GetObject) IfNoneMatch(etag string) *GetObject
- func (request *GetObject) IfUnmodifiedSince(latest time.Time) *GetObject
- func (request *GetObject) Range(h string) *GetObject
- func (request *GetObject) Request(region *aws.Region) (*http.Request, error)
- func (request *GetObject) ResponseContentDisposition(q string) *GetObject
- func (request *GetObject) ResponseContentEncoding(q string) *GetObject
- func (request *GetObject) ResponseContentLanguage(q string) *GetObject
- func (request *GetObject) ResponseContentType(mime string) *GetObject
- func (request *GetObject) ResponseExpires(q string) *GetObject
- func (request *GetObject) ResponseResponseCacheControl(q string) *GetObject
- type GetObjectResponse
- type PutObject
- func (request *PutObject) Acl(acl string) *PutObject
- func (request *PutObject) CacheControl(control string) *PutObject
- func (request *PutObject) Content(data []byte) *PutObject
- func (request *PutObject) ContentEncoding(enc string) *PutObject
- func (request *PutObject) ContentType(mime string) *PutObject
- func (request *PutObject) CopySource(bucket, key string) *PutObject
- func (request *PutObject) CopySourceIfMatch(etag string) *PutObject
- func (request *PutObject) CopySourceIfModifiedSince(latest time.Time) *PutObject
- func (request *PutObject) CopySourceIfNoneMatch(etag string) *PutObject
- func (request *PutObject) CopySourceIfUnmodifiedSince(latest time.Time) *PutObject
- func (request *PutObject) Exec() (*PutObjectResponse, error)
- func (request *PutObject) Expires(lifetime time.Duration) *PutObject
- func (request *PutObject) FullControl(grantee AclGrantee) *PutObject
- func (request *PutObject) MetadataDirective(copyreplace string) *PutObject
- func (request *PutObject) Read(grantee AclGrantee) *PutObject
- func (request *PutObject) ReadAcp(grantee AclGrantee) *PutObject
- func (request *PutObject) Request(region *aws.Region) (*http.Request, error)
- func (request *PutObject) ServerSideEncryption(algorithm string) *PutObject
- func (request *PutObject) StorageClass(class string) *PutObject
- func (request *PutObject) WebsiteRedirectLocation(uri string) *PutObject
- func (request *PutObject) WriteAcp(grantee AclGrantee) *PutObject
- type PutObjectResponse
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var ( USStandard = &aws.Region{"https", "s3.amazonaws.com"} USWest1 = &aws.Region{"https", "s3-us-west-1.amazonaws.com"} USWest2 = &aws.Region{"https", "s3-us-west-2.amazonaws.com"} EUWest1 = &aws.Region{"https", "s3-eu-west-1.amazonaws.com"} APSouthEast1 = &aws.Region{"https", "s3-as-southeast-1.amazonaws.com"} APSouthEast2 = &aws.Region{"https", "s3-as-southeast-2.amazonaws.com"} APNorthEast2 = &aws.Region{"https", "s3-as-northeast-2.amazonaws.com"} SAEast1 = &aws.Region{"https", "s3-sa-east-1.amazonaws.com"} )
Functions ¶
This section is empty.
Types ¶
type AclGrantee ¶
func (AclGrantee) String ¶
func (grantee AclGrantee) String() string
type Client ¶
type Client struct { *aws.Credentials *aws.Region // contains filtered or unexported fields }
func (*Client) DeleteObject ¶
func (client *Client) DeleteObject(bucket, key string) *DeleteObject
type DeleteObject ¶
type DeleteObject struct {
// contains filtered or unexported fields
}
func (*DeleteObject) Exec ¶
func (request *DeleteObject) Exec() (*DeleteObjectResponse, error)
func (*DeleteObject) MFA ¶
func (request *DeleteObject) MFA(serial, value string) *DeleteObject
type DeleteObjectResponse ¶
type DeleteObjectResponse struct { Header http.Header Body io.ReadCloser // contains filtered or unexported fields }
func (*DeleteObjectResponse) Status ¶
func (response *DeleteObjectResponse) Status() string
func (*DeleteObjectResponse) StatusCode ¶
func (response *DeleteObjectResponse) StatusCode() int
type Error ¶
type Error struct { Code string Message string RequestId, HostId string Header string StringToSignBytes string SignatureProvided string }
func (*Error) StringToSign ¶
type GetObject ¶
type GetObject struct {
// contains filtered or unexported fields
}
func (*GetObject) Exec ¶
func (request *GetObject) Exec() (*GetObjectResponse, error)
func (*GetObject) IfModifiedSince ¶
func (*GetObject) IfNoneMatch ¶
func (*GetObject) IfUnmodifiedSince ¶
func (*GetObject) ResponseContentDisposition ¶
func (*GetObject) ResponseContentEncoding ¶
func (*GetObject) ResponseContentLanguage ¶
func (*GetObject) ResponseContentType ¶
func (*GetObject) ResponseExpires ¶
func (*GetObject) ResponseResponseCacheControl ¶
type GetObjectResponse ¶
type GetObjectResponse struct { Header http.Header Body io.ReadCloser // contains filtered or unexported fields }
func (*GetObjectResponse) Status ¶
func (response *GetObjectResponse) Status() string
func (*GetObjectResponse) StatusCode ¶
func (response *GetObjectResponse) StatusCode() int
type PutObject ¶
type PutObject struct {
// contains filtered or unexported fields
}
func (*PutObject) CacheControl ¶
func (*PutObject) ContentEncoding ¶
func (*PutObject) ContentType ¶
func (*PutObject) CopySource ¶
func (*PutObject) CopySourceIfMatch ¶
func (*PutObject) CopySourceIfModifiedSince ¶
func (*PutObject) CopySourceIfNoneMatch ¶
func (*PutObject) CopySourceIfUnmodifiedSince ¶
func (*PutObject) Exec ¶
func (request *PutObject) Exec() (*PutObjectResponse, error)
func (*PutObject) FullControl ¶
func (request *PutObject) FullControl(grantee AclGrantee) *PutObject
func (*PutObject) MetadataDirective ¶
func (*PutObject) Read ¶
func (request *PutObject) Read(grantee AclGrantee) *PutObject
func (*PutObject) ReadAcp ¶
func (request *PutObject) ReadAcp(grantee AclGrantee) *PutObject
func (*PutObject) ServerSideEncryption ¶
func (*PutObject) StorageClass ¶
func (*PutObject) WebsiteRedirectLocation ¶
func (*PutObject) WriteAcp ¶
func (request *PutObject) WriteAcp(grantee AclGrantee) *PutObject
type PutObjectResponse ¶
func (*PutObjectResponse) Status ¶
func (response *PutObjectResponse) Status() string
func (*PutObjectResponse) StatusCode ¶
func (response *PutObjectResponse) StatusCode() int
Click to show internal directories.
Click to hide internal directories.