aws

package
v0.0.0-...-b7b1fea Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderName is the name of AWS cloud provider.
	ProviderName = "aws"
)

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(awsServices Services, az string) (cloudTypes.Interface, error)

NewProvider returns a new aws provider.

func NewProviderFromViper

func NewProviderFromViper(v *viper.Viper) (cloudTypes.Interface, error)

NewProviderFromViper returns a new aws provider.

Types

type EC2

type EC2 interface {
	// Query EC2 for instances matching the filter.
	DescribeInstances(request *ec2.DescribeInstancesInput) ([]*ec2.Instance, error)
}

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

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 Services

type Services interface {
	Compute(region string) (EC2, error)
	Metadata() (EC2Metadata, 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