Documentation ¶
Index ¶
- Constants
- Variables
- func NewHandler(config *provider.DNSHandlerConfig) (provider.DNSHandler, error)
- type Change
- type Execution
- 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
Constants ¶
View Source
const TYPE_CODE = "openstack-designate"
Variables ¶
View Source
var Factory = provider.NewDNSHandlerFactory(TYPE_CODE, NewHandler). SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.SetRateLimiterOptions(rateLimiterDefaults))
Functions ¶
func NewHandler ¶
func NewHandler(config *provider.DNSHandlerConfig) (provider.DNSHandler, error)
NewHandler constructs a new DNSHandler object.
Types ¶
type Change ¶
type Change struct { Done provider.DoneHandler // contains filtered or unexported fields }
type Execution ¶
type Execution struct { logger.LogContext // contains filtered or unexported fields }
func NewExecution ¶
func NewExecution(logger logger.LogContext, h *Handler, zone provider.DNSHostedZone) *Execution
type Handler ¶
type Handler struct { provider.DefaultDNSHandler // contains filtered or unexported fields }
Handler is the main DNSHandler struct.
func (*Handler) ExecuteRequests ¶
func (h *Handler) ExecuteRequests(logger logger.LogContext, zone provider.DNSHostedZone, state provider.DNSZoneState, reqs []*provider.ChangeRequest) error
ExecuteRequests applies a given change request to a given hosted zone.
func (*Handler) GetZoneState ¶
func (h *Handler) GetZoneState(zone provider.DNSHostedZone) (provider.DNSZoneState, error)
GetZoneState returns the state for a given zone.
func (*Handler) GetZones ¶
func (h *Handler) GetZones() (provider.DNSHostedZones, error)
GetZones returns a list of hosted zones from the cache.
func (*Handler) ReportZoneStateConflict ¶
func (h *Handler) ReportZoneStateConflict(zone provider.DNSHostedZone, err error) bool
Click to show internal directories.
Click to hide internal directories.