No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

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