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 ExportBindToWriter(r53 *route53.Route53, zone *route53.HostedZone, full bool, out io.Writer)
- func ListAllRecordSets(r53 *route53.Route53, id string) (rrsets []*route53.ResourceRecordSet, err error)
- func Main(args []string) int
- func NewALIAS() dns.PrivateRdata
- func UnexpandSelfAliases(records []dns.RR, zone *route53.HostedZone, full bool)
- type ALIAS
- type AWSRR
- type AWSRoute
- type FailoverRoute
- type GeoLocationRoute
- type Key
- type KeyValues
- type LatencyRoute
- 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{} }, }
Functions ¶
func ConvertAliasToRRSet ¶
func ConvertAliasToRRSet(alias *dns.PrivateRR) *route53.ResourceRecordSet
func ConvertBindToRR ¶
func ConvertBindToRR(record dns.RR) []*route53.ResourceRecord
Convert a DNS record into a route53 ResourceRecord.
func ConvertBindToRRSet ¶
func ConvertBindToRRSet(records []dns.RR) *route53.ResourceRecordSet
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
func ExportBindToWriter ¶
func ListAllRecordSets ¶
func ListAllRecordSets(r53 *route53.Route53, id string) (rrsets []*route53.ResourceRecordSet, err error)
Paginate request to get all record sets.
func NewALIAS ¶
func NewALIAS() dns.PrivateRdata
func UnexpandSelfAliases ¶
func UnexpandSelfAliases(records []dns.RR, zone *route53.HostedZone, full bool)
Types ¶
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 LatencyRoute ¶
type LatencyRoute struct {
Region string
}
func (*LatencyRoute) Parse ¶
func (f *LatencyRoute) Parse(kvs KeyValues)
func (*LatencyRoute) String ¶
func (f *LatencyRoute) String() string
type WeightedRoute ¶
type WeightedRoute struct {
Weight int64
}
func (*WeightedRoute) Parse ¶
func (f *WeightedRoute) Parse(kvs KeyValues)
func (*WeightedRoute) String ¶
func (f *WeightedRoute) String() string
Click to show internal directories.
Click to hide internal directories.