kops/vendor/github.com/aws/aws-sdk-go/example/service/s3/concatObjects
Justin Santa Barbara b587c725df Update aws-sdk-go to 1.6.8
Fix #1221
2016-12-30 10:42:50 -05:00
..
README.md Update aws-sdk-go to 1.5.2 2016-11-03 23:54:12 -04:00
concatObjects.go Update aws-sdk-go to 1.6.8 2016-12-30 10:42:50 -05:00

README.md

Example

concatObjects is an example using the AWS SDK for Go to concatenate two objects together. We use UploadPartCopy which uses an object for a part. Here in this example we have two parts, or in other words two objects that we want to concatenate together.

Usage

The example uses the the bucket name provided, two keys for each object, and lastly the output key.

AWS_REGION=<region> go run -tags example concatenateObjects.go <bucket> <key for object 1> <key for object 2> <key for output>