|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- # 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", "oci")
-
- #########################
- # Resource Processing #
- #########################
-
- CMD_ROUND = "round"
- CMD_ROUND_OPTS = ("-w",)
- CMD_SVG2PNG = "inkscape"
- CMD_SVG2PNG_OPTS = ("-z", "-w", "256", "-h", "256", "--export-type", "png")
- CMD_SVG2PNG_IM = "convert"
- CMD_SVG2PNG_IM_OPTS = ("-shave", "25%x25%", "-resize", "256x256!")
-
-
- FILE_PREFIXES = {
- "aws": ("amazon-", "aws-"),
- "azure": ("azure-",),
- "gcp": ("cloud-",),
- "k8s": (),
- "alibabacloud": (),
- "oci": ("OCI-",),
- }
-
- #########################
- # 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",
- ),
- "oci": ("oci",),
- }
-
- 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",
- }
- },
- "oci": {
- "compute": {
- "Vm": "VirtualMachine",
- "Bm": "BareMetal"
- },
- }
- }
|