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

Function extractRawChannelAccountIDs

agent/app/service/agents_agents.go:476–493  ·  view source on GitHub ↗
(channel map[string]interface{})

Source from the content-addressed store, hash-verified

474}
475
476func extractRawChannelAccountIDs(channel map[string]interface{}) []string {
477 if len(channel) == 0 {
478 return []string{}
479 }
480 accounts, ok := channel["accounts"].(map[string]interface{})
481 if !ok || len(accounts) == 0 {
482 return []string{}
483 }
484 result := make([]string, 0, len(accounts))
485 for key := range accounts {
486 if key == "" {
487 continue
488 }
489 result = append(result, key)
490 }
491 sort.Strings(result)
492 return result
493}
494
495func resolveRoleDir(installDir, workspace string) string {
496 if workspace == "" {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected