Version: v0.0.0-...-da75f93 Latest Latest

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 14 Imported by: 0



Package amzn contains AWS-specific implementation.



This section is empty.


View Source
var (
	// AWSSession returns an AWS session that can be used for
	// AWS operations. The calling program can override this
	// if necessary. The default implementation returns a session
	// with defaults obtained from the environment.
	AWSSession func() *session.Session


func GenerateDataKey

func GenerateDataKey(keyID string) (dataKey string, keyARN string, err error)

GenerateDataKey generates a new data encryption key that can be used in the configuration file.

func Get

func Get(bucket, key string) (etag string, modified time.Time, body io.ReadCloser, err error)

Get the contents of an S3 bucket. The caller is responsible for closing the body.

func HasChanged

func HasChanged(bucket, key string, etag string) (changed bool, err error)

HasChanged determines whether the S3 object has changed.

func Head(bucket, key string) (etag string, modified time.Time, err error)

Head the contents of an S3 bucket.

func NewKey

func NewKey(node ast.Node) (encryption.Key, error)

NewKey creates a new data encryption key based on the contents of the configuration file.


This section is empty.

Jump to

Keyboard shortcuts

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