Documentation
¶
Index ¶
- type Config
- type ConnectorConfig
- type DelegateConfig
- type DelegateGetAllDomainMetadataConfig
- type DelegateGetAllDomainsConfig
- type DelegateGetAllDomainsObjectConfig
- type DelegateInitializeConfig
- type DelegateLookupAAAAConfig
- type DelegateLookupAConfig
- type DelegateLookupCNAMEConfig
- type DelegateLookupConfig
- type DelegateLookupDNAMEConfig
- type DelegateLookupNSConfig
- type DelegateLookupSOAConfig
- type DelegateLookupSOAObjectConfig
- type DelegateLookupTXTConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Connector *ConnectorConfig `json:"connector"` Delegates []*DelegateConfig `json:"delegates"` }
func GetDefaultConfig ¶
func GetDefaultConfig() (defaults Config)
type ConnectorConfig ¶
type ConnectorConfig struct { Type *string `json:"type"` Host *string `json:"host"` Port *uint16 `json:"port"` }
func (*ConnectorConfig) Merge ¶
func (c *ConnectorConfig) Merge(o *ConnectorConfig)
type DelegateConfig ¶
type DelegateConfig struct { Domain *string `json:"domain"` TTL *uint32 `json:"ttl"` Initialize *DelegateInitializeConfig `json:"initialize"` Lookup *DelegateLookupConfig `json:"lookup"` GetAllDomains *DelegateGetAllDomainsConfig `json:"getAllDomains"` GetAllDomainMetadata *DelegateGetAllDomainMetadataConfig `json:"getAllDomainMetadata"` }
func (*DelegateConfig) AsMap ¶
func (delegateConfig *DelegateConfig) AsMap() (settings map[string]interface{}, err error)
func (*DelegateConfig) Merge ¶
func (d *DelegateConfig) Merge(o *DelegateConfig)
type DelegateGetAllDomainMetadataConfig ¶
type DelegateGetAllDomainMetadataConfig struct { Default []map[string][]*string `json:"default"` Entries map[string][]map[string][]*string `json:"entries"` }
func (*DelegateGetAllDomainMetadataConfig) Merge ¶
func (d *DelegateGetAllDomainMetadataConfig) Merge(o *DelegateGetAllDomainMetadataConfig)
type DelegateGetAllDomainsConfig ¶
type DelegateGetAllDomainsConfig struct { Default []*DelegateGetAllDomainsObjectConfig `json:"default"` Entries map[string][]*DelegateGetAllDomainsObjectConfig `json:"entries"` }
func (*DelegateGetAllDomainsConfig) Merge ¶
func (d *DelegateGetAllDomainsConfig) Merge(o *DelegateGetAllDomainsConfig)
type DelegateGetAllDomainsObjectConfig ¶
type DelegateGetAllDomainsObjectConfig struct { Id *uint32 `json:"id"` Masters *[]string `json:"masters"` NotifiedSerial *uint32 `json:"notifiedSerial"` Serial *uint32 `json:"serial"` LastCheck *uint32 `json:"lastCheck"` Kind *string `json:"kind"` }
func (*DelegateGetAllDomainsObjectConfig) Merge ¶
func (d *DelegateGetAllDomainsObjectConfig) Merge(o *DelegateGetAllDomainsObjectConfig)
type DelegateInitializeConfig ¶
type DelegateInitializeConfig struct{}
func (*DelegateInitializeConfig) Merge ¶
func (*DelegateInitializeConfig) Merge(_ *DelegateInitializeConfig)
type DelegateLookupAAAAConfig ¶
type DelegateLookupAAAAConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupAAAAConfig) Merge ¶
func (d *DelegateLookupAAAAConfig) Merge(o *DelegateLookupAAAAConfig)
type DelegateLookupAConfig ¶
type DelegateLookupAConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupAConfig) Merge ¶
func (d *DelegateLookupAConfig) Merge(o *DelegateLookupAConfig)
type DelegateLookupCNAMEConfig ¶
type DelegateLookupCNAMEConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupCNAMEConfig) Merge ¶
func (d *DelegateLookupCNAMEConfig) Merge(o *DelegateLookupCNAMEConfig)
type DelegateLookupConfig ¶
type DelegateLookupConfig struct { SOA *DelegateLookupSOAConfig `json:"soa"` A *DelegateLookupAConfig `json:"a"` AAAA *DelegateLookupAAAAConfig `json:"aaaa"` NS *DelegateLookupNSConfig `json:"ns"` CNAME *DelegateLookupNSConfig `json:"cname"` DNAME *DelegateLookupNSConfig `json:"dname"` TXT *DelegateLookupTXTConfig `json:"txt"` Resolvers *[]string `json:"resolvers"` }
func (*DelegateLookupConfig) Merge ¶
func (d *DelegateLookupConfig) Merge(o *DelegateLookupConfig)
func (*DelegateLookupConfig) MergeResolvers ¶
func (d *DelegateLookupConfig) MergeResolvers(o *DelegateLookupConfig)
type DelegateLookupDNAMEConfig ¶
type DelegateLookupDNAMEConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupDNAMEConfig) Merge ¶
func (d *DelegateLookupDNAMEConfig) Merge(o *DelegateLookupDNAMEConfig)
type DelegateLookupNSConfig ¶
type DelegateLookupNSConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupNSConfig) Merge ¶
func (d *DelegateLookupNSConfig) Merge(o *DelegateLookupNSConfig)
type DelegateLookupSOAConfig ¶
type DelegateLookupSOAConfig struct { Default *DelegateLookupSOAObjectConfig `json:"default"` Entries map[string]*DelegateLookupSOAObjectConfig `json:"entries"` }
func (*DelegateLookupSOAConfig) Merge ¶
func (d *DelegateLookupSOAConfig) Merge(o *DelegateLookupSOAConfig)
type DelegateLookupSOAObjectConfig ¶
type DelegateLookupSOAObjectConfig struct { MNAME *string `json:"mname"` RNAME *string `json:"rname"` SERIAL *uint32 `json:"serial"` REFRESH *uint32 `json:"refresh"` RETRY *uint32 `json:"retry"` EXPIRE *uint32 `json:"expire"` TTL *uint32 `json:"ttl"` }
func (*DelegateLookupSOAObjectConfig) Content ¶
func (soaObjectConfig *DelegateLookupSOAObjectConfig) Content(ttl uint32) string
func (*DelegateLookupSOAObjectConfig) Merge ¶
func (d *DelegateLookupSOAObjectConfig) Merge(o *DelegateLookupSOAObjectConfig)
func (*DelegateLookupSOAObjectConfig) Serial ¶
func (soaObjectConfig *DelegateLookupSOAObjectConfig) Serial() (serial string)
type DelegateLookupTXTConfig ¶
type DelegateLookupTXTConfig struct { Default *string `json:"default"` Entries map[string]*string `json:"entries"` }
func (*DelegateLookupTXTConfig) Merge ¶
func (d *DelegateLookupTXTConfig) Merge(o *DelegateLookupTXTConfig)
Click to show internal directories.
Click to hide internal directories.