Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

195 rader
5.3 KiB

  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", "k8s")
  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. "k8s": (),
  22. }
  23. #########################
  24. # Class Auto Generation #
  25. #########################
  26. TMPL_MODULE = "module.tmpl"
  27. UPPER_WORDS = {
  28. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  29. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  30. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  31. "k8s": (
  32. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "ns", "psp", "pv", "pvc", "rb", "rs", "sa", "sc", "sts",
  33. "svc"),
  34. }
  35. # TODO: check if the classname exists
  36. ALIASES = {
  37. "aws": {
  38. "analytics": {
  39. "ElasticsearchService": "ES",
  40. },
  41. "compute": {
  42. "ApplicationAutoScaling": "AutoScaling",
  43. "EC2ContainerRegistry": "ECR",
  44. "ElasticBeanstalk": "EB",
  45. "ElasticContainerService": "ECS",
  46. "ElasticKubernetesService": "EKS",
  47. "ServerlessApplicationRepository": "SAR",
  48. },
  49. "database": {
  50. "DatabaseMigrationService": "DMS",
  51. "DocumentdbMongodbCompatibility": "DocumentDB",
  52. "Database": "DB",
  53. "Dynamodb": "DDB",
  54. "Elasticache": "ElastiCache",
  55. "QuantumLedgerDatabaseQldb": "QLDB",
  56. },
  57. "devtools": {
  58. "CommandLineInterface": "CLI",
  59. "DeveloperTools": "DevTools",
  60. },
  61. "integration": {
  62. "SimpleNotificationServiceSns": "SNS",
  63. "SimpleQueueServiceSqs": "SQS",
  64. "StepFunctions": "SF",
  65. },
  66. "iot": {
  67. "Freertos": "FreeRTOS",
  68. },
  69. "migration": {
  70. "ApplicationDiscoveryService": "ADS",
  71. "CloudendureMigration": "CEM",
  72. "DatabaseMigrationService": "DMS",
  73. "MigrationAndTransfer": "MAT",
  74. "ServerMigrationService": "SMS",
  75. },
  76. "ml": {
  77. "DeepLearningContainers": "DLC",
  78. },
  79. "network": {
  80. "Cloudfront": "CF",
  81. "ElasticLoadBalancing": "ELB",
  82. "GlobalAccelerator": "GAX",
  83. },
  84. "security": {
  85. "CertificateManager": "ACM",
  86. "Cloudhsm": "CloudHSM",
  87. "DirectoryService": "DS",
  88. "FirewallManager": "FMS",
  89. "IdentityAndAccessManagementIam": "IAM",
  90. "KeyManagementService": "KMS",
  91. "ResourceAccessManager": "RAM",
  92. },
  93. "storage": {
  94. "CloudendureDisasterRecovery": "CDR",
  95. "ElasticBlockStoreEBS": "EBS",
  96. "ElasticFileSystemEFS": "EFS",
  97. "Fsx": "FSx",
  98. "SimpleStorageServiceS3": "S3",
  99. },
  100. },
  101. "azure": {
  102. "compute": {
  103. "ContainerRegistries": "ACR",
  104. "KubernetesServices": "AKS",
  105. },
  106. },
  107. "gcp": {
  108. "analytics": {
  109. "Bigquery": "BigQuery",
  110. "Pubsub": "PubSub",
  111. },
  112. "compute": {
  113. "AppEngine": "GAE",
  114. "Functions": "GCF",
  115. "ComputeEngine": "GCE",
  116. "KubernetesEngine": "GKE",
  117. },
  118. "database": {
  119. "Bigtable": "BigTable",
  120. },
  121. "devtools": {
  122. "ContainerRegistry": "GCR",
  123. },
  124. "ml": {
  125. "Automl": "AutoML",
  126. "NaturalLanguageAPI": "NLAPI",
  127. "SpeechToText": "STT",
  128. "TextToSpeech": "TTS",
  129. },
  130. "network": {
  131. "VirtualPrivateCloud": "VPC"
  132. },
  133. "security": {
  134. "KeyManagementService": "KMS",
  135. "SecurityCommandCenter": "SCC",
  136. },
  137. "storage": {
  138. "Storage": "GCS",
  139. },
  140. },
  141. "k8s": {
  142. "clusterconfig": {
  143. "Limits": "LimitRange",
  144. "HPA": "HorizontalPodAutoscaler",
  145. },
  146. "compute": {
  147. "Deploy": "Deployment",
  148. "DS": "DaemonSet",
  149. "RS": "ReplicaSet",
  150. "STS": "StatefulSet"
  151. },
  152. "controlplane": {
  153. "API": "APIServer",
  154. "CM": "ControllerManager",
  155. "KProxy": "KubeProxy",
  156. "Sched": "Scheduler",
  157. },
  158. "group": {
  159. "NS": "Namespace",
  160. },
  161. "network": {
  162. "Ep": "Endpoint",
  163. "Ing": "Ingress",
  164. "Netpol": "NetworkPolicy",
  165. "SVC": "Service",
  166. },
  167. "podconfig": {
  168. "CM": "ConfigMap",
  169. },
  170. "rbac": {
  171. "CRole": "ClusterRole",
  172. "CRB": "ClusterRoleBinding",
  173. "RB": "RoleBinding",
  174. "SA": "ServiceAccount",
  175. },
  176. "storage": {
  177. "PV": "PersistnetVolume",
  178. "PVC": "PersistentVolumeClaim",
  179. "SC": "StorageClass",
  180. "Vol": "Volume",
  181. },
  182. }
  183. }