Documentation ¶
Index ¶
- Constants
- Variables
- func NewHandler(config *provider.DNSHandlerConfig) (provider.DNSHandler, error)
- type Handler
- func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, ...) error
- func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)
- func (h *Handler) GetZones() (provider.DNSHostedZones, error)
- func (h *Handler) Release()
- func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool
- type MockConfig
- type MockZone
Constants ¶
View Source
const TYPE_CODE = "mock-inmemory"
Variables ¶
View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler). 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) ReportZoneStateConflict ¶
func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool
type MockConfig ¶
Click to show internal directories.
Click to hide internal directories.