Documentation ¶
Index ¶
- func GenerateExpirableLink(bucket, path string, expires time.Time, creds awsgo.Credentials) string
- func GenerateExpirableLinkVersion(bucket, path string, expires time.Time, creds awsgo.Credentials, ...) string
- type BadStatusCodeError
- type GetObjectRequest
- type GetObjectResponse
- type PutObjectRequest
- func (por PutObjectRequest) CoDoAndDemarshall(request awsgo.AwsRequest, future *PutObjectResponseFuture)
- func (por PutObjectRequest) CoRequest() (*PutObjectResponseFuture, error)
- func (por PutObjectRequest) DeMarshalResponse(a []byte, headers map[string]string, statusCode int) interface{}
- func (por PutObjectRequest) Request() (*PutObjectResponse, error)
- func (por *PutObjectRequest) VerifyInput() error
- type PutObjectResponse
- type PutObjectResponseFuture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExpirableLink ¶
Generates an expirable link to an s3 object Generated link will be: "//s3.amazonaws.com/{bucket}/{path}?{queryargs}"
func GenerateExpirableLinkVersion ¶
func GenerateExpirableLinkVersion(bucket, path string, expires time.Time, creds awsgo.Credentials, version string) string
Generates an expirable link to an s3 object Generated link will be: "//s3.amazonaws.com/{bucket}/{path}?{queryargs}"
Types ¶
type BadStatusCodeError ¶
func (BadStatusCodeError) Error ¶
func (b BadStatusCodeError) Error() string
type GetObjectRequest ¶
type GetObjectRequest struct { awsgo.RequestBuilder // headers Range string IfModifiedSince string IfUnmodifiedSince string IfMatch string IfNoneMatch string VersionId string // the file Path string }
func NewGetObjectRequest ¶
func NewGetObjectRequest() *GetObjectRequest
func NewHeadObjectRequest ¶
func NewHeadObjectRequest() *GetObjectRequest
func (GetObjectRequest) DeMarshalResponse ¶
func (por GetObjectRequest) DeMarshalResponse(a []byte, headers map[string]string, statusCode int) interface{}
func (GetObjectRequest) Request ¶
func (gor GetObjectRequest) Request() (*GetObjectResponse, error)
func (*GetObjectRequest) VerifyInput ¶
func (gi *GetObjectRequest) VerifyInput() error
type GetObjectResponse ¶
type PutObjectRequest ¶
type PutObjectRequest struct { awsgo.RequestBuilder Source io.ReadCloser Length int64 ContentType string Permissions string Path string ServerSideEncryption bool }
func NewPutObjectRequest ¶
func NewPutObjectRequest() *PutObjectRequest
func (PutObjectRequest) CoDoAndDemarshall ¶
func (por PutObjectRequest) CoDoAndDemarshall(request awsgo.AwsRequest, future *PutObjectResponseFuture)
func (PutObjectRequest) CoRequest ¶
func (por PutObjectRequest) CoRequest() (*PutObjectResponseFuture, error)
func (PutObjectRequest) DeMarshalResponse ¶
func (por PutObjectRequest) DeMarshalResponse(a []byte, headers map[string]string, statusCode int) interface{}
func (PutObjectRequest) Request ¶
func (por PutObjectRequest) Request() (*PutObjectResponse, error)
func (*PutObjectRequest) VerifyInput ¶
func (por *PutObjectRequest) VerifyInput() error
type PutObjectResponse ¶
type PutObjectResponseFuture ¶
type PutObjectResponseFuture struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.