getValidEcosystemIdentifiers returns a sorted list of all valid ecosystem identifiers, including both the base identifiers from ecosystemDomains and compound identifiers.
()
| 154 | // getValidEcosystemIdentifiers returns a sorted list of all valid ecosystem identifiers, |
| 155 | // including both the base identifiers from ecosystemDomains and compound identifiers. |
| 156 | func getValidEcosystemIdentifiers() []string { |
| 157 | ecosystemDomains := getLoadedEcosystemDomains() |
| 158 | ids := make([]string, 0, safeAllocationCapacity(len(ecosystemDomains), len(compoundEcosystems))) |
| 159 | for id := range ecosystemDomains { |
| 160 | ids = append(ids, id) |
| 161 | } |
| 162 | for id := range compoundEcosystems { |
| 163 | ids = append(ids, id) |
| 164 | } |
| 165 | sort.Strings(ids) |
| 166 | return ids |
| 167 | } |
| 168 | |
| 169 | // domainPattern validates domain patterns including wildcards |
| 170 | // Valid patterns: |