Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

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