s3

package
v0.0.0-...-2c830df Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Metadata

type EC2Metadata interface {
	// Query the EC2 metadata service (used to discover instance-id etc).
	GetMetadata(path string) (string, error)
}

EC2Metadata is an abstraction over the AWS metadata service.

type S3

type S3 interface {
	// Get an object from S3.
	GetObject(request *s3.GetObjectInput) (*s3.GetObjectOutput, error)
	// Put an object in S3.
	PutObject(request *s3.PutObjectInput) (*s3.PutObjectOutput, error)
}

S3 is an abstraction over S3, to allow mocking/other implementations. Note that the ListX functions return a list, so callers don't need to deal with paging.

type Services

type Services interface {
	Metadata() (EC2Metadata, error)
	Storage(region string) (S3, error)
}

Services is an abstraction over AWS, to allow mocking/other implementations.

Jump to

Keyboard shortcuts

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