Documentation ¶
Index ¶
- func FormatTimeZulu(input *time.Time) string
- func GCPUpload(input *s3manager.UploadInput, writer Writer) (int64, error)
- func GCSACLResponseToAWS(input []storage.ACLRule) response_type.AWSACLResponse
- func GCSAttrToCombine(input *storage.ObjectAttrs) *response_type.CompleteMultipartUploadResult
- func GCSAttrToHeaders(input *storage.ObjectAttrs, writer http.ResponseWriter)
- func GCSCopyResponseToAWS(input *storage.ObjectAttrs) response_type.CopyResult
- func GCSItemToContent(item *storage.ObjectAttrs) *response_type.BucketContent
- func GCSItemToPrefix(item *storage.ObjectAttrs) *response_type.BucketCommonPrefix
- func GCSListResponseObjectsToAWS(contents []*response_type.BucketContent, listRequest *s3.ListObjectsInput, ...) *response_type.AWSListBucketResponse
- func GCSListResponseToAWS(input *storage.ObjectIterator, listRequest *s3.ListObjectsInput, pageSize int) (*response_type.AWSListBucketResponse, error)
- func GCSListResponseToAWSv2(input *storage.ObjectIterator, listRequest *s3.ListObjectsInput, pageSize int) (*response_type.AWSListBucketResponse, error)
- func GCSMD5ToEtag(input *storage.ObjectAttrs, writer http.ResponseWriter)
- func MD5toEtag(input []byte) string
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTimeZulu ¶
func GCSACLResponseToAWS ¶
func GCSACLResponseToAWS(input []storage.ACLRule) response_type.AWSACLResponse
func GCSAttrToCombine ¶
func GCSAttrToCombine(input *storage.ObjectAttrs) *response_type.CompleteMultipartUploadResult
func GCSAttrToHeaders ¶
func GCSAttrToHeaders(input *storage.ObjectAttrs, writer http.ResponseWriter)
func GCSCopyResponseToAWS ¶
func GCSCopyResponseToAWS(input *storage.ObjectAttrs) response_type.CopyResult
func GCSItemToContent ¶
func GCSItemToContent(item *storage.ObjectAttrs) *response_type.BucketContent
func GCSItemToPrefix ¶
func GCSItemToPrefix(item *storage.ObjectAttrs) *response_type.BucketCommonPrefix
func GCSListResponseObjectsToAWS ¶
func GCSListResponseObjectsToAWS(contents []*response_type.BucketContent, listRequest *s3.ListObjectsInput, nextToken string, contentI int, prefixI int, prefixes []*response_type.BucketCommonPrefix) *response_type.AWSListBucketResponse
func GCSListResponseToAWS ¶
func GCSListResponseToAWS(input *storage.ObjectIterator, listRequest *s3.ListObjectsInput, pageSize int) (*response_type.AWSListBucketResponse, error)
Old version of aws listing does not paginate nicely. It uses the last item of the prior list to do an offset. So here we will just paginate through till we find that item.
func GCSListResponseToAWSv2 ¶
func GCSListResponseToAWSv2(input *storage.ObjectIterator, listRequest *s3.ListObjectsInput, pageSize int) (*response_type.AWSListBucketResponse, error)
new version of aws listing does same pagination as gcs
func GCSMD5ToEtag ¶
func GCSMD5ToEtag(input *storage.ObjectAttrs, writer http.ResponseWriter)
Types ¶
Click to show internal directories.
Click to hide internal directories.