dns

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(provider Provider, dnsDefaultCfg config.DNS,
	staticDomains config.Domains, dockerCli *client.Client) handler

Types

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