Documentation ¶
Index ¶
- Constants
- Variables
- type AWSClient
- func (c *AWSClient) FindLoadBalancer(dnsName string) (*LoadBalancer, error)
- func (c *AWSClient) FindRecord(zone *Zone, alias string) (*Record, error)
- func (c *AWSClient) FindZone(name string) (*Zone, error)
- func (c *AWSClient) GetChangeStatus(id string) (*ChangeStatus, error)
- func (c *AWSClient) LoadBalancers() ([]*LoadBalancer, error)
- func (c *AWSClient) RemoveAlias(zone *Zone, alias string) (*ChangeStatus, error)
- func (c *AWSClient) SetAlias(zone *Zone, hzid, elbDnsName, alias string) (*ChangeStatus, error)
- func (c *AWSClient) Zones() ([]*Zone, error)
- type ChangeStatus
- type ELBer
- type LoadBalancer
- type Record
- type Route53er
- type Zone
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 (*AWSClient) FindLoadBalancer ¶
func (c *AWSClient) FindLoadBalancer(dnsName string) (*LoadBalancer, error)
func (*AWSClient) FindRecord ¶
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)
type ChangeStatus ¶
type ELBer ¶
type ELBer interface {
DescribeLoadBalancersPages(input *elb.DescribeLoadBalancersInput, fn func(p *elb.DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error
}
type LoadBalancer ¶
type Route53er ¶
type Route53er interface { ListHostedZonesPages(*route53.ListHostedZonesInput, func(*route53.ListHostedZonesOutput, bool) bool) error ChangeResourceRecordSets(input *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error) ListResourceRecordSetsPages(*route53.ListResourceRecordSetsInput, func(*route53.ListResourceRecordSetsOutput, bool) bool) error GetChange(*route53.GetChangeInput) (*route53.GetChangeOutput, error) }
Click to show internal directories.
Click to hide internal directories.