aws

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 10 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) EndpointsToAlias added in v0.3.0

func (c *Client) EndpointsToAlias(endpoints []*pkg.Endpoint) ([]*route53.ResourceRecordSet, error)

EndpointsToAlias converts pkg Endpoint to route53 Alias Records

func (*Client) GetAssignedTXTRecordObject added in v0.3.0

func (c *Client) GetAssignedTXTRecordObject(r *route53.ResourceRecordSet) *route53.ResourceRecordSet

GetAssignedTXTRecordObject returns the TXT record which accompanies the Alias record

func (*Client) GetGroupID

func (c *Client) GetGroupID() string

GetGroupID returns the idenitifier for AWS records as stored in TXT records

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

func (*Client) RecordInfo added in v0.3.0

func (c *Client) RecordInfo(records []*route53.ResourceRecordSet) map[string]*pkg.RecordInfo

RecordInfo returns the map of record assigned dns to its target and groupID (can be empty)

type GetLoadBalancerFunc added in v0.3.2

type GetLoadBalancerFunc func(*session.Session) ([]*LoadBalancer, error)

GetLoadBalancerFunc is a func type to represent the interface of functions that retrieve the list of load balancers from AWS

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
	GroupID string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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