local

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE_CODE = "local"

Variables

View Source
var Factory = provider.NewDNSHandlerFactory(NewHandler, &adapter{}).
	SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.SetRateLimiterOptions(rateLimiterDefaults))
View Source
var TestMock = map[string]*provider.InMemory{}

TestMock allows tests to access mocked DNSHosted Zones

Functions

func NewHandler

func NewHandler(config *provider.DNSHandlerConfig) (provider.DNSHandler, error)

Types

type Handler

type Handler struct {
	provider.DefaultDNSHandler
	// contains filtered or unexported fields
}

func (*Handler) ExecuteRequests

func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, state provider.DNSZoneState, reqs []*provider.ChangeRequest) error

func (*Handler) GetZoneState

func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)

func (*Handler) GetZones

func (h *Handler) GetZones() (provider.DNSHostedZones, error)

func (*Handler) Release

func (h *Handler) Release()

type MockConfig

type MockConfig struct {
	Name            string     `json:"name"`
	Zones           []MockZone `json:"zones"`
	FailGetZones    bool       `json:"failGetZones"`
	FailDeleteEntry bool       `json:"failDeleteEntry"`
	LatencyMillis   int        `json:"latencyMillis"`
	DisableCache    bool       `json:"disableCache"`
}

type MockZone

type MockZone struct {
	ZonePrefix string `json:"zonePrefix"`
	DNSName    string `json:"dnsName"`
}

func (MockZone) ZoneID

func (m MockZone) ZoneID() dns.ZoneID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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