選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.py 13 KiB

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