dns

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.2.0

type Handler struct {
	Providers map[string]Provider
	DnsCfg    config.DNS

	LatestDomains config.Domains
	LastUpdate    time.Time
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(providers map[string]Provider, dnsDefaultCfg config.DNS,
	staticDomains config.Domains, dockerCli *client.Client) Handler

func (*Handler) Run added in v0.2.0

func (h *Handler) Run() error

type Provider

type Provider interface {
	List() ([]Record, error)
	Get(name string, recordType string) (Record, error)
	Create(record Record) (Record, error)
	Update(record Record) (Record, error)
	Delete(record Record) error
}

type Record

type Record struct {
	ID      string
	Name    string
	IP      string
	Type    string
	Proxied bool
	TTL     int
}

Jump to

Keyboard shortcuts

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