Version: v0.0.0-...-58a129c Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0



Package gcp provides helper functions for connecting to the Cloud DNS API and for handling Cloud DNS-specific data types



This section is empty.


This section is empty.


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

func GetDNSService(gcpSAFile string, readonly bool) (*clouddns.Service, string, error)

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

func RemoveDuplicatesFromChange(change *clouddns.Change)

RemoveDuplicatesFromChange compresses a CloudDNS change by removing deletions and additions that would cancel each other out


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL