Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

config.py 8.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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", "onprem", "aws", "azure", "gcp", "k8s", "alibabacloud", "oci")
  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. CMD_SVG2PNG_IM = "convert"
  19. CMD_SVG2PNG_IM_OPTS = ("-shave", "25%x25%", "-resize", "256x256!")
  20. FILE_PREFIXES = {
  21. "onprem": (),
  22. "aws": ("amazon-", "aws-"),
  23. "azure": ("azure-",),
  24. "gcp": ("cloud-",),
  25. "k8s": (),
  26. "alibabacloud": (),
  27. "oci": ("OCI-",),
  28. }
  29. #########################
  30. # Doc Auto Generation #
  31. #########################
  32. TMPL_APIDOC = "apidoc.tmpl"
  33. #########################
  34. # Class Auto Generation #
  35. #########################
  36. TMPL_MODULE = "module.tmpl"
  37. UPPER_WORDS = {
  38. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  39. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  40. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  41. "k8s": (
  42. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
  43. "sa", "sc", "sts", "svc",
  44. ),
  45. "oci": ("oci",),
  46. }
  47. TITLE_WORDS = {
  48. "onprem": {
  49. "onprem": "OnPrem",
  50. },
  51. "alibabacloud": {
  52. "alibabacloud": "AlibabaCloud"
  53. }
  54. }
  55. # TODO: check if the classname exists
  56. ALIASES = {
  57. "onprem": {
  58. "ci": {
  59. "Circleci": "CircleCI",
  60. "Travisci": "TravisCI",
  61. },
  62. "container": {
  63. "Rkt": "RKT",
  64. },
  65. "database": {
  66. "Cockroachdb": "CockroachDB",
  67. "Couchdb": "CouchDB",
  68. "Hbase": "HBase",
  69. "Influxdb": "InfluxDB",
  70. "Mariadb": "MariaDB",
  71. "Mongodb": "MongoDB",
  72. "Mssql": "MSSQL",
  73. "Mysql": "MySQL",
  74. "Postgresql": "PostgreSQL",
  75. },
  76. "gitops": {
  77. "Argocd": "ArgoCD",
  78. },
  79. "logging": {
  80. "Logstash": "LogStash",
  81. },
  82. "netowrk": {
  83. "Etcd": "ETCD",
  84. "Haproxy": "HAProxy",
  85. },
  86. "queue": {
  87. "Zeromq": "ZeroMQ",
  88. },
  89. "workflow": {
  90. "Kubeflow": "KubeFlow",
  91. "Nifi": "NiFi",
  92. }
  93. },
  94. "aws": {
  95. "analytics": {
  96. "ElasticsearchService": "ES",
  97. },
  98. "compute": {
  99. "ApplicationAutoScaling": "AutoScaling",
  100. "EC2ContainerRegistry": "ECR",
  101. "ElasticBeanstalk": "EB",
  102. "ElasticContainerService": "ECS",
  103. "ElasticKubernetesService": "EKS",
  104. "ServerlessApplicationRepository": "SAR",
  105. },
  106. "database": {
  107. "DatabaseMigrationService": "DMS",
  108. "DocumentdbMongodbCompatibility": "DocumentDB",
  109. "Database": "DB",
  110. "Dynamodb": "DDB",
  111. "Elasticache": "ElastiCache",
  112. "QuantumLedgerDatabaseQldb": "QLDB",
  113. },
  114. "devtools": {
  115. "CommandLineInterface": "CLI",
  116. "DeveloperTools": "DevTools",
  117. },
  118. "integration": {
  119. "SimpleNotificationServiceSns": "SNS",
  120. "SimpleQueueServiceSqs": "SQS",
  121. "StepFunctions": "SF",
  122. },
  123. "iot": {
  124. "Freertos": "FreeRTOS",
  125. },
  126. "migration": {
  127. "ApplicationDiscoveryService": "ADS",
  128. "CloudendureMigration": "CEM",
  129. "DatabaseMigrationService": "DMS",
  130. "MigrationAndTransfer": "MAT",
  131. "ServerMigrationService": "SMS",
  132. },
  133. "ml": {
  134. "DeepLearningContainers": "DLC",
  135. },
  136. "network": {
  137. "Cloudfront": "CF",
  138. "ElasticLoadBalancing": "ELB",
  139. "GlobalAccelerator": "GAX",
  140. },
  141. "security": {
  142. "CertificateManager": "ACM",
  143. "Cloudhsm": "CloudHSM",
  144. "DirectoryService": "DS",
  145. "FirewallManager": "FMS",
  146. "IdentityAndAccessManagementIam": "IAM",
  147. "KeyManagementService": "KMS",
  148. "ResourceAccessManager": "RAM",
  149. },
  150. "storage": {
  151. "CloudendureDisasterRecovery": "CDR",
  152. "ElasticBlockStoreEBS": "EBS",
  153. "ElasticFileSystemEFS": "EFS",
  154. "Fsx": "FSx",
  155. "SimpleStorageServiceS3": "S3",
  156. },
  157. },
  158. "azure": {
  159. "compute": {
  160. "ContainerRegistries": "ACR",
  161. "KubernetesServices": "AKS",
  162. },
  163. },
  164. "gcp": {
  165. "analytics": {
  166. "Bigquery": "BigQuery",
  167. "Pubsub": "PubSub",
  168. },
  169. "compute": {
  170. "AppEngine": "GAE",
  171. "Functions": "GCF",
  172. "ComputeEngine": "GCE",
  173. "KubernetesEngine": "GKE",
  174. },
  175. "database": {
  176. "Bigtable": "BigTable",
  177. },
  178. "devtools": {
  179. "ContainerRegistry": "GCR",
  180. },
  181. "ml": {
  182. "Automl": "AutoML",
  183. "NaturalLanguageAPI": "NLAPI",
  184. "SpeechToText": "STT",
  185. "TextToSpeech": "TTS",
  186. },
  187. "network": {
  188. "VirtualPrivateCloud": "VPC"
  189. },
  190. "security": {
  191. "KeyManagementService": "KMS",
  192. "SecurityCommandCenter": "SCC",
  193. },
  194. "storage": {
  195. "Storage": "GCS",
  196. },
  197. },
  198. "k8s": {
  199. "clusterconfig": {
  200. "Limits": "LimitRange",
  201. "HPA": "HorizontalPodAutoscaler",
  202. },
  203. "compute": {
  204. "Deploy": "Deployment",
  205. "DS": "DaemonSet",
  206. "RS": "ReplicaSet",
  207. "STS": "StatefulSet"
  208. },
  209. "controlplane": {
  210. "API": "APIServer",
  211. "CM": "ControllerManager",
  212. "KProxy": "KubeProxy",
  213. "Sched": "Scheduler",
  214. },
  215. "group": {
  216. "NS": "Namespace",
  217. },
  218. "network": {
  219. "Ep": "Endpoint",
  220. "Ing": "Ingress",
  221. "Netpol": "NetworkPolicy",
  222. "SVC": "Service",
  223. },
  224. "podconfig": {
  225. "CM": "ConfigMap",
  226. },
  227. "rbac": {
  228. "CRole": "ClusterRole",
  229. "CRB": "ClusterRoleBinding",
  230. "RB": "RoleBinding",
  231. "SA": "ServiceAccount",
  232. },
  233. "storage": {
  234. "PV": "PersistnetVolume",
  235. "PVC": "PersistentVolumeClaim",
  236. "SC": "StorageClass",
  237. "Vol": "Volume",
  238. },
  239. },
  240. "alibabacloud": {
  241. "application": {
  242. "LogService": "SLS",
  243. "MessageNotificationService": "MNS",
  244. "PerformanceTestingService": "PTS",
  245. "SmartConversationAnalysis": "SCA",
  246. },
  247. "compute": {
  248. "AutoScaling": "ESS",
  249. "ElasticComputeService": "ECS",
  250. "ElasticContainerInstance": "ECI",
  251. "ElasticHighPerformanceComputing": "EHPC",
  252. "FunctionCompute": "FC",
  253. "OperationOrchestrationService": "OOS",
  254. "ResourceOrchestrationService": "ROS",
  255. "ServerLoadBalancer": "SLB",
  256. "ServerlessAppEngine": "SAE",
  257. "SimpleApplicationServer": "SAS",
  258. "WebAppService": "WAS",
  259. },
  260. "database": {
  261. "DataManagementService": "DMS",
  262. "DataTransmissionService": "DTS",
  263. "DatabaseBackupService": "DBS",
  264. "DisributeRelationalDatabaseService": "DRDS",
  265. "GraphDatabaseService": "GDS",
  266. "RelationalDatabaseService": "RDS",
  267. },
  268. "network": {
  269. "CloudEnterpriseNetwork": "CEN",
  270. "ElasticIpAddress": "EIP",
  271. "ServerLoadBalancer": "SLB",
  272. "VirtualPrivateCloud": "VPC",
  273. },
  274. "security": {
  275. "AntiBotService": "ABS",
  276. "AntifraudService": "AS",
  277. "CloudFirewall": "CFW",
  278. "ContentModeration": "CM",
  279. "DataEncryptionService": "DES",
  280. "WebApplicationFirewall": "WAF",
  281. },
  282. "storage": {
  283. "FileStorageHdfs": "HDFS",
  284. "FileStorageNas": "NAS",
  285. "HybridBackupRecovery": "HBR",
  286. "HybridCloudDisasterRecovery": "HDR",
  287. "ObjectStorageService": "OSS",
  288. "ObjectTableStore": "OTS",
  289. }
  290. },
  291. "oci": {
  292. "compute": {
  293. "Vm": "VirtualMachine",
  294. "Bm": "BareMetal"
  295. },
  296. }
  297. }