hostname

package
v1.24.9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElevateToAddHostEntry

func ElevateToAddHostEntry(hostname string, ip string) (string, error)

ElevateToAddHostEntry runs the required DDEV hostname command to add the entry

func ElevateToRemoveHostEntry

func ElevateToRemoveHostEntry(hostname string, ip string) (string, error)

ElevateToRemoveHostEntry runs the required ddev-hostname command to remove the entry,

func GetDdevHostnameBinary

func GetDdevHostnameBinary() string

GetDdevHostnameBinary returns the path to the ddev-hostname or ddev-hostname.exe binary It must exist in the PATH

func IsHostnameInHostsFile

func IsHostnameInHostsFile(hostname string) (bool, error)

IsHostnameInHostsFile checks to see if the hostname already exists On WSL2 it normally assumes that the hosts file is in WSL2WindowsHostsFile Otherwise it lets goodhosts decide where the hosts file is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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