Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

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