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

Function readInstallEnv

agent/app/service/agents_utils.go:1516–1525  ·  view source on GitHub ↗
(envStr string)

Source from the content-addressed store, hash-verified

1514}
1515
1516func readInstallEnv(envStr string) map[string]interface{} {
1517 if strings.TrimSpace(envStr) == "" {
1518 return nil
1519 }
1520 data := map[string]interface{}{}
1521 if err := json.Unmarshal([]byte(envStr), &data); err != nil {
1522 return nil
1523 }
1524 return data
1525}
1526
1527func maskKey(value string) string {
1528 trim := strings.TrimSpace(value)

Callers 1

PageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected