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

Function maskKey

agent/app/service/agents_utils.go:1527–1533  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

1525}
1526
1527func maskKey(value string) string {
1528 trim := strings.TrimSpace(value)
1529 if len(trim) <= 6 {
1530 return trim
1531 }
1532 return fmt.Sprintf("%s****%s", trim[:3], trim[len(trim)-3:])
1533}
1534
1535func toInt(value interface{}) int {
1536 switch v := value.(type) {

Callers 1

buildAgentItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected