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.

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