config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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)

func (*Config) Merge

func (c *Config) Merge(o *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

type DelegateGetAllDomainsConfig

type DelegateGetAllDomainsConfig struct {
	Default []*DelegateGetAllDomainsObjectConfig            `json:"default"`
	Entries map[string][]*DelegateGetAllDomainsObjectConfig `json:"entries"`
}

func (*DelegateGetAllDomainsConfig) Merge

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

type DelegateInitializeConfig

type DelegateInitializeConfig struct{}

func (*DelegateInitializeConfig) Merge

type DelegateLookupAAAAConfig

type DelegateLookupAAAAConfig struct {
	Default *string            `json:"default"`
	Entries map[string]*string `json:"entries"`
}

func (*DelegateLookupAAAAConfig) Merge

type DelegateLookupAConfig

type DelegateLookupAConfig struct {
	Default *string            `json:"default"`
	Entries map[string]*string `json:"entries"`
}

func (*DelegateLookupAConfig) Merge

type DelegateLookupCNAMEConfig

type DelegateLookupCNAMEConfig struct {
	Default *string            `json:"default"`
	Entries map[string]*string `json:"entries"`
}

func (*DelegateLookupCNAMEConfig) Merge

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 (*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

type DelegateLookupNSConfig

type DelegateLookupNSConfig struct {
	Default *string            `json:"default"`
	Entries map[string]*string `json:"entries"`
}

func (*DelegateLookupNSConfig) Merge

type DelegateLookupSOAConfig

type DelegateLookupSOAConfig struct {
	Default *DelegateLookupSOAObjectConfig            `json:"default"`
	Entries map[string]*DelegateLookupSOAObjectConfig `json:"entries"`
}

func (*DelegateLookupSOAConfig) Merge

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 (*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

Jump to

Keyboard shortcuts

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