zone

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNSKEY_PROTOCOL = 3
)

Variables

View Source
var WithDNSSEC = func(algo SigningAlgorithm, nsec NextSecure) ZoneOption {
	return func(z *Zone) {
		z.dnssecEnabled = true
		z.signingAlgorithm = algo
	}
}
View Source
var WithDefaultTTL = func(ttl uint32) ZoneOption {
	return func(z *Zone) {
		z.defaultTTL = ttl
	}
}

Functions

func IndexDomain

func IndexDomain(a, b string) bool

func IndexDomainJSON

func IndexDomainJSON(path string) func(a, b string) bool

Types

type NextSecure

type NextSecure uint8
const (
	NSEC NextSecure = iota
	NSEC3
)

type Serial

type Serial uint32

func (Serial) Add

func (s Serial) Add(other Serial) Serial

func (Serial) Equal

func (s Serial) Equal(other Serial) bool

func (Serial) GreaterThan

func (s Serial) GreaterThan(other Serial) bool

func (Serial) Increment

func (s Serial) Increment() Serial

func (Serial) LessThan

func (s Serial) LessThan(other Serial) bool

func (Serial) Subtract

func (s Serial) Subtract(other Serial) Serial

type Zone

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

func New

func New(name, ns, mail string, opts ...ZoneOption) (*Zone, error)

func (*Zone) Add

func (z *Zone) Add(rr mindnspb.ProtoRR) error

func (*Zone) Get

func (z *Zone) Get(query mindnspb.ProtoRR) []mindnspb.ProtoRR

func (*Zone) GetDS

func (z *Zone) GetDS() *dns.DS

type ZoneList

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

func NewZoneList

func NewZoneList() *ZoneList

func (*ZoneList) Add

func (zl *ZoneList) Add(z *Zone)

func (*ZoneList) Get

func (zl *ZoneList) Get(domain string) (*Zone, error)

func (*ZoneList) Remove

func (zl *ZoneList) Remove(domain string)

type ZoneOption

type ZoneOption func(*Zone)

Jump to

Keyboard shortcuts

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