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.
 
 
 
 
 

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