MCPcopy Index your code
hub / github.com/docker/cli / Hostname

Method Hostname

cli/command/node/formatter.go:148–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (c *nodeContext) Hostname() string {
149 return c.n.Description.Hostname
150}
151
152func (c *nodeContext) Status() string {
153 return formatter.PrettyPrint(string(c.n.Status.State))

Callers 7

newSpecFunction · 0.45
TestResolveNodeFunction · 0.45
TestCompleteEventFilterFunction · 0.45
TestNodeListFunction · 0.45
TestNodeListFormatFunction · 0.45
ConvertToHostnameFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestResolveNodeFunction · 0.36
TestCompleteEventFilterFunction · 0.36
TestNodeListFunction · 0.36
TestNodeListFormatFunction · 0.36