debugFileSources.tsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export const DEBUG_SOURCE_LAYOUTS = {
  2. native: 'Platform-Specific (SymStore / GDB / LLVM)',
  3. symstore: 'Microsoft SymStore',
  4. symstore_index2: 'Microsoft SymStore (with index2.txt)',
  5. ssqp: 'Microsoft SSQP',
  6. unified: 'Unified Symbol Server Layout',
  7. debuginfod: 'debuginfod',
  8. slashsymbols: '/symbols',
  9. } as const;
  10. export const DEBUG_SOURCE_CASINGS = {
  11. default: 'Default (mixed case)',
  12. uppercase: 'Uppercase',
  13. lowercase: 'Lowercase',
  14. } as const;
  15. export const AWS_REGIONS = [
  16. ['us-east-2', 'US East (Ohio)'],
  17. ['us-east-1', 'US East (N. Virginia)'],
  18. ['us-west-1', 'US West (N. California)'],
  19. ['us-west-2', 'US West (Oregon)'],
  20. ['ap-east-1', 'Asia Pacific (Hong Kong)'],
  21. ['ap-south-1', 'Asia Pacific (Mumbai)'],
  22. // ['ap-northeast-3', 'Asia Pacific (Osaka-Local)'],
  23. ['ap-northeast-2', 'Asia Pacific (Seoul)'],
  24. ['ap-southeast-1', 'Asia Pacific (Singapore)'],
  25. ['ap-southeast-2', 'Asia Pacific (Sydney)'],
  26. ['ap-northeast-1', 'Asia Pacific (Tokyo)'],
  27. ['ca-central-1', 'Canada (Central)'],
  28. ['cn-north-1', 'China (Beijing)'],
  29. ['cn-northwest-1', 'China (Ningxia)'],
  30. ['eu-central-1', 'EU (Frankfurt)'],
  31. ['eu-west-1', 'EU (Ireland)'],
  32. ['eu-west-2', 'EU (London)'],
  33. ['eu-west-3', 'EU (Paris)'],
  34. ['eu-north-1', 'EU (Stockholm)'],
  35. ['sa-east-1', 'South America (São Paulo)'],
  36. ['us-gov-east-1', 'AWS GovCloud (US-East)'],
  37. ['us-gov-west-1', 'AWS GovCloud (US)'],
  38. ] as const;
  39. export const DEBUG_SOURCE_TYPES = {
  40. gcs: 'Google Cloud Storage',
  41. http: 'SymbolServer (HTTP)',
  42. s3: 'Amazon S3',
  43. appStoreConnect: 'App Store Connect',
  44. } as const;
  45. export function getDebugSourceName(type: keyof typeof DEBUG_SOURCE_TYPES) {
  46. return DEBUG_SOURCE_TYPES[type] ?? 'Unknown';
  47. }