validators

package
v0.0.0-...-2ef21d1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package validators implement validators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidHostname

func IsValidHostname(hostnamePath string) bool

IsValidHostname checks if the given hostnameis valid.

func IsValidHostnamePort

func IsValidHostnamePort(hostnamePath string) bool

IsValidHostnamePort checks if the given hostname port is valid.

func IsValidPath

func IsValidPath(path string) bool

IsValidPath checks if the given path is valid.

func IsValidPort

func IsValidPort(port int) bool

IsValidPort checks if the given port is valid.

func ValidateInstance

func ValidateInstance(s any) (bool, error)

ValidateInstance validates the input instance.

func ValidateSimpleName

func ValidateSimpleName(name string) bool

ValidateSimpleName validates a simple name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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