You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

441 line
12 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 = (
  11. "base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic",
  12. "generic", "openstack", "outscale")
  13. #########################
  14. # Resource Processing #
  15. #########################
  16. CMD_ROUND = "round"
  17. CMD_ROUND_OPTS = ("-w",)
  18. CMD_SVG2PNG = "inkscape"
  19. CMD_SVG2PNG_OPTS = ("-w", "256", "-h", "256", "--export-type", "png")
  20. CMD_SVG2PNG_IM = "convert"
  21. CMD_SVG2PNG_IM_OPTS = ("-shave", "25%x25%", "-resize", "256x256!")
  22. FILE_PREFIXES = {
  23. "onprem": (),
  24. "aws": ("Amazon-", "AWS-"),
  25. "azure": ("Azure-",),
  26. "gcp": ("Cloud-",),
  27. "firebase": ("Cloud-",),
  28. "k8s": (),
  29. "alibabacloud": (),
  30. "oci": ("OCI-icon-",),
  31. "programming": (),
  32. "saas": (),
  33. "elastic": (),
  34. "outscale": (),
  35. "generic": (),
  36. "openstack": (),
  37. }
  38. #########################
  39. # Doc Auto Generation #
  40. #########################
  41. TMPL_APIDOC = "apidoc.tmpl"
  42. #########################
  43. # Class Auto Generation #
  44. #########################
  45. TMPL_MODULE = "module.tmpl"
  46. UPPER_WORDS = {
  47. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "nat", "vpc", "waf", "sdk"),
  48. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  49. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "iap", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  50. "firebase": ("ab", "fcm", "ml"),
  51. "k8s": (
  52. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
  53. "sa", "sc", "sts", "svc",
  54. ),
  55. "oci": ("oci", "ocid", "oke", "ocir", "ddos", "waf", "bm", "vm", "cdn", "vpn", "dns", "nat", "dms", "api", "id"),
  56. "elastic": ("apm", "siem", "ece", "eck"),
  57. "generic": ("vpn", "ios", "xen", "sql", "lxc"),
  58. "outscale": ("osc",),
  59. "openstack": ("rpm", "loci", "nfv", "ec2api"),
  60. "pve": ("pve"),
  61. }
  62. TITLE_WORDS = {
  63. "onprem": {
  64. "onprem": "OnPrem",
  65. },
  66. "alibabacloud": {
  67. "alibabacloud": "AlibabaCloud"
  68. },
  69. "aws": {
  70. "cloudfront": "CloudFront"
  71. },
  72. "openstack": {
  73. "openstack": "OpenStack"
  74. },
  75. }
  76. # TODO: check if the classname exists
  77. ALIASES = {
  78. "onprem": {
  79. "analytics": {
  80. "Powerbi": "PowerBI"
  81. },
  82. "ci": {
  83. "Circleci": "CircleCI",
  84. "Concourseci": "ConcourseCI",
  85. "Droneci": "DroneCI",
  86. "Gitlabci": "GitlabCI",
  87. "Travisci": "TravisCI",
  88. "Teamcity": "TC",
  89. "Zuulci": "ZuulCI",
  90. },
  91. "container": {
  92. "Lxc": "LXC",
  93. "Rkt": "RKT",
  94. },
  95. "database": {
  96. "Clickhouse": "ClickHouse",
  97. "Cockroachdb": "CockroachDB",
  98. "Couchdb": "CouchDB",
  99. "Hbase": "HBase",
  100. "Influxdb": "InfluxDB",
  101. "Janusgraph": "JanusGraph",
  102. "Mariadb": "MariaDB",
  103. "Mongodb": "MongoDB",
  104. "Mssql": "MSSQL",
  105. "Mysql": "MySQL",
  106. "Postgresql": "PostgreSQL",
  107. },
  108. "gitops": {
  109. "Argocd": "ArgoCD",
  110. },
  111. "logging": {
  112. "Fluentbit": "FluentBit",
  113. "Rsyslog": "RSyslog",
  114. },
  115. "network": {
  116. "Etcd": "ETCD",
  117. "Haproxy": "HAProxy",
  118. "OpenServiceMesh": "OSM",
  119. "Opnsense": "OPNSense",
  120. "Pfsense": "PFSense",
  121. "Vyos": "VyOS"
  122. },
  123. "proxmox": {
  124. "Pve": "ProxmoxVE",
  125. },
  126. "queue": {
  127. "Activemq": "ActiveMQ",
  128. "Rabbitmq": "RabbitMQ",
  129. "Zeromq": "ZeroMQ",
  130. },
  131. "storage": {
  132. "Ceph": "CEPH",
  133. "CephOsd": "CEPH_OSD",
  134. },
  135. "workflow": {
  136. "Kubeflow": "KubeFlow",
  137. "Nifi": "NiFi",
  138. }
  139. },
  140. "aws": {
  141. "analytics": {
  142. "ElasticsearchService": "ES",
  143. },
  144. "business": {
  145. "AlexaForBusiness": "A4B"
  146. },
  147. "blockchain": {
  148. "QuantumLedgerDatabaseQldb": "QLDB"
  149. },
  150. "compute": {
  151. "ApplicationAutoScaling": "AutoScaling",
  152. "EC2Ami": "AMI",
  153. "EC2ContainerRegistry": "ECR",
  154. "ElasticBeanstalk": "EB",
  155. "ElasticContainerService": "ECS",
  156. "ElasticKubernetesService": "EKS",
  157. "ServerlessApplicationRepository": "SAR",
  158. },
  159. "database": {
  160. "DatabaseMigrationService": "DMS",
  161. "DocumentdbMongodbCompatibility": "DocumentDB",
  162. "DynamodbDax": "DAX",
  163. "DynamodbGlobalSecondaryIndex": "DynamodbGSI",
  164. "Database": "DB",
  165. "Dynamodb": "DDB",
  166. "Elasticache": "ElastiCache",
  167. "QuantumLedgerDatabaseQldb": "QLDB",
  168. },
  169. "devtools": {
  170. "CommandLineInterface": "CLI",
  171. "DeveloperTools": "DevTools",
  172. },
  173. "engagement": {
  174. "SimpleEmailServiceSes": "SES",
  175. },
  176. "general": {
  177. "GenericOfficeBuilding": "OfficeBuilding",
  178. },
  179. "integration": {
  180. "SimpleNotificationServiceSns": "SNS",
  181. "SimpleQueueServiceSqs": "SQS",
  182. "StepFunctions": "SF",
  183. },
  184. "iot": {
  185. "Freertos": "FreeRTOS",
  186. "IotHardwareBoard": "IotBoard",
  187. },
  188. "management": {
  189. "SystemsManager": "SSM",
  190. "SystemsManagerParameterStore": "ParameterStore",
  191. },
  192. "migration": {
  193. "ApplicationDiscoveryService": "ADS",
  194. "CloudendureMigration": "CEM",
  195. "DatabaseMigrationService": "DMS",
  196. "MigrationAndTransfer": "MAT",
  197. "ServerMigrationService": "SMS",
  198. },
  199. "ml": {
  200. "DeepLearningContainers": "DLC",
  201. },
  202. "network": {
  203. "CloudFront": "CF",
  204. "ElasticLoadBalancing": "ELB",
  205. "ElbApplicationLoadBalancer": "ALB",
  206. "ElbClassicLoadBalancer": "CLB",
  207. "ElbNetworkLoadBalancer": "NLB",
  208. "GlobalAccelerator": "GAX",
  209. },
  210. "security": {
  211. "CertificateManager": "ACM",
  212. "Cloudhsm": "CloudHSM",
  213. "DirectoryService": "DS",
  214. "FirewallManager": "FMS",
  215. "IdentityAndAccessManagementIamAccessAnalyzer": "IAMAccessAnalyzer",
  216. "IdentityAndAccessManagementIamAWSSts": "IAMAWSSts",
  217. "IdentityAndAccessManagementIamPermissions": "IAMPermissions",
  218. "IdentityAndAccessManagementIamRole": "IAMRole",
  219. "IdentityAndAccessManagementIam": "IAM",
  220. "KeyManagementService": "KMS",
  221. "ResourceAccessManager": "RAM",
  222. },
  223. "storage": {
  224. "CloudendureDisasterRecovery": "CDR",
  225. "ElasticBlockStoreEBS": "EBS",
  226. "ElasticFileSystemEFS": "EFS",
  227. "Fsx": "FSx",
  228. "SimpleStorageServiceS3": "S3",
  229. },
  230. },
  231. "azure": {
  232. "compute": {
  233. "ContainerRegistries": "ACR",
  234. "KubernetesServices": "AKS",
  235. "VMScaleSet": "VMSS"
  236. },
  237. },
  238. "gcp": {
  239. "analytics": {
  240. "Bigquery": "BigQuery",
  241. "Pubsub": "PubSub",
  242. },
  243. "compute": {
  244. "AppEngine": "GAE",
  245. "Functions": "GCF",
  246. "ComputeEngine": "GCE",
  247. "KubernetesEngine": "GKE",
  248. },
  249. "database": {
  250. "Bigtable": "BigTable",
  251. },
  252. "devtools": {
  253. "ContainerRegistry": "GCR",
  254. },
  255. "ml": {
  256. "Automl": "AutoML",
  257. "NaturalLanguageAPI": "NLAPI",
  258. "SpeechToText": "STT",
  259. "TextToSpeech": "TTS",
  260. },
  261. "network": {
  262. "VirtualPrivateCloud": "VPC"
  263. },
  264. "security": {
  265. "KeyManagementService": "KMS",
  266. "SecurityCommandCenter": "SCC",
  267. },
  268. "storage": {
  269. "Storage": "GCS",
  270. },
  271. },
  272. "firebase": {
  273. "grow": {
  274. "Messaging": "FCM"
  275. }
  276. },
  277. "k8s": {
  278. "clusterconfig": {
  279. "Limits": "LimitRange",
  280. "HPA": "HorizontalPodAutoscaler",
  281. },
  282. "compute": {
  283. "Deploy": "Deployment",
  284. "DS": "DaemonSet",
  285. "RS": "ReplicaSet",
  286. "STS": "StatefulSet"
  287. },
  288. "controlplane": {
  289. "API": "APIServer",
  290. "CM": "ControllerManager",
  291. "KProxy": "KubeProxy",
  292. "Sched": "Scheduler",
  293. },
  294. "group": {
  295. "NS": "Namespace",
  296. },
  297. "network": {
  298. "Ep": "Endpoint",
  299. "Ing": "Ingress",
  300. "Netpol": "NetworkPolicy",
  301. "SVC": "Service",
  302. },
  303. "podconfig": {
  304. "CM": "ConfigMap",
  305. },
  306. "rbac": {
  307. "CRole": "ClusterRole",
  308. "CRB": "ClusterRoleBinding",
  309. "RB": "RoleBinding",
  310. "SA": "ServiceAccount",
  311. },
  312. "storage": {
  313. "PV": "PersistentVolume",
  314. "PVC": "PersistentVolumeClaim",
  315. "SC": "StorageClass",
  316. "Vol": "Volume",
  317. },
  318. },
  319. "alibabacloud": {
  320. "application": {
  321. "LogService": "SLS",
  322. "MessageNotificationService": "MNS",
  323. "PerformanceTestingService": "PTS",
  324. "SmartConversationAnalysis": "SCA",
  325. },
  326. "compute": {
  327. "AutoScaling": "ESS",
  328. "ElasticComputeService": "ECS",
  329. "ElasticContainerInstance": "ECI",
  330. "ElasticHighPerformanceComputing": "EHPC",
  331. "FunctionCompute": "FC",
  332. "OperationOrchestrationService": "OOS",
  333. "ResourceOrchestrationService": "ROS",
  334. "ServerLoadBalancer": "SLB",
  335. "ServerlessAppEngine": "SAE",
  336. "SimpleApplicationServer": "SAS",
  337. "WebAppService": "WAS",
  338. },
  339. "database": {
  340. "DataManagementService": "DMS",
  341. "DataTransmissionService": "DTS",
  342. "DatabaseBackupService": "DBS",
  343. "DisributeRelationalDatabaseService": "DRDS",
  344. "GraphDatabaseService": "GDS",
  345. "RelationalDatabaseService": "RDS",
  346. },
  347. "network": {
  348. "CloudEnterpriseNetwork": "CEN",
  349. "ElasticIpAddress": "EIP",
  350. "ServerLoadBalancer": "SLB",
  351. "VirtualPrivateCloud": "VPC",
  352. },
  353. "security": {
  354. "AntiBotService": "ABS",
  355. "AntifraudService": "AS",
  356. "CloudFirewall": "CFW",
  357. "ContentModeration": "CM",
  358. "DataEncryptionService": "DES",
  359. "WebApplicationFirewall": "WAF",
  360. },
  361. "storage": {
  362. "FileStorageHdfs": "HDFS",
  363. "FileStorageNas": "NAS",
  364. "HybridBackupRecovery": "HBR",
  365. "HybridCloudDisasterRecovery": "HDR",
  366. "ObjectStorageService": "OSS",
  367. "ObjectTableStore": "OTS",
  368. }
  369. },
  370. "oci": {
  371. "compute": {
  372. "VM": "VirtualMachine",
  373. "VMWhite": "VirtualMachineWhite",
  374. "BM": "BareMetal",
  375. "BMWhite": "BareMetalWhite",
  376. "OCIR": "OCIRegistry",
  377. "OCIRWhite": "OCIRegistryWhite",
  378. "OKE": "ContainerEngine",
  379. "OKEWhite": "ContainerEngineWhite",
  380. },
  381. "database": {
  382. "Autonomous": "ADB",
  383. "AutonomousWhite": "ADBWhite",
  384. "DatabaseService": "DBService",
  385. "DatabaseServiceWhite": "DBServiceWhite",
  386. }
  387. },
  388. "programming": {
  389. "framework": {
  390. "Fastapi": "FastAPI"
  391. },
  392. "language": {
  393. "Javascript": "JavaScript",
  394. "Nodejs": "NodeJS",
  395. "Php": "PHP",
  396. "Typescript": "TypeScript"
  397. },
  398. },
  399. "saas": {
  400. "logging": {
  401. "Datadog": "DataDog",
  402. "Newrelic": "NewRelic"
  403. }
  404. },
  405. "elastic": {
  406. "elasticsearch": {
  407. "Logstash": "LogStash",
  408. }
  409. },
  410. "outscale": {
  411. "Osc": "OSC",
  412. },
  413. "generic": {},
  414. "openstack": {
  415. "user": {
  416. "Openstackclient": "OpenStackClient",
  417. },
  418. "billing": {
  419. "Cloudkitty": "CloudKitty",
  420. },
  421. "deployment": {
  422. "Kolla": "KollaAnsible",
  423. "Tripleo": "TripleO",
  424. }
  425. },
  426. }