validation

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHost

func ValidateHost(name, hostname, port, identity string) error

ValidateHost validates all host fields

func ValidateHostName

func ValidateHostName(name string) bool

ValidateHostName checks if a host name is valid for SSH config

func ValidateHostname

func ValidateHostname(hostname string) bool

ValidateHostname checks if a hostname is valid

func ValidateIP

func ValidateIP(ip string) bool

ValidateIP checks if an IP address is valid

func ValidateIdentityFile

func ValidateIdentityFile(path string) bool

ValidateIdentityFile checks if an identity file path is valid

func ValidatePort

func ValidatePort(port string) bool

ValidatePort checks if a port is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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