Documentation
¶
Index ¶
- type AAAARecord
- type ARecord
- type CNAMERecord
- type DNSKEYRecord
- type DSRecord
- type MXRecord
- type NSRecord
- type RRSIGRecord
- type RecordSet
- type SOARecord
- type SRVRecord
- type TXTRecord
- type Zone
- func (z *Zone) AddAAAARecord(record *AAAARecord)
- func (z *Zone) AddARecord(record *ARecord)
- func (z *Zone) AddCNAMERecord(record *CNAMERecord)
- func (z *Zone) AddDNSKEYRecord(record *DNSKEYRecord)
- func (z *Zone) AddDSRecord(record *DSRecord)
- func (z *Zone) AddMXRecord(record *MXRecord)
- func (z *Zone) AddNSRecord(record *NSRecord)
- func (z *Zone) AddRRSIGRecord(record *RRSIGRecord)
- func (z *Zone) AddSRVRecord(record *SRVRecord)
- func (z *Zone) AddTXTRecord(record *TXTRecord)
- func (z *Zone) EntityID() uint64
- func (z *Zone) RemoveAAAARecord(name string)
- func (z *Zone) RemoveARecord(name string)
- func (z *Zone) RemoveCNAMERecord(name string)
- func (z *Zone) RemoveDNSKEYRecord(name string)
- func (z *Zone) RemoveDSRecord(name string)
- func (z *Zone) RemoveMXRecord(name string)
- func (z *Zone) RemoveNSRecord(name string)
- func (z *Zone) RemoveRRSIGRecord(name string)
- func (z *Zone) RemoveSRVRecord(name string)
- func (z *Zone) RemoveTXTRecord(name string)
- func (z *Zone) SetAAAARecords(records []*AAAARecord)
- func (z *Zone) SetARecords(records []*ARecord)
- func (z *Zone) SetCNAMERecords(records []*CNAMERecord)
- func (z *Zone) SetDNSKEYRecords(records []*DNSKEYRecord)
- func (z *Zone) SetDSRecords(records []*DSRecord)
- func (z *Zone) SetEntityID(id uint64)
- func (z *Zone) SetMXRecords(records []*MXRecord)
- func (z *Zone) SetNSRecords(records []*NSRecord)
- func (z *Zone) SetRRSIGRecords(records []*RRSIGRecord)
- func (z *Zone) SetSOARecord(record SOARecord)
- func (z *Zone) SetSRVRecords(records []*SRVRecord)
- func (z *Zone) SetTXTRecords(records []*TXTRecord)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAAARecord ¶
type CNAMERecord ¶
type DNSKEYRecord ¶
type DNSKEYRecord struct {
Algorithm uint8 `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
Flags uint16 `yaml:"flags" json:"flags" mapstructure:"flags"`
ID uint64 `yaml:"id" json:"id" mapstructure:"id"`
Key string `yaml:"key" json:"key" mapstructure:"key"`
Name string `yaml:"name" json:"name" mapstructure:"name"`
Protocol uint8 `yaml:"protocol" json:"protocol" mapstructure:"protocol"`
TTL uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}
type DSRecord ¶
type DSRecord struct {
Algorithm uint8 `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
Digest string `yaml:"digest" json:"digest" mapstructure:"digest"`
DigestType uint8 `yaml:"digest_type" json:"digest_type" mapstructure:"digest_type"`
ID uint64 `yaml:"id" json:"id" mapstructure:"id"`
KeyTag uint16 `yaml:"key-tag" json:"key_tag" mapstructure:"key_tag"`
Name string `yaml:"name" json:"name" mapstructure:"name"`
TTL uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}
type MXRecord ¶
type MXRecord struct {
Name string `yaml:"name" json:"name" mapstructure:"name"`
Priority uint16 `yaml:"priority" json:"priority" mapstructure:"priority"`
TTL uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
Value string `yaml:"value" json:"value" mapstructure:"value"`
}
type RRSIGRecord ¶
type RRSIGRecord struct {
Algorithm uint8 `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
Expiration string `yaml:"expiration" json:"expiration" mapstructure:"expiration"`
Inception string `yaml:"inception" json:"inception" mapstructure:"inception"`
KeyTag uint16 `yaml:"key-tag" json:"key_tag" mapstructure:"key_tag"`
Labels uint8 `yaml:"labels" json:"labels" mapstructure:"labels"`
OriginalTTL uint32 `yaml:"original-ttl,omitempty" json:"original_ttl,omitempty" mapstructure:"original_ttl,omitempty"`
Signature string `yaml:"signature" json:"signature" mapstructure:"signature"`
SignerName string `yaml:"signer" json:"signer" mapstructure:"signer"`
TypeCovered string `yaml:"type-covered" json:"type_covered" mapstructure:"type_covered"`
}
type RecordSet ¶
type RecordSet struct {
ARecords []*ARecord `yaml:"a,omitempty" json:"a,omitempty" mapstructure:"a,omitempty"`
AAAARecords []*AAAARecord `yaml:"aaaa,omitempty" json:"aaaa,omitempty" mapstructure:"aaaa,omitempty"`
CNAMERecords []*CNAMERecord `yaml:"cname,omitempty" json:"cname,omitempty" mapstructure:"cname,omitempty"`
DNSKEYRecords []*DNSKEYRecord `yaml:"key,omitempty" json:"key,omitempty" mapstructure:"key,omitempty"`
DSRecords []*DSRecord `yaml:"ds,omitempty" json:"ds,omitempty" mapstructure:"ds,omitempty"`
MXRecords []*MXRecord `yaml:"mx,omitempty" json:"mx,omitempty" mapstructure:"mx,omitempty"`
NSRecords []*NSRecord `yaml:"ns,omitempty" json:"ns,omitempty" mapstructure:"ns,omitempty"`
RRSIGRecords []*RRSIGRecord `yaml:"rrsig,omitempty" json:"rrsig,omitempty" mapstructure:"rrsig,omitempty"`
SOARecord SOARecord `yaml:"soa,omitempty" json:"soa,omitempty" mapstructure:"soa,omitempty"`
SRVRecords []*SRVRecord `yaml:"srv,omitempty" json:"srv,omitempty" mapstructure:"srv,omitempty"`
TXTRecords []*TXTRecord `yaml:"txt,omitempty" json:"txt,omitempty" mapstructure:"txt,omitempty"`
}
type SOARecord ¶
type SOARecord struct {
Expire uint32 `yaml:"expire" json:"expire" mapstructure:"expire"`
MName string `yaml:"mname" json:"mname" mapstructure:"mname"`
MinimumTTL uint32 `yaml:"min-ttl,omitempty" json:"min_ttl,omitempty" mapstructure:"min_ttl,omitempty"`
Name string `yaml:"name" json:"name" mapstructure:"name"`
RName string `yaml:"rname" json:"rname" mapstructure:"rname"`
Refresh uint32 `yaml:"refresh" json:"refresh" mapstructure:"refresh"`
Retry uint32 `yaml:"retry" json:"retry" mapstructure:"retry"`
Serial uint32 `yaml:"serial" json:"serial" mapstructure:"serial"`
TTL uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}
type SRVRecord ¶
type SRVRecord struct {
Name string `yaml:"name" json:"name" mapstructure:"name"`
Port uint16 `yaml:"port" json:"port" mapstructure:"port"`
Priority uint16 `yaml:"priority" json:"priority" mapstructure:"priority"`
Target string `yaml:"target" json:"target" mapstructure:"target"`
TTL uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
Weight uint16 `yaml:"weight" json:"weight" mapstructure:"weight"`
}
type Zone ¶
type Zone struct {
ID uint64 `json:"id" yaml:"id" mapstructure:"id"`
Name string `json:"name" yaml:"name" mapstructure:"name"`
TTL uint32 `json:"ttl" yaml:"ttl" mapstructure:"ttl"`
RecordSet RecordSet `json:"records" yaml:"records" mapstructure:"records"`
Description string `json:"description" yaml:"description" mapstructure:"description"`
Internal bool `json:"internal" yaml:"internal" mapstructure:"internal"`
}
func (*Zone) AddAAAARecord ¶
func (z *Zone) AddAAAARecord(record *AAAARecord)
func (*Zone) AddARecord ¶
func (*Zone) AddCNAMERecord ¶
func (z *Zone) AddCNAMERecord(record *CNAMERecord)
func (*Zone) AddDNSKEYRecord ¶
func (z *Zone) AddDNSKEYRecord(record *DNSKEYRecord)
func (*Zone) AddDSRecord ¶
func (*Zone) AddMXRecord ¶
func (*Zone) AddNSRecord ¶
func (*Zone) AddRRSIGRecord ¶
func (z *Zone) AddRRSIGRecord(record *RRSIGRecord)
func (*Zone) AddSRVRecord ¶
func (*Zone) AddTXTRecord ¶
func (*Zone) RemoveAAAARecord ¶
func (*Zone) RemoveARecord ¶
Remove methods by record name
func (*Zone) RemoveCNAMERecord ¶
func (*Zone) RemoveDNSKEYRecord ¶
func (*Zone) RemoveDSRecord ¶
func (*Zone) RemoveMXRecord ¶
func (*Zone) RemoveNSRecord ¶
func (*Zone) RemoveRRSIGRecord ¶
func (*Zone) RemoveSRVRecord ¶
func (*Zone) RemoveTXTRecord ¶
func (*Zone) SetAAAARecords ¶
func (z *Zone) SetAAAARecords(records []*AAAARecord)
AAAARecord methods
func (*Zone) SetCNAMERecords ¶
func (z *Zone) SetCNAMERecords(records []*CNAMERecord)
CNAMERecord methods
func (*Zone) SetDNSKEYRecords ¶
func (z *Zone) SetDNSKEYRecords(records []*DNSKEYRecord)
DNSKEYRecord methods
func (*Zone) SetEntityID ¶
func (*Zone) SetRRSIGRecords ¶
func (z *Zone) SetRRSIGRecords(records []*RRSIGRecord)
RRSIGRecord methods
Click to show internal directories.
Click to hide internal directories.