Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

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