MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / getNodeName

Function getNodeName

agent/utils/alert/alert.go:555–562  ·  view source on GitHub ↗
(agentInfo *dto.AgentInfo)

Source from the content-addressed store, hash-verified

553}
554
555func getNodeName(agentInfo *dto.AgentInfo) string {
556 var nodeName string
557 if agentInfo != nil && agentInfo.NodeName != "" {
558 nodeName = agentInfo.NodeName
559 }
560
561 return formatWithFallback(nodeName, getFallbackHostname)
562}
563
564func getNodeIp(agentInfo *dto.AgentInfo) string {
565 var nodeIP string

Callers 1

GetSendContentFunction · 0.85

Calls 1

formatWithFallbackFunction · 0.85

Tested by

no test coverage detected