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.
 
 
 
 
 

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