You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

326 lines
9.0 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")
  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", "nat", "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", "iap", "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. "Teamcity": "TC",
  62. },
  63. "container": {
  64. "Rkt": "RKT",
  65. },
  66. "database": {
  67. "Clickhouse": "ClickHouse",
  68. "Cockroachdb": "CockroachDB",
  69. "Couchdb": "CouchDB",
  70. "Hbase": "HBase",
  71. "Influxdb": "InfluxDB",
  72. "Janusgraph": "JanusGraph",
  73. "Mariadb": "MariaDB",
  74. "Mongodb": "MongoDB",
  75. "Mssql": "MSSQL",
  76. "Mysql": "MySQL",
  77. "Postgresql": "PostgreSQL",
  78. },
  79. "gitops": {
  80. "Argocd": "ArgoCD",
  81. },
  82. "logging": {
  83. "Logstash": "LogStash",
  84. },
  85. "network": {
  86. "Etcd": "ETCD",
  87. "Haproxy": "HAProxy",
  88. "Pfsense": "PFSense",
  89. "Vyos": "VyOS"
  90. },
  91. "queue": {
  92. "Activemq": "ActiveMQ",
  93. "Rabbitmq": "RabbitMQ",
  94. "Zeromq": "ZeroMQ",
  95. },
  96. "workflow": {
  97. "Kubeflow": "KubeFlow",
  98. "Nifi": "NiFi",
  99. }
  100. },
  101. "aws": {
  102. "analytics": {
  103. "ElasticsearchService": "ES",
  104. },
  105. "compute": {
  106. "ApplicationAutoScaling": "AutoScaling",
  107. "EC2ContainerRegistry": "ECR",
  108. "ElasticBeanstalk": "EB",
  109. "ElasticContainerService": "ECS",
  110. "ElasticKubernetesService": "EKS",
  111. "ServerlessApplicationRepository": "SAR",
  112. },
  113. "database": {
  114. "DatabaseMigrationService": "DMS",
  115. "DocumentdbMongodbCompatibility": "DocumentDB",
  116. "Database": "DB",
  117. "Dynamodb": "DDB",
  118. "Elasticache": "ElastiCache",
  119. "QuantumLedgerDatabaseQldb": "QLDB",
  120. },
  121. "devtools": {
  122. "CommandLineInterface": "CLI",
  123. "DeveloperTools": "DevTools",
  124. },
  125. "engagement": {
  126. "SimpleEmailServiceSes": "SES",
  127. },
  128. "integration": {
  129. "SimpleNotificationServiceSns": "SNS",
  130. "SimpleQueueServiceSqs": "SQS",
  131. "StepFunctions": "SF",
  132. },
  133. "iot": {
  134. "Freertos": "FreeRTOS",
  135. },
  136. "management": {
  137. "SystemsManager": "SSM",
  138. "SystemsManagerParameterStore": "ParameterStore",
  139. },
  140. "migration": {
  141. "ApplicationDiscoveryService": "ADS",
  142. "CloudendureMigration": "CEM",
  143. "DatabaseMigrationService": "DMS",
  144. "MigrationAndTransfer": "MAT",
  145. "ServerMigrationService": "SMS",
  146. },
  147. "ml": {
  148. "DeepLearningContainers": "DLC",
  149. },
  150. "network": {
  151. "Cloudfront": "CF",
  152. "ElasticLoadBalancing": "ELB",
  153. "GlobalAccelerator": "GAX",
  154. },
  155. "security": {
  156. "CertificateManager": "ACM",
  157. "Cloudhsm": "CloudHSM",
  158. "DirectoryService": "DS",
  159. "FirewallManager": "FMS",
  160. "IdentityAndAccessManagementIam": "IAM",
  161. "KeyManagementService": "KMS",
  162. "ResourceAccessManager": "RAM",
  163. },
  164. "storage": {
  165. "CloudendureDisasterRecovery": "CDR",
  166. "ElasticBlockStoreEBS": "EBS",
  167. "ElasticFileSystemEFS": "EFS",
  168. "Fsx": "FSx",
  169. "SimpleStorageServiceS3": "S3",
  170. },
  171. },
  172. "azure": {
  173. "compute": {
  174. "ContainerRegistries": "ACR",
  175. "KubernetesServices": "AKS",
  176. },
  177. },
  178. "gcp": {
  179. "analytics": {
  180. "Bigquery": "BigQuery",
  181. "Pubsub": "PubSub",
  182. },
  183. "compute": {
  184. "AppEngine": "GAE",
  185. "Functions": "GCF",
  186. "ComputeEngine": "GCE",
  187. "KubernetesEngine": "GKE",
  188. },
  189. "database": {
  190. "Bigtable": "BigTable",
  191. },
  192. "devtools": {
  193. "ContainerRegistry": "GCR",
  194. },
  195. "ml": {
  196. "Automl": "AutoML",
  197. "NaturalLanguageAPI": "NLAPI",
  198. "SpeechToText": "STT",
  199. "TextToSpeech": "TTS",
  200. },
  201. "network": {
  202. "VirtualPrivateCloud": "VPC"
  203. },
  204. "security": {
  205. "KeyManagementService": "KMS",
  206. "SecurityCommandCenter": "SCC",
  207. },
  208. "storage": {
  209. "Storage": "GCS",
  210. },
  211. },
  212. "k8s": {
  213. "clusterconfig": {
  214. "Limits": "LimitRange",
  215. "HPA": "HorizontalPodAutoscaler",
  216. },
  217. "compute": {
  218. "Deploy": "Deployment",
  219. "DS": "DaemonSet",
  220. "RS": "ReplicaSet",
  221. "STS": "StatefulSet"
  222. },
  223. "controlplane": {
  224. "API": "APIServer",
  225. "CM": "ControllerManager",
  226. "KProxy": "KubeProxy",
  227. "Sched": "Scheduler",
  228. },
  229. "group": {
  230. "NS": "Namespace",
  231. },
  232. "network": {
  233. "Ep": "Endpoint",
  234. "Ing": "Ingress",
  235. "Netpol": "NetworkPolicy",
  236. "SVC": "Service",
  237. },
  238. "podconfig": {
  239. "CM": "ConfigMap",
  240. },
  241. "rbac": {
  242. "CRole": "ClusterRole",
  243. "CRB": "ClusterRoleBinding",
  244. "RB": "RoleBinding",
  245. "SA": "ServiceAccount",
  246. },
  247. "storage": {
  248. "PV": "PersistnetVolume",
  249. "PVC": "PersistentVolumeClaim",
  250. "SC": "StorageClass",
  251. "Vol": "Volume",
  252. },
  253. },
  254. "alibabacloud": {
  255. "application": {
  256. "LogService": "SLS",
  257. "MessageNotificationService": "MNS",
  258. "PerformanceTestingService": "PTS",
  259. "SmartConversationAnalysis": "SCA",
  260. },
  261. "compute": {
  262. "AutoScaling": "ESS",
  263. "ElasticComputeService": "ECS",
  264. "ElasticContainerInstance": "ECI",
  265. "ElasticHighPerformanceComputing": "EHPC",
  266. "FunctionCompute": "FC",
  267. "OperationOrchestrationService": "OOS",
  268. "ResourceOrchestrationService": "ROS",
  269. "ServerLoadBalancer": "SLB",
  270. "ServerlessAppEngine": "SAE",
  271. "SimpleApplicationServer": "SAS",
  272. "WebAppService": "WAS",
  273. },
  274. "database": {
  275. "DataManagementService": "DMS",
  276. "DataTransmissionService": "DTS",
  277. "DatabaseBackupService": "DBS",
  278. "DisributeRelationalDatabaseService": "DRDS",
  279. "GraphDatabaseService": "GDS",
  280. "RelationalDatabaseService": "RDS",
  281. },
  282. "network": {
  283. "CloudEnterpriseNetwork": "CEN",
  284. "ElasticIpAddress": "EIP",
  285. "ServerLoadBalancer": "SLB",
  286. "VirtualPrivateCloud": "VPC",
  287. },
  288. "security": {
  289. "AntiBotService": "ABS",
  290. "AntifraudService": "AS",
  291. "CloudFirewall": "CFW",
  292. "ContentModeration": "CM",
  293. "DataEncryptionService": "DES",
  294. "WebApplicationFirewall": "WAF",
  295. },
  296. "storage": {
  297. "FileStorageHdfs": "HDFS",
  298. "FileStorageNas": "NAS",
  299. "HybridBackupRecovery": "HBR",
  300. "HybridCloudDisasterRecovery": "HDR",
  301. "ObjectStorageService": "OSS",
  302. "ObjectTableStore": "OTS",
  303. }
  304. },
  305. "oci": {
  306. "compute": {
  307. "Vm": "VirtualMachine",
  308. "Bm": "BareMetal"
  309. },
  310. }
  311. }