|
- # fmt: off
-
- #########################
- # Application #
- #########################
-
- APP_NAME = "diagrams"
-
- DIR_DOC_ROOT = "docs/nodes"
- DIR_APP_ROOT = "diagrams"
- DIR_RESOURCE = "resources"
- DIR_TEMPLATE = "templates"
-
- PROVIDERS = ("base", "aws", "azure", "gcp", "k8s", "alibabacloud")
-
- #########################
- # Resource Processing #
- #########################
-
- CMD_ROUND = "round"
- CMD_ROUND_OPTS = ("-w",)
- CMD_SVG2PNG = "inkscape"
- CMD_SVG2PNG_OPTS = ("-z", "-w", "256", "-h", "256", "--export-type", "png")
-
- FILE_PREFIXES = {
- "aws": ("amazon-", "aws-"),
- "azure": ("azure-",),
- "gcp": ("cloud-",),
- "k8s": (),
- "alibabacloud": (),
- }
-
- #########################
- # Doc Auto Generation #
- #########################
-
- TMPL_APIDOC = "apidoc.tmpl"
-
- #########################
- # Class Auto Generation #
- #########################
-
- TMPL_MODULE = "module.tmpl"
-
- UPPER_WORDS = {
- "aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "vpc", "waf"),
- "azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
- "gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
- "k8s": (
- "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
- "sa", "sc", "sts", "svc",
- )
- }
-
- TITLE_WORDS = {
- "alibabacloud": {
- "alibabacloud": "AlibabaCloud"
- }
- }
-
- # TODO: check if the classname exists
- ALIASES = {
- "aws": {
- "analytics": {
- "ElasticsearchService": "ES",
- },
- "compute": {
- "ApplicationAutoScaling": "AutoScaling",
- "EC2ContainerRegistry": "ECR",
- "ElasticBeanstalk": "EB",
- "ElasticContainerService": "ECS",
- "ElasticKubernetesService": "EKS",
- "ServerlessApplicationRepository": "SAR",
- },
- "database": {
- "DatabaseMigrationService": "DMS",
- "DocumentdbMongodbCompatibility": "DocumentDB",
- "Database": "DB",
- "Dynamodb": "DDB",
- "Elasticache": "ElastiCache",
- "QuantumLedgerDatabaseQldb": "QLDB",
- },
- "devtools": {
- "CommandLineInterface": "CLI",
- "DeveloperTools": "DevTools",
- },
- "integration": {
- "SimpleNotificationServiceSns": "SNS",
- "SimpleQueueServiceSqs": "SQS",
- "StepFunctions": "SF",
- },
- "iot": {
- "Freertos": "FreeRTOS",
- },
- "migration": {
- "ApplicationDiscoveryService": "ADS",
- "CloudendureMigration": "CEM",
- "DatabaseMigrationService": "DMS",
- "MigrationAndTransfer": "MAT",
- "ServerMigrationService": "SMS",
- },
- "ml": {
- "DeepLearningContainers": "DLC",
- },
- "network": {
- "Cloudfront": "CF",
- "ElasticLoadBalancing": "ELB",
- "GlobalAccelerator": "GAX",
- },
- "security": {
- "CertificateManager": "ACM",
- "Cloudhsm": "CloudHSM",
- "DirectoryService": "DS",
- "FirewallManager": "FMS",
- "IdentityAndAccessManagementIam": "IAM",
- "KeyManagementService": "KMS",
- "ResourceAccessManager": "RAM",
- },
- "storage": {
- "CloudendureDisasterRecovery": "CDR",
- "ElasticBlockStoreEBS": "EBS",
- "ElasticFileSystemEFS": "EFS",
- "Fsx": "FSx",
- "SimpleStorageServiceS3": "S3",
- },
- },
- "azure": {
- "compute": {
- "ContainerRegistries": "ACR",
- "KubernetesServices": "AKS",
- },
- },
- "gcp": {
- "analytics": {
- "Bigquery": "BigQuery",
- "Pubsub": "PubSub",
- },
- "compute": {
- "AppEngine": "GAE",
- "Functions": "GCF",
- "ComputeEngine": "GCE",
- "KubernetesEngine": "GKE",
- },
- "database": {
- "Bigtable": "BigTable",
- },
- "devtools": {
- "ContainerRegistry": "GCR",
- },
- "ml": {
- "Automl": "AutoML",
- "NaturalLanguageAPI": "NLAPI",
- "SpeechToText": "STT",
- "TextToSpeech": "TTS",
- },
- "network": {
- "VirtualPrivateCloud": "VPC"
- },
- "security": {
- "KeyManagementService": "KMS",
- "SecurityCommandCenter": "SCC",
- },
- "storage": {
- "Storage": "GCS",
- },
- },
- "k8s": {
- "clusterconfig": {
- "Limits": "LimitRange",
- "HPA": "HorizontalPodAutoscaler",
- },
- "compute": {
- "Deploy": "Deployment",
- "DS": "DaemonSet",
- "RS": "ReplicaSet",
- "STS": "StatefulSet"
- },
- "controlplane": {
- "API": "APIServer",
- "CM": "ControllerManager",
- "KProxy": "KubeProxy",
- "Sched": "Scheduler",
- },
- "group": {
- "NS": "Namespace",
- },
- "network": {
- "Ep": "Endpoint",
- "Ing": "Ingress",
- "Netpol": "NetworkPolicy",
- "SVC": "Service",
- },
- "podconfig": {
- "CM": "ConfigMap",
- },
- "rbac": {
- "CRole": "ClusterRole",
- "CRB": "ClusterRoleBinding",
- "RB": "RoleBinding",
- "SA": "ServiceAccount",
- },
- "storage": {
- "PV": "PersistnetVolume",
- "PVC": "PersistentVolumeClaim",
- "SC": "StorageClass",
- "Vol": "Volume",
- },
- },
- "alibabacloud": {
- "application": {
- "LogService": "SLS",
- "MessageNotificationService": "MNS",
- "PerformanceTestingService": "PTS",
- "SmartConversationAnalysis": "SCA",
- },
- "compute": {
- "AutoScaling": "ESS",
- "ElasticComputeService": "ECS",
- "ElasticContainerInstance": "ECI",
- "ElasticHighPerformanceComputing": "EHPC",
- "FunctionCompute": "FC",
- "OperationOrchestrationService": "OOS",
- "ResourceOrchestrationService": "ROS",
- "ServerLoadBalancer": "SLB",
- "ServerlessAppEngine": "SAE",
- "SimpleApplicationServer": "SAS",
- "WebAppService": "WAS",
- },
- "database": {
- "DataManagementService": "DMS",
- "DataTransmissionService": "DTS",
- "DatabaseBackupService": "DBS",
- "DisributeRelationalDatabaseService": "DRDS",
- "GraphDatabaseService": "GDS",
- "RelationalDatabaseService": "RDS",
- },
- "network": {
- "CloudEnterpriseNetwork": "CEN",
- "ElasticIpAddress": "EIP",
- "ServerLoadBalancer": "SLB",
- "VirtualPrivateCloud": "VPC",
- },
- "security": {
- "AntiBotService": "ABS",
- "AntifraudService": "AS",
- "CloudFirewall": "CFW",
- "ContentModeration": "CM",
- "DataEncryptionService": "DES",
- "WebApplicationFirewall": "WAF",
- },
- "storage": {
- "FileStorageHdfs": "HDFS",
- "FileStorageNas": "NAS",
- "HybridBackupRecovery": "HBR",
- "HybridCloudDisasterRecovery": "HDR",
- "ObjectStorageService": "OSS",
- "ObjectTableStore": "OTS",
- }
- }
- }
|