Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertAliasToRRSet(alias *dns.PrivateRR) *route53.ResourceRecordSet
- func ConvertBindToRR(record dns.RR) *route53.ResourceRecord
- func ConvertBindToRRSet(records []dns.RR) *route53.ResourceRecordSet
- func ConvertRRSetToBind(rrset *route53.ResourceRecordSet) []dns.RR
- func ListAllRecordSets(r53 *route53.Route53, id string) (rrsets []*route53.ResourceRecordSet, err error)
- func Main(args []string) int
- func NewALIASRdata() dns.PrivateRdata
- func UnexpandSelfAliases(records []dns.RR, zone *route53.HostedZone, full bool)
- type ALIASRdata
- type AWSRR
- type AWSRoute
- type CSVFormatter
- type FailoverRoute
- type Formatter
- type GeoLocationRoute
- type InstanceRecord
- type JlFormatter
- type JsonFormatter
- type Key
- type KeyValues
- type LatencyRoute
- type MultiValueAnswerRoute
- type TableFormatter
- type TextFormatter
- type WeightedRoute
Constants ¶
View Source
const ChangeBatchSize = 100
View Source
const ClassAWS = 253
View Source
const TypeALIAS = 0x0F99
Variables ¶
View Source
var RoutingTypes = map[string]func() AWSRoute{ "FAILOVER": func() AWSRoute { return &FailoverRoute{} }, "GEOLOCATION": func() AWSRoute { return &GeoLocationRoute{} }, "LATENCY": func() AWSRoute { return &LatencyRoute{} }, "WEIGHTED": func() AWSRoute { return &WeightedRoute{} }, "MULTIVALUE": func() AWSRoute { return &MultiValueAnswerRoute{} }, }
Functions ¶
func ConvertAliasToRRSet ¶
func ConvertAliasToRRSet(alias *dns.PrivateRR) *route53.ResourceRecordSet
ConvertAliasToRRSet will convert an alias to a ResourceRecordSet.
func ConvertBindToRR ¶
func ConvertBindToRR(record dns.RR) *route53.ResourceRecord
ConvertBindToRR will convert a DNS record into a route53 ResourceRecord.
func ConvertBindToRRSet ¶
func ConvertBindToRRSet(records []dns.RR) *route53.ResourceRecordSet
ConvertBindToRRSet will convert some DNS records into a route53 ResourceRecordSet. The records should have been previously grouped by matching name, type and (if applicable) identifier.
func ConvertRRSetToBind ¶
func ConvertRRSetToBind(rrset *route53.ResourceRecordSet) []dns.RR
ConvertRRSetToBind will convert a ResourceRecordSet to an array of RR entries
func ListAllRecordSets ¶
func ListAllRecordSets(r53 *route53.Route53, id string) (rrsets []*route53.ResourceRecordSet, err error)
Paginate request to get all record sets.
func NewALIASRdata ¶
func NewALIASRdata() dns.PrivateRdata
func UnexpandSelfAliases ¶
func UnexpandSelfAliases(records []dns.RR, zone *route53.HostedZone, full bool)
Types ¶
type ALIASRdata ¶
func (*ALIASRdata) Copy ¶
func (rd *ALIASRdata) Copy(dest dns.PrivateRdata) error
func (*ALIASRdata) Len ¶
func (rd *ALIASRdata) Len() int
func (*ALIASRdata) Parse ¶
func (rd *ALIASRdata) Parse(txt []string) error
func (*ALIASRdata) String ¶
func (rr *ALIASRdata) String() string
type CSVFormatter ¶
type CSVFormatter struct { }
type FailoverRoute ¶
type FailoverRoute struct {
Failover string
}
func (*FailoverRoute) Parse ¶
func (f *FailoverRoute) Parse(kvs KeyValues)
func (*FailoverRoute) String ¶
func (f *FailoverRoute) String() string
type GeoLocationRoute ¶
func (*GeoLocationRoute) Parse ¶
func (f *GeoLocationRoute) Parse(kvs KeyValues)
func (*GeoLocationRoute) String ¶
func (f *GeoLocationRoute) String() string
type InstanceRecord ¶
type InstanceRecord struct {
// contains filtered or unexported fields
}
type JlFormatter ¶
type JlFormatter struct { }
type JsonFormatter ¶
type JsonFormatter struct { }
type LatencyRoute ¶
type LatencyRoute struct {
Region string
}
func (*LatencyRoute) Parse ¶
func (f *LatencyRoute) Parse(kvs KeyValues)
func (*LatencyRoute) String ¶
func (f *LatencyRoute) String() string
type MultiValueAnswerRoute ¶
type MultiValueAnswerRoute struct { }
func (*MultiValueAnswerRoute) Parse ¶
func (f *MultiValueAnswerRoute) Parse(kvs KeyValues)
func (*MultiValueAnswerRoute) String ¶
func (f *MultiValueAnswerRoute) String() string
type TableFormatter ¶
type TableFormatter struct { }
type TextFormatter ¶
type TextFormatter struct { }
type WeightedRoute ¶
type WeightedRoute struct {
Weight int64
}
func (*WeightedRoute) Parse ¶
func (f *WeightedRoute) Parse(kvs KeyValues)
func (*WeightedRoute) String ¶
func (f *WeightedRoute) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.