(channel map[string]interface{})
| 474 | } |
| 475 | |
| 476 | func 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 | |
| 495 | func resolveRoleDir(installDir, workspace string) string { |
| 496 | if workspace == "" { |
no outgoing calls
no test coverage detected