Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OtherNodes ¶
OtherNodes returns list of nodes without local hostname
func SetHostnameForGoTest ¶
func SetHostnameForGoTest(s string)
SetHostnameForGoTest can be used during go test to define alternate hostname
Example:
func Test_something(t *testing.T) {
SetHostnameForGoTest("newhostname")
defer SetHostnameForGoTest("")
// test...
}
func StrictHostname ¶
StrictHostname is like os.StrictHostname except it returns a lowercased hostname, and it caches the result to avoid repeating syscalls
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.