MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / Hostname

Method Hostname

datasource/etcd_machine.go:33–35  ·  view source on GitHub ↗

Hostname returns the mac address formatted as a string suitable for hostname

()

Source from the content-addressed store, hash-verified

31
32// Hostname returns the mac address formatted as a string suitable for hostname
33func (m *etcdMachineInterface) Hostname() string {
34 return strings.Replace(m.mac.String(), ":", "", -1)
35}
36
37// Machine creates a record for the associated mac if needed
38// and asked for, and returns a Machine with the stored values.

Callers 3

DeleteMachineMethod · 0.95
ListVariablesMethod · 0.95
prefixifyForMachineMethod · 0.95

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected