dns

package
v0.0.0-...-e994816 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package dns defines the DNS service backend interface

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

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

Directories

Path Synopsis
Package godaddy provides a DNS backend via the GoDaddy service
Package godaddy provides a DNS backend via the GoDaddy service

Jump to

Keyboard shortcuts

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