dns

package
Version: v0.0.0-...-7bf3b00 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Get a record via a DNS backend
	Get(domain, name string, typ RType) (string, error)

	// Upsert a record into a DNS backend
	Upsert(domain, name, data string, typ RType) error

	// DefaultDomainName returns the default domain name
	DefaultDomainName() string

	// DefaultRecordName returns the default record name
	DefaultRecordName() string

	// DefaultRecordTTL returns the default record ttl
	DefaultRecordTTL() int

	// AccessKey provides a method to set an API access key
	AccessKey(string)

	// SecretKey provides a method to set an API secret key
	SecretKey(string)
}

Backend defines the DNS registry backend interface

var Default Backend

Default represents the default DNS registry backend

type RType

type RType string

RType represents a dns record type

const A RType = "A"

A record constant

const AAAA RType = "AAAA"

AAAA record constant flag

func (RType) String

func (r RType) String() string

String implements the stringer interface

Source Files

Directories

Path Synopsis

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