dnsUpdate

package
v0.0.0-...-61061de Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsServiceAdapter

type DnsServiceAdapter interface {
	List(zone string, domain string, recType string) ([]*dns.ResourceRecordSet, error)
	Change(zone string, change *dns.Change) (string, error)
}

type GoogleCloudDns

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

func NewGoogleDns

func NewGoogleDns(projectName string) *GoogleCloudDns

func (*GoogleCloudDns) HasAFor

func (ns *GoogleCloudDns) HasAFor(name string) (bool, error)

func (*GoogleCloudDns) ListRecordsWithName

func (ns *GoogleCloudDns) ListRecordsWithName(name string, recordType string) ([]*dns.ResourceRecordSet, error)

func (*GoogleCloudDns) ListZone

func (ns *GoogleCloudDns) ListZone() ([]*dns.ResourceRecordSet, error)

func (*GoogleCloudDns) SetDefaultTTL

func (ns *GoogleCloudDns) SetDefaultTTL(ttl int)

func (*GoogleCloudDns) SetZone

func (ns *GoogleCloudDns) SetZone(zoneName string)

func (*GoogleCloudDns) UpdateRecord

func (ns *GoogleCloudDns) UpdateRecord(domain string, value string, recordType string) (string, error)

type GoogleServiceAdapter

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

func (*GoogleServiceAdapter) Change

func (gs *GoogleServiceAdapter) Change(zone string, change *dns.Change) (string, error)

func (*GoogleServiceAdapter) List

func (gs *GoogleServiceAdapter) List(zone string, domain string, recType string) ([]*dns.ResourceRecordSet, error)

type NSUpdate

type NSUpdate struct {
	Server     string
	Zone       string
	Domain     string
	DefaultTTL int
	// contains filtered or unexported fields
}

func NewNsUpdater

func NewNsUpdater(binary string) *NSUpdate

func (*NSUpdate) SetDefaultTTL

func (ns *NSUpdate) SetDefaultTTL(ttl int)

func (*NSUpdate) UpdateRecord

func (ns *NSUpdate) UpdateRecord(domain string, ipaddr string, recordType string) (string, error)

type Updater

type Updater interface {
	UpdateRecord(domain string, ipaddr string, addrType string) (string, error)
	SetDefaultTTL(ttl int)
}

func NewUpdater

func NewUpdater(config *config.Config) Updater

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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