Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

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