Back to Aws Sdk Go

Example

example/service/mediastoredata/streamingNonSeekableReader/README.md

1.55.8724 B
Original Source

Example

This is an example demonstrates how you can use the AWS Elemental MediaStore API PutObject operation with a non-seekable io.Reader.

Usage

The example will create an Elemental MediaStore container, and upload a contrived non-seekable io.Reader to that container. Using the SDK's aws.ReadSeekCloser utility for wrapping the io.Reader in a value the mediastore#PutObjectInput.Body will accept.

The example will attempt to create the container if it does not already exist.

sh
AWS_REGION=<region> go run -tags example main.go <containerName> <object-path>