yamldb

package
v0.0.0-...-4b3913f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAMLDB

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

func New

func New(log *zap.SugaredLogger) (*YAMLDB, error)

func (*YAMLDB) DumpAllRecords

func (db *YAMLDB) DumpAllRecords() map[string]map[string][]schema.DNSRecord

func (*YAMLDB) GetRootDomainFor

func (db *YAMLDB) GetRootDomainFor(s string) (string, error)

func (*YAMLDB) List

func (db *YAMLDB) List(q schema.QueryList) ([]schema.DNSRecord, error)

func (*YAMLDB) ListDomains

func (db *YAMLDB) ListDomains(disabled bool) ([]schema.DNSDomain, error)

func (*YAMLDB) LoadDir

func (db *YAMLDB) LoadDir(dir string) error

func (*YAMLDB) LoadFile

func (db *YAMLDB) LoadFile(file string) error

TODO figure out how to handle errornous records without failing whole reload

func (*YAMLDB) Lookup

func (db *YAMLDB) Lookup(q schema.QueryLookup) ([]schema.DNSRecord, error)

func (*YAMLDB) UpdateDir

func (db *YAMLDB) UpdateDir(dir string) error

Jump to

Keyboard shortcuts

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