aws

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAWSResponse = errors.New("invalid AWS response")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(o Options) *Client

func (*Client) ChangeRecordSets

func (c *Client) ChangeRecordSets(upsert, del, create []*route53.ResourceRecordSet, zoneID string) error

ChangeRecordSets creates and submits the record set change against the AWS API

func (*Client) GetCanonicalZoneIDs added in v0.5.0

func (c *Client) GetCanonicalZoneIDs(lbDNS []string) (map[string]string, error)

GetCanonicalZoneIDs returns the map of LB (ALB + ELB classic) mapped to its CanonicalHostedZoneId

func (*Client) GetHostedZones added in v0.3.0

func (c *Client) GetHostedZones() (map[string]string, error)

GetHostedZones returns the map hosted zone domain name -> zone id

func (*Client) ListRecordSets

func (c *Client) ListRecordSets(zoneID string) ([]*route53.ResourceRecordSet, error)

ListRecordSets retrieve all records existing in the specified hosted zone

type LoadBalancer added in v0.2.0

type LoadBalancer struct {
	DNSName         string
	CanonicalZoneID string
}

LoadBalancer struct to aggregate ELB and ALB with extracted DNSName and its canonical hosted zone id

type Logger

type Logger interface {
	Infoln(...interface{})
}

TODO: move to somewhere

type Options

type Options struct {
	Log Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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