awsclient

package
v0.0.0-...-8fa8083 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChangeStatusPending = "PENDING"
	ChangeStatusInSync  = "INSYNC"
)

Variables

View Source
var (
	ErrZoneNotFound   = errors.New("Zone does not exist.")
	ErrRecordNotFound = errors.New("Record does not exist.")
	ErrChangeNotFound = errors.New("Change does not exist.")
)
View Source
var ErrELBNotFound = errors.New("ELB does not exist.")
View Source
var (
	ErrInvalidAWSCredentials = errors.New("Invalid AWS Credentials. Please see https://github.com/aws/aws-sdk-go#configuring-credentials.")
)

Functions

This section is empty.

Types

type AWSClient

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

func New

func New() *AWSClient

func (*AWSClient) FindLoadBalancer

func (c *AWSClient) FindLoadBalancer(dnsName string) (*LoadBalancer, error)

func (*AWSClient) FindRecord

func (c *AWSClient) FindRecord(zone *Zone, alias string) (*Record, error)

func (*AWSClient) FindZone

func (c *AWSClient) FindZone(name string) (*Zone, error)

func (*AWSClient) GetChangeStatus

func (c *AWSClient) GetChangeStatus(id string) (*ChangeStatus, error)

func (*AWSClient) LoadBalancers

func (c *AWSClient) LoadBalancers() ([]*LoadBalancer, error)

func (*AWSClient) RemoveAlias

func (c *AWSClient) RemoveAlias(zone *Zone, alias string) (*ChangeStatus, error)

func (*AWSClient) SetAlias

func (c *AWSClient) SetAlias(zone *Zone, hzid, elbDnsName, alias string) (*ChangeStatus, error)

func (*AWSClient) Zones

func (c *AWSClient) Zones() ([]*Zone, error)

type ChangeStatus

type ChangeStatus struct {
	ID          string
	Status      string
	SubmittedAt time.Time
	Comment     string
}

type ELBer

type ELBer interface {
	DescribeLoadBalancersPages(input *elb.DescribeLoadBalancersInput, fn func(p *elb.DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error
}

type LoadBalancer

type LoadBalancer struct {
	Name         string
	HostedZoneID string
}

type Record

type Record struct {
	Name                 string
	DNSName              string
	HostedZoneID         string
	EvaluateTargetHealth bool
}

type Zone

type Zone struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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