|
|
@ -58,36 +58,43 @@ class Protocol(ChoicesMixin, models.TextChoices):
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
cls.mysql: {
|
|
|
|
cls.mysql: {
|
|
|
|
'port': 3306,
|
|
|
|
'port': 3306,
|
|
|
|
|
|
|
|
'setting': {},
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'setting': {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.mariadb: {
|
|
|
|
cls.mariadb: {
|
|
|
|
'port': 3306,
|
|
|
|
'port': 3306,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.postgresql: {
|
|
|
|
cls.postgresql: {
|
|
|
|
'port': 5432,
|
|
|
|
'port': 5432,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.oracle: {
|
|
|
|
cls.oracle: {
|
|
|
|
'port': 1521,
|
|
|
|
'port': 1521,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.sqlserver: {
|
|
|
|
cls.sqlserver: {
|
|
|
|
'port': 1433,
|
|
|
|
'port': 1433,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.clickhouse: {
|
|
|
|
cls.clickhouse: {
|
|
|
|
'port': 9000,
|
|
|
|
'port': 9000,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.mongodb: {
|
|
|
|
cls.mongodb: {
|
|
|
|
'port': 27017,
|
|
|
|
'port': 27017,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.redis: {
|
|
|
|
cls.redis: {
|
|
|
|
'port': 6379,
|
|
|
|
'port': 6379,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['password'],
|
|
|
|
'secret_types': ['password'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -97,6 +104,7 @@ class Protocol(ChoicesMixin, models.TextChoices):
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
cls.k8s: {
|
|
|
|
cls.k8s: {
|
|
|
|
'port': 443,
|
|
|
|
'port': 443,
|
|
|
|
|
|
|
|
'required': True,
|
|
|
|
'secret_types': ['token'],
|
|
|
|
'secret_types': ['token'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cls.http: {
|
|
|
|
cls.http: {
|
|
|
|