rvcodns package - code.pfad.fr/rvcodns

package rvcodns provides a Go client for [Release Version Check over DNS (RVCoDNS)].

Release Version Check over DNS (RVCoDNS)

Example

Variables

DefaultResolver is the resolver used by the package-level LookupRelease function.

Functions

func DKIMQuotedPrintableEncode

DKIMQuotedPrintableEncode encodes a strings as a [DKIM-Quoted-Printable (RFC 6376)] string.

DKIM-Quoted-Printable (RFC 6376)

See [Value.String] for decoding.

Types

type Release

Release represents a release record

func LookupReleases

LookupReleases looks up and parses supported releases by DNS-querying _release.{domain}

LookupReleases uses context.Background internally; to specify the context, use [Resolver.LookupReleases].

func Parse

Parse parses a DNS records into a [Release]

type Resolver

Resolver allows to specify the LookupTXT function to use (usually [net.DefaultResolver.LookupTXT])

net.DefaultResolver.LookupTXT

func (Resolver) LookupReleases

LookupReleases looks up and parses supported releases by querying the DNS TXT "_release.{domain}" records.

type Tag

Tag represents a key-value tag pair of the DNS record

type Value

Value represents a raw DNS value. Use [Value.String] to get the decoded value.

func (Value) String

String parses the value as a [DKIM-Quoted-Printable (RFC 6376)] string. It removes whitespaces and decodes hex-octets "=XX".

DKIM-Quoted-Printable (RFC 6376)

See [DKIMQuotedPrintableEncode] for encoding.

Files

encoding.go

parse.go

rvcodns.go

Directories

cmd/dkim-encode-pairs

dkim-encode-pairs endodes key-value pairs for usage in [Release Version Check over DNS (RVCoDNS)].

cmd/get-releases

get-releases retrieves and prints out the currently supported releases using [Release Version Check over DNS (RVCoDNS)].

Forge

https://codeberg.org/pfad.fr/rvcodns

git clone