azuredns

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package azuredns provides an in-memory mock implementation of Azure DNS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

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

Mock is an in-memory mock implementation of the Azure DNS service.

func New

func New(opts *config.Options) *Mock

New creates a new Azure DNS mock with the given configuration options.

func (*Mock) CreateRecord

func (m *Mock) CreateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)

CreateRecord creates a new DNS record set in the specified zone.

func (*Mock) CreateZone

func (m *Mock) CreateZone(_ context.Context, cfg driver.ZoneConfig) (*driver.ZoneInfo, error)

CreateZone creates a new Azure DNS zone.

func (*Mock) DeleteRecord

func (m *Mock) DeleteRecord(_ context.Context, zoneID, name, recordType string) error

DeleteRecord deletes a DNS record set from the specified zone.

func (*Mock) DeleteZone

func (m *Mock) DeleteZone(_ context.Context, id string) error

DeleteZone deletes an Azure DNS zone by ID.

func (*Mock) GetRecord

func (m *Mock) GetRecord(_ context.Context, zoneID, name, recordType string) (*driver.RecordInfo, error)

GetRecord retrieves a DNS record set from the specified zone.

func (*Mock) GetZone

func (m *Mock) GetZone(_ context.Context, id string) (*driver.ZoneInfo, error)

GetZone retrieves an Azure DNS zone by ID.

func (*Mock) ListRecords

func (m *Mock) ListRecords(_ context.Context, zoneID string) ([]driver.RecordInfo, error)

ListRecords returns all DNS record sets for the specified zone.

func (*Mock) ListZones

func (m *Mock) ListZones(_ context.Context) ([]driver.ZoneInfo, error)

ListZones returns all Azure DNS zones.

func (*Mock) UpdateRecord

func (m *Mock) UpdateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)

UpdateRecord updates an existing DNS record set in the specified zone.

Jump to

Keyboard shortcuts

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