dns

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkSync

type BulkSync struct {
	// contains filtered or unexported fields
}

BulkSync struct exists to reducse GCP API requests when running fallback job to check that DNS records exists for all the pods that are supposed to have them

func GetBulker

func GetBulker(client *CloudDNS) *BulkSync

GetBulker returns BulkSync instance with loaded DNS list

func (BulkSync) CheckNext

func (bulk BulkSync) CheckNext(name, owner, ip string)

CheckNext checks next item from loaded DNS records

func (BulkSync) DeleteRemaining

func (bulk BulkSync) DeleteRemaining()

DeleteRemaining deletes all stale records Assumes that bulk.list only has stale records

type CloudDNS

type CloudDNS struct {
	// contains filtered or unexported fields
}

CloudDNS is a wrapper for GCP SDK api to hold relevant conf

func FromJSON

func FromJSON(filePath, zone, project, domain string, shortFormat bool) *CloudDNS

FromJSON creaties DNS client instance with JSON key file

func (CloudDNS) CreateRecord

func (client CloudDNS) CreateRecord(name, owner, ip string)

CreateRecord creates a record

func (CloudDNS) DeleteRecord

func (client CloudDNS) DeleteRecord(name, owner, ip string)

DeleteRecord deletes a record

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL