Você não pode selecionar mais de 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.
 
 
 
 
 

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