general

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package general implements structures with a generalized representation of the DNS server records supported by Beget.

Index

Constants

View Source
const (
	// tag sets a policy for domain single-name and TLS/SSL wildcard certificate issuance
	Issue     = CAATag("issue")
	IssueWild = CAATag("issuewild") // tag sets a policy for domain wildcard certificate issuance
	IoDef     = CAATag("iodef")     // tag sets a policy for S/MIME certificate issuance
)

Values of CAATag

Variables

This section is empty.

Functions

This section is empty.

Types

type AAAARecord

type AAAARecord ARecord

AAAARecord is a representation of a AAAA record. More information can be found in the AAAA Records.

Field ARecord.Address stores the IPv6 address.

type ARecord

type ARecord struct {
	Address string `json:"address"` // IPv4 address.
}

ARecord is a representation of a A record. More information can be found in the A Records.

type CAARecord

type CAARecord struct {
	Flags int64  `json:"flags"` // flags of CAA-record.
	Tag   CAATag `json:"tag"`   // tag of CAA-record.
	Value string `json:"value"` // value of CAA-record.
}

CAARecord is a representation of a CAA record. More information can be found in the CAA Records.

type CAATag

type CAATag string

CAATag is a tag for controlling the issuance of domain name certificates as well S/MIME certificates for CAA record.

type CNAMERecord

type CNAMERecord struct {
	Cname string `json:"cname"` // domain name  for which the alias is set in CNAME-record.
}

CNAMERecord is a representation of a CNAME record. More information can be found in the CNAME Records.

type DNSIPRecord

type DNSIPRecord DNSRecord

DNSIPRecord is a representation of a DNS_IP record. DNSRecord.Value stores the IP address of the DNS server.

type DNSRecord

type DNSRecord struct {
	Value string `json:"value"` // DNS server name
}

DNSRecord is a representation of a DNS record.

type MXRecord

type MXRecord struct {
	Exchange   string `json:"exchange"`   // exchange of MX-record (domain name of the mail server).
	Preference int64  `json:"preference"` // preference of MX-record.
}

MXRecord is a representation of a MX record. More information can be found in the MX Records.

type NSRecord

type NSRecord struct {
	NsdName string `json:"nsdname"` // name of NS server for NS-record.
}

NSRecord is a representation of a NS record. More information can be found in the NS Records.

type SRVRecord

type SRVRecord struct {
	Priority int64  `json:"priority"` // priority of SRV-record.
	Weight   int64  `json:"weight"`   // weight of SRV-record.
	Port     int64  `json:"port"`     // port of SRV-record.
	Target   string `json:"target"`   // target of SRV-record.
}

SRVRecord is a representation of a SVR record. More information can be found in the SVR Records.

Note

Beget supports only tcp protocol and sip service for SRV-record.

type TXTRecord

type TXTRecord struct {
	TxtData string `json:"txtdata"` // text value of TXT-record.
}

TXTRecord is a representation of a TXT record. More information can be found in the TXT Records.

Jump to

Keyboard shortcuts

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