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

272 行
7.6 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 = ("base", "aws", "azure", "gcp", "k8s", "alibabacloud", "oci")
  11. #########################
  12. # Resource Processing #
  13. #########################
  14. CMD_ROUND = "round"
  15. CMD_ROUND_OPTS = ("-w",)
  16. CMD_SVG2PNG = "inkscape"
  17. CMD_SVG2PNG_OPTS = ("-z", "-w", "256", "-h", "256", "--export-type", "png")
  18. CMD_SVG2PNG_IM = "convert"
  19. CMD_SVG2PNG_IM_OPTS = ("-shave", "25%x25%", "-resize", "256x256!")
  20. FILE_PREFIXES = {
  21. "aws": ("amazon-", "aws-"),
  22. "azure": ("azure-",),
  23. "gcp": ("cloud-",),
  24. "k8s": (),
  25. "alibabacloud": (),
  26. "oci": ("OCI-",),
  27. }
  28. #########################
  29. # Doc Auto Generation #
  30. #########################
  31. TMPL_APIDOC = "apidoc.tmpl"
  32. #########################
  33. # Class Auto Generation #
  34. #########################
  35. TMPL_MODULE = "module.tmpl"
  36. UPPER_WORDS = {
  37. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  38. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  39. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  40. "k8s": (
  41. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
  42. "sa", "sc", "sts", "svc",
  43. ),
  44. "oci": ("oci",),
  45. }
  46. TITLE_WORDS = {
  47. "alibabacloud": {
  48. "alibabacloud": "AlibabaCloud"
  49. }
  50. }
  51. # TODO: check if the classname exists
  52. ALIASES = {
  53. "aws": {
  54. "analytics": {
  55. "ElasticsearchService": "ES",
  56. },
  57. "compute": {
  58. "ApplicationAutoScaling": "AutoScaling",
  59. "EC2ContainerRegistry": "ECR",
  60. "ElasticBeanstalk": "EB",
  61. "ElasticContainerService": "ECS",
  62. "ElasticKubernetesService": "EKS",
  63. "ServerlessApplicationRepository": "SAR",
  64. },
  65. "database": {
  66. "DatabaseMigrationService": "DMS",
  67. "DocumentdbMongodbCompatibility": "DocumentDB",
  68. "Database": "DB",
  69. "Dynamodb": "DDB",
  70. "Elasticache": "ElastiCache",
  71. "QuantumLedgerDatabaseQldb": "QLDB",
  72. },
  73. "devtools": {
  74. "CommandLineInterface": "CLI",
  75. "DeveloperTools": "DevTools",
  76. },
  77. "integration": {
  78. "SimpleNotificationServiceSns": "SNS",
  79. "SimpleQueueServiceSqs": "SQS",
  80. "StepFunctions": "SF",
  81. },
  82. "iot": {
  83. "Freertos": "FreeRTOS",
  84. },
  85. "migration": {
  86. "ApplicationDiscoveryService": "ADS",
  87. "CloudendureMigration": "CEM",
  88. "DatabaseMigrationService": "DMS",
  89. "MigrationAndTransfer": "MAT",
  90. "ServerMigrationService": "SMS",
  91. },
  92. "ml": {
  93. "DeepLearningContainers": "DLC",
  94. },
  95. "network": {
  96. "Cloudfront": "CF",
  97. "ElasticLoadBalancing": "ELB",
  98. "GlobalAccelerator": "GAX",
  99. },
  100. "security": {
  101. "CertificateManager": "ACM",
  102. "Cloudhsm": "CloudHSM",
  103. "DirectoryService": "DS",
  104. "FirewallManager": "FMS",
  105. "IdentityAndAccessManagementIam": "IAM",
  106. "KeyManagementService": "KMS",
  107. "ResourceAccessManager": "RAM",
  108. },
  109. "storage": {
  110. "CloudendureDisasterRecovery": "CDR",
  111. "ElasticBlockStoreEBS": "EBS",
  112. "ElasticFileSystemEFS": "EFS",
  113. "Fsx": "FSx",
  114. "SimpleStorageServiceS3": "S3",
  115. },
  116. },
  117. "azure": {
  118. "compute": {
  119. "ContainerRegistries": "ACR",
  120. "KubernetesServices": "AKS",
  121. },
  122. },
  123. "gcp": {
  124. "analytics": {
  125. "Bigquery": "BigQuery",
  126. "Pubsub": "PubSub",
  127. },
  128. "compute": {
  129. "AppEngine": "GAE",
  130. "Functions": "GCF",
  131. "ComputeEngine": "GCE",
  132. "KubernetesEngine": "GKE",
  133. },
  134. "database": {
  135. "Bigtable": "BigTable",
  136. },
  137. "devtools": {
  138. "ContainerRegistry": "GCR",
  139. },
  140. "ml": {
  141. "Automl": "AutoML",
  142. "NaturalLanguageAPI": "NLAPI",
  143. "SpeechToText": "STT",
  144. "TextToSpeech": "TTS",
  145. },
  146. "network": {
  147. "VirtualPrivateCloud": "VPC"
  148. },
  149. "security": {
  150. "KeyManagementService": "KMS",
  151. "SecurityCommandCenter": "SCC",
  152. },
  153. "storage": {
  154. "Storage": "GCS",
  155. },
  156. },
  157. "k8s": {
  158. "clusterconfig": {
  159. "Limits": "LimitRange",
  160. "HPA": "HorizontalPodAutoscaler",
  161. },
  162. "compute": {
  163. "Deploy": "Deployment",
  164. "DS": "DaemonSet",
  165. "RS": "ReplicaSet",
  166. "STS": "StatefulSet"
  167. },
  168. "controlplane": {
  169. "API": "APIServer",
  170. "CM": "ControllerManager",
  171. "KProxy": "KubeProxy",
  172. "Sched": "Scheduler",
  173. },
  174. "group": {
  175. "NS": "Namespace",
  176. },
  177. "network": {
  178. "Ep": "Endpoint",
  179. "Ing": "Ingress",
  180. "Netpol": "NetworkPolicy",
  181. "SVC": "Service",
  182. },
  183. "podconfig": {
  184. "CM": "ConfigMap",
  185. },
  186. "rbac": {
  187. "CRole": "ClusterRole",
  188. "CRB": "ClusterRoleBinding",
  189. "RB": "RoleBinding",
  190. "SA": "ServiceAccount",
  191. },
  192. "storage": {
  193. "PV": "PersistnetVolume",
  194. "PVC": "PersistentVolumeClaim",
  195. "SC": "StorageClass",
  196. "Vol": "Volume",
  197. },
  198. },
  199. "alibabacloud": {
  200. "application": {
  201. "LogService": "SLS",
  202. "MessageNotificationService": "MNS",
  203. "PerformanceTestingService": "PTS",
  204. "SmartConversationAnalysis": "SCA",
  205. },
  206. "compute": {
  207. "AutoScaling": "ESS",
  208. "ElasticComputeService": "ECS",
  209. "ElasticContainerInstance": "ECI",
  210. "ElasticHighPerformanceComputing": "EHPC",
  211. "FunctionCompute": "FC",
  212. "OperationOrchestrationService": "OOS",
  213. "ResourceOrchestrationService": "ROS",
  214. "ServerLoadBalancer": "SLB",
  215. "ServerlessAppEngine": "SAE",
  216. "SimpleApplicationServer": "SAS",
  217. "WebAppService": "WAS",
  218. },
  219. "database": {
  220. "DataManagementService": "DMS",
  221. "DataTransmissionService": "DTS",
  222. "DatabaseBackupService": "DBS",
  223. "DisributeRelationalDatabaseService": "DRDS",
  224. "GraphDatabaseService": "GDS",
  225. "RelationalDatabaseService": "RDS",
  226. },
  227. "network": {
  228. "CloudEnterpriseNetwork": "CEN",
  229. "ElasticIpAddress": "EIP",
  230. "ServerLoadBalancer": "SLB",
  231. "VirtualPrivateCloud": "VPC",
  232. },
  233. "security": {
  234. "AntiBotService": "ABS",
  235. "AntifraudService": "AS",
  236. "CloudFirewall": "CFW",
  237. "ContentModeration": "CM",
  238. "DataEncryptionService": "DES",
  239. "WebApplicationFirewall": "WAF",
  240. },
  241. "storage": {
  242. "FileStorageHdfs": "HDFS",
  243. "FileStorageNas": "NAS",
  244. "HybridBackupRecovery": "HBR",
  245. "HybridCloudDisasterRecovery": "HDR",
  246. "ObjectStorageService": "OSS",
  247. "ObjectTableStore": "OTS",
  248. }
  249. },
  250. "oci": {
  251. "compute": {
  252. "Vm": "VirtualMachine",
  253. "Bm": "BareMetal"
  254. },
  255. }
  256. }