Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSignatureMessage(method string, host string, requestUrl *url.URL) ([]byte, ed25519.PublicKey, int64, error)
- func CreateSignatureMessage(method string, host string, requestUrl *url.URL, privateKey ed25519.PrivateKey, ...) (*url.URL, error)
- func DecodePrivateKey(buf string) ed25519.PrivateKey
- func DecodeTorPrivateKey(key string) ed25519.PrivateKey
- func PublicKeyToOnionV3(publicKey ed25519.PublicKey) string
- func VerifySignatureMessage(method string, host string, requestUrl *url.URL) (ed25519.PublicKey, error)
- type Client
- type RRSet
- func (s RRSet) Delete(rrt uint16, name string)
- func (s RRSet) Encode() (result []byte, err error)
- func (s RRSet) Get(rrt uint16, name string) (rrset RRSet)
- func (s RRSet) NotNil() (result RRSet)
- func (s RRSet) OnlyTypes(allow ...uint16) (result RRSet)
- func (s RRSet) RemoveTypes(disallow ...uint16) (result RRSet)
- func (s RRSet) SplitByName() (result []RRSet)
- func (s RRSet) SplitByType() (result []RRSet)
- type Zone
- func (z *Zone) AddMissingRecords()
- func (z *Zone) AddRR(rr dns.RR) error
- func (z *Zone) AddRecord(name string, ttl uint32, rr dns.RR) error
- func (z *Zone) AddRecordA(name string, ip net.IP, ttl uint32) error
- func (z *Zone) AddRecordAAAA(name string, ip net.IP, ttl uint32) error
- func (z *Zone) AddRecordCAA(name string, flag uint8, tag, value string, ttl uint32) error
- func (z *Zone) AddRecordCNAME(name string, target string, ttl uint32) error
- func (z *Zone) AddRecordHTTPS(name string, priority uint16, target string, value []dns.SVCBKeyValue, ...) error
- func (z *Zone) AddRecordMX(name string, preference uint16, mx string, ttl uint32) error
- func (z *Zone) AddRecordNS(name string, ns string, ttl uint32) error
- func (z *Zone) AddRecordSOA(name string, ns, mbox string, ...) error
- func (z *Zone) AddRecordSSHFP(name string, algorithm, ktype uint8, fingerprint string, ttl uint32) error
- func (z *Zone) AddRecordSVCB(name string, priority uint16, target string, value []dns.SVCBKeyValue, ...) error
- func (z *Zone) AddRecordTLSA(name string, usage, selector, matchingType uint8, certificate string, ...) error
- func (z *Zone) AddRecordTXT(name string, txt []string, ttl uint32) error
- func (z *Zone) AddZoneAlias(alias string)
- func (z *Zone) BaseZoneName() string
- func (z *Zone) DNSKEY() *dns.DNSKEY
- func (z *Zone) DeleteRR(rrtype string, name string) error
- func (z *Zone) GetEnforcedEntries() RRSet
- func (z *Zone) GetFullName(name string) string
- func (z *Zone) GetGlueRecords() (result RRSet)
- func (z *Zone) GetRR(rrtype string, name string) (rrset RRSet)
- func (z *Zone) GetRRSet() RRSet
- func (z *Zone) IsInZone(n string) bool
- func (z *Zone) Name() string
- func (z *Zone) PubKey() ed25519.PublicKey
- func (z *Zone) SetEnforcedEntries(set RRSet)
- func (z *Zone) SetRR(rrtype string, name string, rrset RRSet) error
- func (z *Zone) Sign() (zones []*Zone, err error)
- func (z *Zone) SignRRSet(rrset RRSet) (*dns.RRSIG, error)
Constants ¶
View Source
const ( ExpirationTimeNever = 0 KeyPublicKey = "k" KeyExpiration = "x" KeySignature = "s" )
Variables ¶
View Source
var TopLevelCNAMEError = errors.New("top-level CNAME not allowed")
Functions ¶
func BuildSignatureMessage ¶
func CreateSignatureMessage ¶
func DecodePrivateKey ¶
func DecodePrivateKey(buf string) ed25519.PrivateKey
func DecodeTorPrivateKey ¶
func DecodeTorPrivateKey(key string) ed25519.PrivateKey
func PublicKeyToOnionV3 ¶
Types ¶
type Client ¶
type Client struct { RequestExpirationTime time.Duration // contains filtered or unexported fields }
type RRSet ¶
func DecodeRRSet ¶
func (RRSet) RemoveTypes ¶
func (RRSet) SplitByName ¶
func (RRSet) SplitByType ¶
type Zone ¶
type Zone struct {
// contains filtered or unexported fields
}
func NewZoneFromPrivateKey ¶
func NewZoneFromPrivateKey(baseZone string, privateKey ed25519.PrivateKey) *Zone
func NewZoneFromPublicKey ¶
func (*Zone) AddMissingRecords ¶
func (z *Zone) AddMissingRecords()
func (*Zone) AddRecordCAA ¶
func (*Zone) AddRecordCNAME ¶
func (*Zone) AddRecordHTTPS ¶
func (*Zone) AddRecordMX ¶
func (*Zone) AddRecordSOA ¶
func (*Zone) AddRecordSSHFP ¶
func (*Zone) AddRecordSVCB ¶
func (*Zone) AddRecordTLSA ¶
func (*Zone) AddRecordTXT ¶
func (*Zone) AddZoneAlias ¶
func (*Zone) BaseZoneName ¶
func (*Zone) GetEnforcedEntries ¶
func (*Zone) GetFullName ¶
func (*Zone) GetGlueRecords ¶
func (*Zone) SetEnforcedEntries ¶
Click to show internal directories.
Click to hide internal directories.