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.
 
 
 
 
 

261 regels
7.4 KiB

  1. # fmt: off
  2. #########################
  3. # Application #
  4. #########################
  5. APP_NAME = "diagrams"
  6. DIR_DOC_ROOT = "docs/nodes"
  7. DIR_APP_ROOT = "diagrams"
  8. DIR_RESOURCE = "resources"
  9. DIR_TEMPLATE = "templates"
  10. PROVIDERS = ("base", "aws", "azure", "gcp", "k8s", "alibabacloud")
  11. #########################
  12. # Resource Processing #
  13. #########################
  14. CMD_ROUND = "round"
  15. CMD_ROUND_OPTS = ("-w",)
  16. CMD_SVG2PNG = "inkscape"
  17. CMD_SVG2PNG_OPTS = ("-z", "-w", "256", "-h", "256", "--export-type", "png")
  18. FILE_PREFIXES = {
  19. "aws": ("amazon-", "aws-"),
  20. "azure": ("azure-",),
  21. "gcp": ("cloud-",),
  22. "k8s": (),
  23. "alibabacloud": (),
  24. }
  25. #########################
  26. # Doc Auto Generation #
  27. #########################
  28. TMPL_APIDOC = "apidoc.tmpl"
  29. #########################
  30. # Class Auto Generation #
  31. #########################
  32. TMPL_MODULE = "module.tmpl"
  33. UPPER_WORDS = {
  34. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  35. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  36. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  37. "k8s": (
  38. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
  39. "sa", "sc", "sts", "svc",
  40. )
  41. }
  42. TITLE_WORDS = {
  43. "alibabacloud": {
  44. "alibabacloud": "AlibabaCloud"
  45. }
  46. }
  47. # TODO: check if the classname exists
  48. ALIASES = {
  49. "aws": {
  50. "analytics": {
  51. "ElasticsearchService": "ES",
  52. },
  53. "compute": {
  54. "ApplicationAutoScaling": "AutoScaling",
  55. "EC2ContainerRegistry": "ECR",
  56. "ElasticBeanstalk": "EB",
  57. "ElasticContainerService": "ECS",
  58. "ElasticKubernetesService": "EKS",
  59. "ServerlessApplicationRepository": "SAR",
  60. },
  61. "database": {
  62. "DatabaseMigrationService": "DMS",
  63. "DocumentdbMongodbCompatibility": "DocumentDB",
  64. "Database": "DB",
  65. "Dynamodb": "DDB",
  66. "Elasticache": "ElastiCache",
  67. "QuantumLedgerDatabaseQldb": "QLDB",
  68. },
  69. "devtools": {
  70. "CommandLineInterface": "CLI",
  71. "DeveloperTools": "DevTools",
  72. },
  73. "integration": {
  74. "SimpleNotificationServiceSns": "SNS",
  75. "SimpleQueueServiceSqs": "SQS",
  76. "StepFunctions": "SF",
  77. },
  78. "iot": {
  79. "Freertos": "FreeRTOS",
  80. },
  81. "migration": {
  82. "ApplicationDiscoveryService": "ADS",
  83. "CloudendureMigration": "CEM",
  84. "DatabaseMigrationService": "DMS",
  85. "MigrationAndTransfer": "MAT",
  86. "ServerMigrationService": "SMS",
  87. },
  88. "ml": {
  89. "DeepLearningContainers": "DLC",
  90. },
  91. "network": {
  92. "Cloudfront": "CF",
  93. "ElasticLoadBalancing": "ELB",
  94. "GlobalAccelerator": "GAX",
  95. },
  96. "security": {
  97. "CertificateManager": "ACM",
  98. "Cloudhsm": "CloudHSM",
  99. "DirectoryService": "DS",
  100. "FirewallManager": "FMS",
  101. "IdentityAndAccessManagementIam": "IAM",
  102. "KeyManagementService": "KMS",
  103. "ResourceAccessManager": "RAM",
  104. },
  105. "storage": {
  106. "CloudendureDisasterRecovery": "CDR",
  107. "ElasticBlockStoreEBS": "EBS",
  108. "ElasticFileSystemEFS": "EFS",
  109. "Fsx": "FSx",
  110. "SimpleStorageServiceS3": "S3",
  111. },
  112. },
  113. "azure": {
  114. "compute": {
  115. "ContainerRegistries": "ACR",
  116. "KubernetesServices": "AKS",
  117. },
  118. },
  119. "gcp": {
  120. "analytics": {
  121. "Bigquery": "BigQuery",
  122. "Pubsub": "PubSub",
  123. },
  124. "compute": {
  125. "AppEngine": "GAE",
  126. "Functions": "GCF",
  127. "ComputeEngine": "GCE",
  128. "KubernetesEngine": "GKE",
  129. },
  130. "database": {
  131. "Bigtable": "BigTable",
  132. },
  133. "devtools": {
  134. "ContainerRegistry": "GCR",
  135. },
  136. "ml": {
  137. "Automl": "AutoML",
  138. "NaturalLanguageAPI": "NLAPI",
  139. "SpeechToText": "STT",
  140. "TextToSpeech": "TTS",
  141. },
  142. "network": {
  143. "VirtualPrivateCloud": "VPC"
  144. },
  145. "security": {
  146. "KeyManagementService": "KMS",
  147. "SecurityCommandCenter": "SCC",
  148. },
  149. "storage": {
  150. "Storage": "GCS",
  151. },
  152. },
  153. "k8s": {
  154. "clusterconfig": {
  155. "Limits": "LimitRange",
  156. "HPA": "HorizontalPodAutoscaler",
  157. },
  158. "compute": {
  159. "Deploy": "Deployment",
  160. "DS": "DaemonSet",
  161. "RS": "ReplicaSet",
  162. "STS": "StatefulSet"
  163. },
  164. "controlplane": {
  165. "API": "APIServer",
  166. "CM": "ControllerManager",
  167. "KProxy": "KubeProxy",
  168. "Sched": "Scheduler",
  169. },
  170. "group": {
  171. "NS": "Namespace",
  172. },
  173. "network": {
  174. "Ep": "Endpoint",
  175. "Ing": "Ingress",
  176. "Netpol": "NetworkPolicy",
  177. "SVC": "Service",
  178. },
  179. "podconfig": {
  180. "CM": "ConfigMap",
  181. },
  182. "rbac": {
  183. "CRole": "ClusterRole",
  184. "CRB": "ClusterRoleBinding",
  185. "RB": "RoleBinding",
  186. "SA": "ServiceAccount",
  187. },
  188. "storage": {
  189. "PV": "PersistnetVolume",
  190. "PVC": "PersistentVolumeClaim",
  191. "SC": "StorageClass",
  192. "Vol": "Volume",
  193. },
  194. },
  195. "alibabacloud": {
  196. "application": {
  197. "LogService": "SLS",
  198. "MessageNotificationService": "MNS",
  199. "PerformanceTestingService": "PTS",
  200. "SmartConversationAnalysis": "SCA",
  201. },
  202. "compute": {
  203. "AutoScaling": "ESS",
  204. "ElasticComputeService": "ECS",
  205. "ElasticContainerInstance": "ECI",
  206. "ElasticHighPerformanceComputing": "EHPC",
  207. "FunctionCompute": "FC",
  208. "OperationOrchestrationService": "OOS",
  209. "ResourceOrchestrationService": "ROS",
  210. "ServerLoadBalancer": "SLB",
  211. "ServerlessAppEngine": "SAE",
  212. "SimpleApplicationServer": "SAS",
  213. "WebAppService": "WAS",
  214. },
  215. "database": {
  216. "DataManagementService": "DMS",
  217. "DataTransmissionService": "DTS",
  218. "DatabaseBackupService": "DBS",
  219. "DisributeRelationalDatabaseService": "DRDS",
  220. "GraphDatabaseService": "GDS",
  221. "RelationalDatabaseService": "RDS",
  222. },
  223. "network": {
  224. "CloudEnterpriseNetwork": "CEN",
  225. "ElasticIpAddress": "EIP",
  226. "ServerLoadBalancer": "SLB",
  227. "VirtualPrivateCloud": "VPC",
  228. },
  229. "security": {
  230. "AntiBotService": "ABS",
  231. "AntifraudService": "AS",
  232. "CloudFirewall": "CFW",
  233. "ContentModeration": "CM",
  234. "DataEncryptionService": "DES",
  235. "WebApplicationFirewall": "WAF",
  236. },
  237. "storage": {
  238. "FileStorageHdfs": "HDFS",
  239. "FileStorageNas": "NAS",
  240. "HybridBackupRecovery": "HBR",
  241. "HybridCloudDisasterRecovery": "HDR",
  242. "ObjectStorageService": "OSS",
  243. "ObjectTableStore": "OTS",
  244. }
  245. }
  246. }