Documentation
¶
Overview ¶
Package s3util defines some helpful utilities for working with S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketRegion ¶
BucketRegion reports the specified region for the given bucket using the GetBucketLocation API.
func IsNotExist ¶
IsNotExist reports whether err is an error indicating the requested resource was not found, taking into account S3 and standard library types.
Types ¶
type ETagReader ¶
type ETagReader struct {
// contains filtered or unexported fields
}
ETagReader implements the io.Reader interface by delegating to a nested reader. The ETag method returns a correctly-formatted S3 ETag for all the data that have been read so far (initially none).
func NewETagReader ¶
func NewETagReader(r io.Reader) ETagReader
NewETagReader returns a new S3 ETag reader for the contents of r.
func (ETagReader) ETag ¶
func (e ETagReader) ETag() string
ETag returns a correctly-formatted S3 etag for the contents of e that have been read so far.