You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # fmt: off
  2. #########################
  3. # Application #
  4. #########################
  5. APP_NAME = "diagrams"
  6. DIR_APP_ROOT = "diagrams"
  7. DIR_RESOURCE = "resources"
  8. DIR_TEMPLATE = "templates"
  9. PROVIDERS = ("base", "aws", "azure", "gcp")
  10. #########################
  11. # Resource Processing #
  12. #########################
  13. CMD_ROUND = "round"
  14. CMD_ROUND_OPTS = ("-w",)
  15. CMD_SVG2PNG = "inkscape"
  16. CMD_SVG2PNG_OPTS = ("-z", "-w", "256", "-h", "256", "--export-type", "png")
  17. FILE_PREFIXES = {
  18. "aws": ("amazon-", "aws-"),
  19. "azure": ("azure-",),
  20. "gcp": ("cloud-",)
  21. }
  22. #########################
  23. # Class Auto Generation #
  24. #########################
  25. TMPL_MODULE = "module.tmpl"
  26. UPPER_WORDS = {
  27. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  28. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  29. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  30. }
  31. # TODO: check if the classname exists
  32. ALIASES = {
  33. "aws": {
  34. "analytics": {
  35. "ElasticsearchService": "ES",
  36. },
  37. "compute": {
  38. "ApplicationAutoScaling": "AutoScaling",
  39. "EC2ContainerRegistry": "ECR",
  40. "ElasticBeanstalk": "EB",
  41. "ElasticContainerService": "ECS",
  42. "ElasticKubernetesService": "EKS",
  43. "ServerlessApplicationRepository": "SAR",
  44. },
  45. "database": {
  46. "DatabaseMigrationService": "DMS",
  47. "DocumentdbMongodbCompatibility": "DocumentDB",
  48. "Database": "DB",
  49. "Dynamodb": "DDB",
  50. "Elasticache": "ElastiCache",
  51. "QuantumLedgerDatabaseQldb": "QLDB",
  52. },
  53. "devtools": {
  54. "CommandLineInterface": "CLI",
  55. "DeveloperTools": "DevTools",
  56. },
  57. "integration": {
  58. "SimpleNotificationServiceSns": "SNS",
  59. "SimpleQueueServiceSqs": "SQS",
  60. "StepFunctions": "SF",
  61. },
  62. "iot": {
  63. "Freertos": "FreeRTOS",
  64. },
  65. "migration": {
  66. "ApplicationDiscoveryService": "ADS",
  67. "CloudendureMigration": "CEM",
  68. "DatabaseMigrationService": "DMS",
  69. "MigrationAndTransfer": "MAT",
  70. "ServerMigrationService": "SMS",
  71. },
  72. "ml": {
  73. "DeepLearningContainers": "DLC",
  74. },
  75. "network": {
  76. "Cloudfront": "CF",
  77. "ElasticLoadBalancing": "ELB",
  78. "GlobalAccelerator": "GAX",
  79. },
  80. "security": {
  81. "CertificateManager": "ACM",
  82. "Cloudhsm": "CloudHSM",
  83. "DirectoryService": "DS",
  84. "FirewallManager": "FMS",
  85. "IdentityAndAccessManagementIam": "IAM",
  86. "KeyManagementService": "KMS",
  87. "ResourceAccessManager": "RAM",
  88. },
  89. "storage": {
  90. "CloudendureDisasterRecovery": "CDR",
  91. "ElasticBlockStoreEBS": "EBS",
  92. "ElasticFileSystemEFS": "EFS",
  93. "Fsx": "FSx",
  94. "SimpleStorageServiceS3": "S3",
  95. },
  96. },
  97. "azure": {
  98. "compute": {
  99. "ContainerRegistries": "ACR",
  100. "KubernetesServices": "AKS",
  101. },
  102. },
  103. "gcp": {
  104. "analytics": {
  105. "Bigquery": "BigQuery",
  106. "Pubsub": "PubSub",
  107. },
  108. "compute": {
  109. "AppEngine": "GAE",
  110. "Functions": "GCF",
  111. "ComputeEngine": "GCE",
  112. "KubernetesEngine": "GKE",
  113. },
  114. "database": {
  115. "Bigtable": "BigTable",
  116. },
  117. "devtools": {
  118. "ContainerRegistry": "GCR",
  119. },
  120. "ml": {
  121. "Automl": "AutoML",
  122. "NaturalLanguageAPI": "NLAPI",
  123. "SpeechToText": "STT",
  124. "TextToSpeech": "TTS",
  125. },
  126. "network": {
  127. "VirtualPrivateCloud": "VPC"
  128. },
  129. "security": {
  130. "KeyManagementService": "KMS",
  131. "SecurityCommandCenter": "SCC",
  132. },
  133. "storage": {
  134. "Storage": "GCS",
  135. },
  136. },
  137. }