Documentation ¶
Index ¶
- Variables
- type Manager
- func (d *Manager) Delete(ctx context.Context, hostname string) (*dns.Change, error)
- func (d *Manager) Register(ctx context.Context, hostname, ipv4, ipv6 string) (*dns.Change, error)
- func (d *Manager) RegisterZone(ctx context.Context, zone *dns.ManagedZone) (*dns.ManagedZone, error)
- func (d *Manager) RegisterZoneSplit(ctx context.Context, zone *dns.ManagedZone) (*dns.ResourceRecordSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadIPFormat is returned when registering a hostname with a malformed IP. ErrBadIPFormat = errors.New("bad ip format") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager contains state needed for managing DNS recors.
func NewManager ¶
NewManager creates a new Manager instance.
func (*Manager) Register ¶
Register creates a new resource record for hostname with the given ipv4 and ipv6 adresses.
Click to show internal directories.
Click to hide internal directories.