Documentation
¶
Overview ¶
Package deleg deals with all the intricacies of the DELEG RR. All the sub-types ([Infos]) used in the RR are defined here. As DELEG is derived from the [dns.SVCB] RR so there are a lot of similarities.
Index ¶
- Constants
- func InfoToKey(i Info) uint16
- func KeyToInfo(k uint16) func() Info
- func KeyToString(k uint16) string
- func Pack(i Info, msg []byte, off int) (int, error)
- func Parse(i Info, b string) error
- func StringToKey(s string) uint16
- func Unpack(i Info, data *cryptobyte.String) error
- type Info
- type SERVERIP4
- type SERVERIP6
Constants ¶
const ( KeyReserved uint16 = 0 KeyServerIP4 uint16 = iota + 1 KeyServerIP6 KeyServerName KeyIncludeName )
Keys as defined in the DELEG draft.
Variables ¶
This section is empty.
Functions ¶
func KeyToString ¶
KeyToString return the string representation for k. For KeyReserved the empty string is returned. For unknown keys "key"+value is returned, see section 2.1 of RFC 9460.
func Pack ¶ added in v0.1.11
Pack converts an info to wire-format. Only exported to make it available to the dns packer.
func StringToKey ¶
StringtoKey is the reverse of KeyToString and takes keyXXXX into account.
Types ¶
type Info ¶ added in v0.1.11
type Info interface { String() string // String returns the string representation of the value. Len() int // Len returns the length of value in the wire format. Copy() Info // Copy returns a deep copy of the Info. }
Info defines a key=value pair for the DELEG/DELEGI RR type. A DELEG RR can have multiple infos appended to it. The numerical key code is derived from the type, see InfoToKey.