bucket

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 11 Imported by: 4

README

gocloud-blob-bucket

This package is a thin wrapper around the Go Cloud package in order to be able to specify AWS S3 credentials using string values. Those values are:

  • env: – read credentials from AWS defined environment variables.
  • iam: – assume AWS IAM credentials).
  • {AWS_PROFILE_NAME}.
  • {AWS_CREDENTIALS_PATH}:{AWS_PROFILE_NAME}.

For example:

s3:///bucket-name?region=us-east-1&credentials=iam:

Additionally, if a Go Cloud URI contains a prefix= query parameter this package will automatically return a blob.PrefixedBucket.

See also

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenBucket

func OpenBucket(ctx context.Context, uri string) (*blob.Bucket, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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