25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

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