Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
148
func
(c *nodeContext) Hostname() string {
149
return
c.n.Description.Hostname
150
}
151
152
func
(c *nodeContext) Status() string {
153
return
formatter.PrettyPrint(string(c.n.Status.State))
Callers
7
newSpec
Function · 0.45
TestResolveNode
Function · 0.45
TestCompleteEventFilter
Function · 0.45
TestNodeList
Function · 0.45
TestNodeListDefaultFormatFromConfig
Function · 0.45
TestNodeListFormat
Function · 0.45
ConvertToHostname
Function · 0.45
Calls
no outgoing calls
Tested by
5
TestResolveNode
Function · 0.36
TestCompleteEventFilter
Function · 0.36
TestNodeList
Function · 0.36
TestNodeListDefaultFormatFromConfig
Function · 0.36
TestNodeListFormat
Function · 0.36