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.
 
 
 
 
 

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