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.
 
 
 
 
 

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