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.
 
 
 
 
 

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