Documentation ¶
Overview ¶
Package option provides adapters to change a parameter in S3 request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyObjectInput ¶
type CopyObjectInput func(req *s3.CopyObjectInput)
The CopyObjectInput type is an adapter to change a parameter in s3.CopyObjectInput.
func CopySSEKMSKeyID ¶
func CopySSEKMSKeyID(keyID string) CopyObjectInput
CopySSEKMSKeyID returns a CopyObjectInput that changes a SSE-KMS Key ID.
type GetObjectInput ¶
type GetObjectInput func(req *s3.GetObjectInput)
The GetObjectInput type is an adapter to change a parameter in s3.GetObjectInput.
type HeadObjectInput ¶
type HeadObjectInput func(req *s3.HeadObjectInput)
The HeadObjectInput type is an adapter to change a parameter in s3.HeadObjectInput.
type ListObjectVersionsInput ¶ added in v0.1.5
type ListObjectVersionsInput func(req *s3.ListObjectVersionsInput)
The ListObjectVersionsInput type is an adapter to change a parameter in s3.ListObjectVersionsInput.
type ListObjectsInput ¶
type ListObjectsInput func(req *s3.ListObjectsInput)
The ListObjectsInput type is an adapter to change a parameter in s3.ListObjectsInput.
func ListDelimiter ¶
func ListDelimiter(delim string) ListObjectsInput
ListDelimiter returns a ListObjectsInput that changes a delimiter in s3.ListObjectsInput.
func ListEncodingType ¶
func ListEncodingType(typ string) ListObjectsInput
ListEncodingType returns a ListObjectsInput that changes a EncodingType in s3.ListObjectsInput.
func ListMarker ¶
func ListMarker(marker string) ListObjectsInput
ListMarker returns a ListObjectsInput that changes a Marker in s3.ListObjectsInput.
type ListObjectsV2Input ¶ added in v0.1.4
type ListObjectsV2Input func(req *s3.ListObjectsV2Input)
The ListObjectsV2Input type is an adapter to change a parameter in s3.ListObjectsV2Input.
type PutObjectInput ¶
type PutObjectInput func(req *s3.PutObjectInput)
The PutObjectInput type is an adapter to change a parameter in s3.PutObjectInput.
func ACLPrivate ¶
func ACLPrivate() PutObjectInput
ACLPrivate returns a PutObjectInput that set ACL private.
func ACLPublicRead ¶
func ACLPublicRead() PutObjectInput
ACLPublicRead returns a PutObjectInput that set ACL public-read.
func ContentLength ¶
func ContentLength(length int64) PutObjectInput
ContentLength returns a PutObjectInput that set Content-Length.
func ContentType ¶
func ContentType(ct string) PutObjectInput
ContentType returns a PutObjectInput that set Content-Type.
func SSEKMSKeyID ¶
func SSEKMSKeyID(keyID string) PutObjectInput
SSEKMSKeyID returns a PutObjectInput that changes a SSE-KMS Key ID.
func SSES3 ¶ added in v0.1.6
func SSES3() PutObjectInput
SSES3 returns a PutObjectInput that uses SSE-S3 (AES256) in S3.