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.
 
 
 
 
 

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