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