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 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
Click to show internal directories.
Click to hide internal directories.