hostname

package
v0.0.0-...-05f81da Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxHostnameLength is the longest possible username
	MaxHostnameLength = 63
)

Variables

This section is empty.

Functions

func IsValidHostname

func IsValidHostname(hostname string) string

IsValidHostname returns error message or nil if is valid https://en.wikipedia.org/wiki/Hostname

func SetTargetHostname

func SetTargetHostname(rootDir string, hostname string) error

SetTargetHostname set the new installation target's hostname

Types

This section is empty.

Jump to

Keyboard shortcuts

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