dnsconfigs

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDNSConfig

type ClusterDNSConfig struct {
	CNAMERecords     []string `yaml:"cnameRecords" json:"cnameRecords"`         // 自动加入的CNAME
	TTL              int32    `yaml:"ttl" json:"ttl"`                           // 默认TTL,各个DNS服务商对记录的TTL的限制各有不同
	CNAMEAsDomain    bool     `yaml:"cnameAsDomain" json:"cnameAsDomain"`       // 是否可以像域名一样直接访问CNAME
	IncludingLnNodes bool     `yaml:"includingLnNodes" json:"includingLnNodes"` // 是否包含Ln节点

	NodesAutoSync   bool `yaml:"nodesAutoSync" json:"nodesAutoSync"`     // 是否自动同步节点状态
	ServersAutoSync bool `yaml:"serversAutoSync" json:"serversAutoSync"` // 是否自动同步服务状态
}

ClusterDNSConfig 集群的DNS设置

func DefaultClusterDNSConfig added in v0.5.6

func DefaultClusterDNSConfig() *ClusterDNSConfig

type DNSResolver added in v1.2.0

type DNSResolver struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Protocol string `json:"protocol"`
}

func (*DNSResolver) Addr added in v1.2.0

func (this *DNSResolver) Addr() string

type RecordType

type RecordType = string
const (
	RecordTypeA     RecordType = "A"
	RecordTypeCNAME RecordType = "CNAME"
	RecordTypeAAAA  RecordType = "AAAA"
	RecordTypeNS    RecordType = "NS"
	RecordTypeMX    RecordType = "MX"
	RecordTypeSRV   RecordType = "SRV"
	RecordTypeTXT   RecordType = "TXT"
	RecordTypeCAA   RecordType = "CAA"
	RecordTypeSOA   RecordType = "SOA"
)

type RecordTypeDefinition

type RecordTypeDefinition struct {
	Type        RecordType `json:"type"`
	Description string     `json:"description"`
	CanDefine   bool       `json:"canDefine"` // 用户是否可以自定义
}

func FindAllRecordTypeDefinitions

func FindAllRecordTypeDefinitions() []*RecordTypeDefinition

func FindAllUserRecordTypeDefinitions added in v0.5.3

func FindAllUserRecordTypeDefinitions() []*RecordTypeDefinition

Jump to

Keyboard shortcuts

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