Documentation ¶
Index ¶
- Constants
- func ExtractIP(reverseName string) (string, error)
- func GetClusterIPs(service *corev1.Service) []string
- func GetSkyMsg(ip string, port int) (*msg.Service, string)
- func HashServiceRecord(msg *msg.Service) string
- func IsServiceIPSet(service *corev1.Service) bool
- func NewServiceRecord(ip string, port int) *msg.Service
- func ReverseArray(arr []string) []string
- func ValidateNameserverIpAndPort(nameServer string) (string, string, error)
Constants ¶
View Source
const ( // ArpaSuffix is the standard suffix for PTR IP reverse lookups. ArpaSuffix = ".in-addr.arpa." // ArpaSuffixV6 is the suffix for PTR IPv6 reverse lookups. ArpaSuffixV6 = ".ip6.arpa." )
Variables ¶
This section is empty.
Functions ¶
func ExtractIP ¶
ExtractIP turns a standard PTR reverse record lookup name into an IP address Returns "", error if the reverseName is not a valid PTR lookup name
func GetClusterIPs ¶
GetClusterIPs returns IPs set for the service
func GetSkyMsg ¶
Returns record in a format that SkyDNS understands. Also return the hash of the record.
func HashServiceRecord ¶
HashServiceRecord hashes the string representation of a DNS message.
func IsServiceIPSet ¶
IsServiceIPSet aims to check if the service's ClusterIP is set or not the objective is not to perform validation here
func NewServiceRecord ¶
NewServiceRecord creates a new service DNS message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.