loggingUploadObjectReadBehavior

command
v1.21.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

Example

This example shows how you could wrap the reader of an file being uploaded to Amazon S3 with a logger that will log the usage of the reader, and print call stacks when the reader's Read, Seek, or ReadAt methods encounter an error.

Usage

This bucket uses the bucket name, key, and local file name passed to upload the local file to S3 as the key into the bucket.

AWS_REGION=us-west-2 AWS_PROFILE=default go run . "mybucket" "10MB.file" ./10MB.file

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL