(region string)
| 9 | ) |
| 10 | |
| 11 | func StringToRegion(region string) Region { |
| 12 | switch region { |
| 13 | case "cn": |
| 14 | return CN |
| 15 | case "us": |
| 16 | return US |
| 17 | case "eu": |
| 18 | return EU |
| 19 | default: |
| 20 | return "" |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // RegistrySources is a map of regions to registry regions |
| 25 | type RegistrySources map[Region]RegistryRegionSources |
no outgoing calls
no test coverage detected