kubernetesk8s.io/kubernetes/pkg/dns/util Index | Files

package util

import "k8s.io/kubernetes/pkg/dns/util"

Index

Constants

const (
	// ArpaSuffix is the standard suffix for PTR IP reverse lookups.
	ArpaSuffix = ".in-addr.arpa."
)

Functions

func ExtractIP

func ExtractIP(reverseName string) (string, bool)

extractIP turns a standard PTR reverse record lookup name into an IP address

func GetSkyMsg

func GetSkyMsg(ip string, port int) (*msg.Service, string)

Returns record in a format that SkyDNS understands. Also return the hash of the record.

func HashServiceRecord

func HashServiceRecord(msg *msg.Service) string

HashServiceRecord hashes the string representation of a DNS message.

func NewServiceRecord

func NewServiceRecord(ip string, port int) *msg.Service

NewServiceRecord creates a new service DNS message.

func ReverseArray

func ReverseArray(arr []string) []string

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.