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.
 
 
 
 
 

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