Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

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