Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) ChangeRecordSets(upsert, del, create []*route53.ResourceRecordSet, zoneID string) error
- func (c *Client) EndpointsToAlias(endpoints []*pkg.Endpoint) ([]*route53.ResourceRecordSet, error)
- func (c *Client) GetAssignedTXTRecordObject(r *route53.ResourceRecordSet) *route53.ResourceRecordSet
- func (c *Client) GetGroupID() string
- func (c *Client) GetHostedZones() (map[string]string, error)
- func (c *Client) ListRecordSets(zoneID string) ([]*route53.ResourceRecordSet, error)
- func (c *Client) RecordInfo(records []*route53.ResourceRecordSet) map[string]*pkg.RecordInfo
- type GetLoadBalancerFunc
- type LoadBalancer
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidAWSResponse = errors.New("invalid AWS response")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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
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 ¶
GetGroupID returns the idenitifier for AWS records as stored in TXT records
func (*Client) GetHostedZones ¶ added in v0.3.0
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
LoadBalancer struct to aggregate ELB and ALB with extracted DNSName and its canonical hosted zone id