aws

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

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

Go to latest
Published: Oct 28, 2016 License: MIT Imports: 18 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 NewProviderFromViper

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

NewProviderFromViper returns a new aws provider.

Types

type Provider

type Provider struct {
	Metadata *ec2metadata.EC2Metadata
	Ec2      *ec2.EC2
}

Provider represents an AWS provider.

func (*Provider) Instance

func (p *Provider) Instance(ctx context.Context, IP types.IP) (*cloudTypes.Instance, error)

Instance returns the instance details from aws.

func (*Provider) ProviderName

func (p *Provider) ProviderName() string

ProviderName returns the name of the provider.

func (*Provider) SampleConfig

func (p *Provider) SampleConfig() string

SampleConfig returns the sample config for the datadog backend.

func (*Provider) SelfIP

func (p *Provider) SelfIP() (types.IP, error)

SelfIP returns host's IPv4 address.

Jump to

Keyboard shortcuts

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