Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

203 linhas
5.5 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")
  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. FILE_PREFIXES = {
  19. "aws": ("amazon-", "aws-"),
  20. "azure": ("azure-",),
  21. "gcp": ("cloud-",),
  22. "k8s": (),
  23. }
  24. #########################
  25. # Doc Auto Generation #
  26. #########################
  27. TMPL_APIDOC = "apidoc.tmpl"
  28. #########################
  29. # Class Auto Generation #
  30. #########################
  31. TMPL_MODULE = "module.tmpl"
  32. UPPER_WORDS = {
  33. "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
  34. "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
  35. "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
  36. "k8s": (
  37. "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
  38. "sa", "sc", "sts", "svc",
  39. ),
  40. }
  41. # TODO: check if the classname exists
  42. ALIASES = {
  43. "aws": {
  44. "analytics": {
  45. "ElasticsearchService": "ES",
  46. },
  47. "compute": {
  48. "ApplicationAutoScaling": "AutoScaling",
  49. "EC2ContainerRegistry": "ECR",
  50. "ElasticBeanstalk": "EB",
  51. "ElasticContainerService": "ECS",
  52. "ElasticKubernetesService": "EKS",
  53. "ServerlessApplicationRepository": "SAR",
  54. },
  55. "database": {
  56. "DatabaseMigrationService": "DMS",
  57. "DocumentdbMongodbCompatibility": "DocumentDB",
  58. "Database": "DB",
  59. "Dynamodb": "DDB",
  60. "Elasticache": "ElastiCache",
  61. "QuantumLedgerDatabaseQldb": "QLDB",
  62. },
  63. "devtools": {
  64. "CommandLineInterface": "CLI",
  65. "DeveloperTools": "DevTools",
  66. },
  67. "integration": {
  68. "SimpleNotificationServiceSns": "SNS",
  69. "SimpleQueueServiceSqs": "SQS",
  70. "StepFunctions": "SF",
  71. },
  72. "iot": {
  73. "Freertos": "FreeRTOS",
  74. },
  75. "migration": {
  76. "ApplicationDiscoveryService": "ADS",
  77. "CloudendureMigration": "CEM",
  78. "DatabaseMigrationService": "DMS",
  79. "MigrationAndTransfer": "MAT",
  80. "ServerMigrationService": "SMS",
  81. },
  82. "ml": {
  83. "DeepLearningContainers": "DLC",
  84. },
  85. "network": {
  86. "Cloudfront": "CF",
  87. "ElasticLoadBalancing": "ELB",
  88. "GlobalAccelerator": "GAX",
  89. },
  90. "security": {
  91. "CertificateManager": "ACM",
  92. "Cloudhsm": "CloudHSM",
  93. "DirectoryService": "DS",
  94. "FirewallManager": "FMS",
  95. "IdentityAndAccessManagementIam": "IAM",
  96. "KeyManagementService": "KMS",
  97. "ResourceAccessManager": "RAM",
  98. },
  99. "storage": {
  100. "CloudendureDisasterRecovery": "CDR",
  101. "ElasticBlockStoreEBS": "EBS",
  102. "ElasticFileSystemEFS": "EFS",
  103. "Fsx": "FSx",
  104. "SimpleStorageServiceS3": "S3",
  105. },
  106. },
  107. "azure": {
  108. "compute": {
  109. "ContainerRegistries": "ACR",
  110. "KubernetesServices": "AKS",
  111. },
  112. },
  113. "gcp": {
  114. "analytics": {
  115. "Bigquery": "BigQuery",
  116. "Pubsub": "PubSub",
  117. },
  118. "compute": {
  119. "AppEngine": "GAE",
  120. "Functions": "GCF",
  121. "ComputeEngine": "GCE",
  122. "KubernetesEngine": "GKE",
  123. },
  124. "database": {
  125. "Bigtable": "BigTable",
  126. },
  127. "devtools": {
  128. "ContainerRegistry": "GCR",
  129. },
  130. "ml": {
  131. "Automl": "AutoML",
  132. "NaturalLanguageAPI": "NLAPI",
  133. "SpeechToText": "STT",
  134. "TextToSpeech": "TTS",
  135. },
  136. "network": {
  137. "VirtualPrivateCloud": "VPC"
  138. },
  139. "security": {
  140. "KeyManagementService": "KMS",
  141. "SecurityCommandCenter": "SCC",
  142. },
  143. "storage": {
  144. "Storage": "GCS",
  145. },
  146. },
  147. "k8s": {
  148. "clusterconfig": {
  149. "Limits": "LimitRange",
  150. "HPA": "HorizontalPodAutoscaler",
  151. },
  152. "compute": {
  153. "Deploy": "Deployment",
  154. "DS": "DaemonSet",
  155. "RS": "ReplicaSet",
  156. "STS": "StatefulSet"
  157. },
  158. "controlplane": {
  159. "API": "APIServer",
  160. "CM": "ControllerManager",
  161. "KProxy": "KubeProxy",
  162. "Sched": "Scheduler",
  163. },
  164. "group": {
  165. "NS": "Namespace",
  166. },
  167. "network": {
  168. "Ep": "Endpoint",
  169. "Ing": "Ingress",
  170. "Netpol": "NetworkPolicy",
  171. "SVC": "Service",
  172. },
  173. "podconfig": {
  174. "CM": "ConfigMap",
  175. },
  176. "rbac": {
  177. "CRole": "ClusterRole",
  178. "CRB": "ClusterRoleBinding",
  179. "RB": "RoleBinding",
  180. "SA": "ServiceAccount",
  181. },
  182. "storage": {
  183. "PV": "PersistnetVolume",
  184. "PVC": "PersistentVolumeClaim",
  185. "SC": "StorageClass",
  186. "Vol": "Volume",
  187. },
  188. }
  189. }