rainbond: github.com/goodrain/rainbond/util/endpoint Index | Files

package validation

import "github.com/goodrain/rainbond/util/endpoint"


Package Files


func SplitEndpointAddress Uses

func SplitEndpointAddress(resourceAddress string) (address string)

SplitEndpointAddress split URL to domain or IP

func ValidateDomain Uses

func ValidateDomain(domain string) []string

ValidateDomain tests that the argument is a valid domain.

func ValidateEndpointAddress Uses

func ValidateEndpointAddress(address string) []string

ValidateEndpointAddress tests that the argument is a valid endpoint address.

func ValidateEndpointIP Uses

func ValidateEndpointIP(ipAddress string) []string

ValidateEndpointIP tests that the argument is a valid IP address.

Package validation imports 4 packages (graph) and is imported by 1 packages. Updated 2019-10-15. Refresh now. Tools for package owners.