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.
 
 
 
 
 

431 rivejä
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. "ci": {
  80. "Circleci": "CircleCI",
  81. "Concourseci": "ConcourseCI",
  82. "Droneci": "DroneCI",
  83. "Gitlabci": "GitlabCI",
  84. "Travisci": "TravisCI",
  85. "Teamcity": "TC",
  86. "Zuulci": "ZuulCI",
  87. },
  88. "container": {
  89. "Lxc": "LXC",
  90. "Rkt": "RKT",
  91. },
  92. "database": {
  93. "Clickhouse": "ClickHouse",
  94. "Cockroachdb": "CockroachDB",
  95. "Couchdb": "CouchDB",
  96. "Hbase": "HBase",
  97. "Influxdb": "InfluxDB",
  98. "Janusgraph": "JanusGraph",
  99. "Mariadb": "MariaDB",
  100. "Mongodb": "MongoDB",
  101. "Mssql": "MSSQL",
  102. "Mysql": "MySQL",
  103. "Postgresql": "PostgreSQL",
  104. },
  105. "gitops": {
  106. "Argocd": "ArgoCD",
  107. },
  108. "logging": {
  109. "Fluentbit": "FluentBit",
  110. "Rsyslog": "RSyslog",
  111. },
  112. "network": {
  113. "Etcd": "ETCD",
  114. "Haproxy": "HAProxy",
  115. "OpenServiceMesh": "OSM",
  116. "Opnsense": "OPNSense",
  117. "Pfsense": "PFSense",
  118. "Vyos": "VyOS"
  119. },
  120. "proxmox": {
  121. "Pve": "ProxmoxVE",
  122. },
  123. "queue": {
  124. "Activemq": "ActiveMQ",
  125. "Rabbitmq": "RabbitMQ",
  126. "Zeromq": "ZeroMQ",
  127. },
  128. "storage": {
  129. "ceph": {
  130. "CEPH": "ceph",
  131. "Ceph-OSD": "CEPH-OSD"
  132. }
  133. },
  134. "workflow": {
  135. "Kubeflow": "KubeFlow",
  136. "Nifi": "NiFi",
  137. }
  138. },
  139. "aws": {
  140. "analytics": {
  141. "ElasticsearchService": "ES",
  142. },
  143. "business": {
  144. "AlexaForBusiness": "A4B"
  145. },
  146. "blockchain": {
  147. "QuantumLedgerDatabaseQldb": "QLDB"
  148. },
  149. "compute": {
  150. "ApplicationAutoScaling": "AutoScaling",
  151. "EC2ContainerRegistry": "ECR",
  152. "ElasticBeanstalk": "EB",
  153. "ElasticContainerService": "ECS",
  154. "ElasticKubernetesService": "EKS",
  155. "ServerlessApplicationRepository": "SAR",
  156. },
  157. "database": {
  158. "DatabaseMigrationService": "DMS",
  159. "DocumentdbMongodbCompatibility": "DocumentDB",
  160. "DynamodbDax": "DAX",
  161. "DynamodbGlobalSecondaryIndex": "DynamodbGSI",
  162. "Database": "DB",
  163. "Dynamodb": "DDB",
  164. "Elasticache": "ElastiCache",
  165. "QuantumLedgerDatabaseQldb": "QLDB",
  166. },
  167. "devtools": {
  168. "CommandLineInterface": "CLI",
  169. "DeveloperTools": "DevTools",
  170. },
  171. "engagement": {
  172. "SimpleEmailServiceSes": "SES",
  173. },
  174. "general": {
  175. "GenericOfficeBuilding": "OfficeBuilding",
  176. },
  177. "integration": {
  178. "SimpleNotificationServiceSns": "SNS",
  179. "SimpleQueueServiceSqs": "SQS",
  180. "StepFunctions": "SF",
  181. },
  182. "iot": {
  183. "Freertos": "FreeRTOS",
  184. "IotHardwareBoard": "IotBoard",
  185. },
  186. "management": {
  187. "SystemsManager": "SSM",
  188. "SystemsManagerParameterStore": "ParameterStore",
  189. },
  190. "migration": {
  191. "ApplicationDiscoveryService": "ADS",
  192. "CloudendureMigration": "CEM",
  193. "DatabaseMigrationService": "DMS",
  194. "MigrationAndTransfer": "MAT",
  195. "ServerMigrationService": "SMS",
  196. },
  197. "ml": {
  198. "DeepLearningContainers": "DLC",
  199. },
  200. "network": {
  201. "CloudFront": "CF",
  202. "ElasticLoadBalancing": "ELB",
  203. "GlobalAccelerator": "GAX",
  204. },
  205. "security": {
  206. "CertificateManager": "ACM",
  207. "Cloudhsm": "CloudHSM",
  208. "DirectoryService": "DS",
  209. "FirewallManager": "FMS",
  210. "IdentityAndAccessManagementIamAccessAnalyzer": "IAMAccessAnalyzer",
  211. "IdentityAndAccessManagementIamAWSSts": "IAMAWSSts",
  212. "IdentityAndAccessManagementIamPermissions": "IAMPermissions",
  213. "IdentityAndAccessManagementIamRole": "IAMRole",
  214. "IdentityAndAccessManagementIam": "IAM",
  215. "KeyManagementService": "KMS",
  216. "ResourceAccessManager": "RAM",
  217. },
  218. "storage": {
  219. "CloudendureDisasterRecovery": "CDR",
  220. "ElasticBlockStoreEBS": "EBS",
  221. "ElasticFileSystemEFS": "EFS",
  222. "Fsx": "FSx",
  223. "SimpleStorageServiceS3": "S3",
  224. },
  225. },
  226. "azure": {
  227. "compute": {
  228. "ContainerRegistries": "ACR",
  229. "KubernetesServices": "AKS",
  230. },
  231. },
  232. "gcp": {
  233. "analytics": {
  234. "Bigquery": "BigQuery",
  235. "Pubsub": "PubSub",
  236. },
  237. "compute": {
  238. "AppEngine": "GAE",
  239. "Functions": "GCF",
  240. "ComputeEngine": "GCE",
  241. "KubernetesEngine": "GKE",
  242. },
  243. "database": {
  244. "Bigtable": "BigTable",
  245. },
  246. "devtools": {
  247. "ContainerRegistry": "GCR",
  248. },
  249. "ml": {
  250. "Automl": "AutoML",
  251. "NaturalLanguageAPI": "NLAPI",
  252. "SpeechToText": "STT",
  253. "TextToSpeech": "TTS",
  254. },
  255. "network": {
  256. "VirtualPrivateCloud": "VPC"
  257. },
  258. "security": {
  259. "KeyManagementService": "KMS",
  260. "SecurityCommandCenter": "SCC",
  261. },
  262. "storage": {
  263. "Storage": "GCS",
  264. },
  265. },
  266. "firebase": {
  267. "grow": {
  268. "Messaging": "FCM"
  269. }
  270. },
  271. "k8s": {
  272. "clusterconfig": {
  273. "Limits": "LimitRange",
  274. "HPA": "HorizontalPodAutoscaler",
  275. },
  276. "compute": {
  277. "Deploy": "Deployment",
  278. "DS": "DaemonSet",
  279. "RS": "ReplicaSet",
  280. "STS": "StatefulSet"
  281. },
  282. "controlplane": {
  283. "API": "APIServer",
  284. "CM": "ControllerManager",
  285. "KProxy": "KubeProxy",
  286. "Sched": "Scheduler",
  287. },
  288. "group": {
  289. "NS": "Namespace",
  290. },
  291. "network": {
  292. "Ep": "Endpoint",
  293. "Ing": "Ingress",
  294. "Netpol": "NetworkPolicy",
  295. "SVC": "Service",
  296. },
  297. "podconfig": {
  298. "CM": "ConfigMap",
  299. },
  300. "rbac": {
  301. "CRole": "ClusterRole",
  302. "CRB": "ClusterRoleBinding",
  303. "RB": "RoleBinding",
  304. "SA": "ServiceAccount",
  305. },
  306. "storage": {
  307. "PV": "PersistentVolume",
  308. "PVC": "PersistentVolumeClaim",
  309. "SC": "StorageClass",
  310. "Vol": "Volume",
  311. },
  312. },
  313. "alibabacloud": {
  314. "application": {
  315. "LogService": "SLS",
  316. "MessageNotificationService": "MNS",
  317. "PerformanceTestingService": "PTS",
  318. "SmartConversationAnalysis": "SCA",
  319. },
  320. "compute": {
  321. "AutoScaling": "ESS",
  322. "ElasticComputeService": "ECS",
  323. "ElasticContainerInstance": "ECI",
  324. "ElasticHighPerformanceComputing": "EHPC",
  325. "FunctionCompute": "FC",
  326. "OperationOrchestrationService": "OOS",
  327. "ResourceOrchestrationService": "ROS",
  328. "ServerLoadBalancer": "SLB",
  329. "ServerlessAppEngine": "SAE",
  330. "SimpleApplicationServer": "SAS",
  331. "WebAppService": "WAS",
  332. },
  333. "database": {
  334. "DataManagementService": "DMS",
  335. "DataTransmissionService": "DTS",
  336. "DatabaseBackupService": "DBS",
  337. "DisributeRelationalDatabaseService": "DRDS",
  338. "GraphDatabaseService": "GDS",
  339. "RelationalDatabaseService": "RDS",
  340. },
  341. "network": {
  342. "CloudEnterpriseNetwork": "CEN",
  343. "ElasticIpAddress": "EIP",
  344. "ServerLoadBalancer": "SLB",
  345. "VirtualPrivateCloud": "VPC",
  346. },
  347. "security": {
  348. "AntiBotService": "ABS",
  349. "AntifraudService": "AS",
  350. "CloudFirewall": "CFW",
  351. "ContentModeration": "CM",
  352. "DataEncryptionService": "DES",
  353. "WebApplicationFirewall": "WAF",
  354. },
  355. "storage": {
  356. "FileStorageHdfs": "HDFS",
  357. "FileStorageNas": "NAS",
  358. "HybridBackupRecovery": "HBR",
  359. "HybridCloudDisasterRecovery": "HDR",
  360. "ObjectStorageService": "OSS",
  361. "ObjectTableStore": "OTS",
  362. }
  363. },
  364. "oci": {
  365. "compute": {
  366. "VM": "VirtualMachine",
  367. "VMWhite": "VirtualMachineWhite",
  368. "BM": "BareMetal",
  369. "BMWhite": "BareMetalWhite",
  370. "OCIR": "OCIRegistry",
  371. "OCIRWhite": "OCIRegistryWhite",
  372. "OKE": "ContainerEngine",
  373. "OKEWhite": "ContainerEngineWhite",
  374. },
  375. "database": {
  376. "AutonomousDatabase": "ADB",
  377. "AutonomousDatabaseWhite": "ADBWhite",
  378. "Databaseservice": "DBService",
  379. "DatabaseserviceWhite": "DBServiceWhite",
  380. }
  381. },
  382. "programming": {
  383. "language": {
  384. "Javascript": "JavaScript",
  385. "Nodejs": "NodeJS",
  386. "Php": "PHP",
  387. "Typescript": "TypeScript"
  388. },
  389. },
  390. "saas": {
  391. "logging": {
  392. "Datadog": "DataDog",
  393. }
  394. },
  395. "elastic": {
  396. "elasticsearch": {
  397. "Logstash": "LogStash",
  398. }
  399. },
  400. "outscale": {
  401. "Osc": "OSC",
  402. },
  403. "generic": {},
  404. "openstack": {
  405. "user": {
  406. "Openstackclient": "OpenStackClient",
  407. },
  408. "billing": {
  409. "Cloudkitty": "CloudKitty",
  410. },
  411. "deployment": {
  412. "Kolla": "KollaAnsible",
  413. "Tripleo": "TripleO",
  414. }
  415. },
  416. }