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.
 
 
 
 
 

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