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.
Click to show internal directories.
Click to hide internal directories.