Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

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