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.
 
 
 
 
 

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