dns

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dns contains DNS related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsServiceURL

func IsServiceURL(serviceURL string) bool

IsServiceURL returns true if the give url complies with the service url format.

func ParseServiceURL

func ParseServiceURL(serviceURL string) (string, string, int, error)

ParseServiceURL takes a serviceURL and parses it to find the service info for connecting to the cluster. The string is expected to follow the following format: Example serviceURL: http://{SERVICE_NAME}.{NAMESPACE}.svc.cluster.local:{PORT}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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