Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

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