Documentation ¶
Overview ¶
Package gcp provides helper functions for connecting to the Cloud DNS API and for handling Cloud DNS-specific data types
Index ¶
- func FilterRRSets(rrsets []*clouddns.ResourceRecordSet, fqdn string) []*clouddns.ResourceRecordSet
- func FormatRRSets(rrsets []*clouddns.ResourceRecordSet) []string
- func GetDNSService(gcpSAFile string, readonly bool) (*clouddns.Service, string, error)
- func RRDBRecordsToCloudDNSRecords(in []*rrdb.Record) []*clouddns.ResourceRecordSet
- func RemoveDuplicatesFromChange(change *clouddns.Change)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRRSets ¶
func FilterRRSets(rrsets []*clouddns.ResourceRecordSet, fqdn string) []*clouddns.ResourceRecordSet
FilterRRSets removes resource record sets that must not be managed by dns-tools from a list. This is a safeguard.
func FormatRRSets ¶
func FormatRRSets(rrsets []*clouddns.ResourceRecordSet) []string
FormatRRSets formats a resource record set in a human readable way and returns a slice of strings that can be used for printing to screen or log
func GetDNSService ¶
GetDNSService creates a CloudDNS API service from a service account file
func RRDBRecordsToCloudDNSRecords ¶
func RRDBRecordsToCloudDNSRecords(in []*rrdb.Record) []*clouddns.ResourceRecordSet
RRDBRecordsToCloudDNSRecords converts RRDB records to CloudDNS records (type: ResourceRecordSet)
func RemoveDuplicatesFromChange ¶
RemoveDuplicatesFromChange compresses a CloudDNS change by removing deletions and additions that would cancel each other out
Types ¶
This section is empty.