package util
import "k8s.io/kubernetes/pkg/dns/util"
Index ¶
- Constants
- func ExtractIP(reverseName string) (string, bool)
- func GetSkyMsg(ip string, port int) (*msg.Service, string)
- func HashServiceRecord(msg *msg.Service) string
- func NewServiceRecord(ip string, port int) *msg.Service
- func ReverseArray(arr []string) []string
Constants ¶
const ( // ArpaSuffix is the standard suffix for PTR IP reverse lookups. ArpaSuffix = ".in-addr.arpa." )
Functions ¶
func ExtractIP ¶
extractIP turns a standard PTR reverse record lookup name into an IP address
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 NewServiceRecord ¶
NewServiceRecord creates a new service DNS message.
func ReverseArray ¶
ReverseArray reverses an array.
Source Files ¶
util.go
- Version
- v1.5.1-beta.0
- Published
- Dec 13, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 minute ago –
Tools for package owners.