mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-29 00:01:05 +00:00
feat: support mongodb management (#12486)
#### What this PR does / why we need it? Refs https://github.com/1Panel-dev/1Panel/issues/7759 #### Summary of your change #### Please indicate you've done the following: - [ ] Made sure tests are passing and test coverage is added if needed. - [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). - [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
This commit is contained in:
@@ -76,6 +76,66 @@ export namespace Database {
|
||||
forceDelete: boolean;
|
||||
deleteBackup: boolean;
|
||||
}
|
||||
export interface MongodbDBInfo {
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
name: string;
|
||||
mongodbName: string;
|
||||
from: string;
|
||||
username: string;
|
||||
password: string;
|
||||
isDelete: boolean;
|
||||
description: string;
|
||||
showPassword?: boolean;
|
||||
}
|
||||
export interface MongodbDBCreate {
|
||||
name: string;
|
||||
from: string;
|
||||
database: string;
|
||||
username: string;
|
||||
password: string;
|
||||
permission: string;
|
||||
description: string;
|
||||
}
|
||||
export interface MongodbLoadDB {
|
||||
from: string;
|
||||
type: string;
|
||||
database: string;
|
||||
}
|
||||
export interface MongodbDBDeleteCheck {
|
||||
id: number;
|
||||
type: string;
|
||||
database: string;
|
||||
}
|
||||
export interface MongodbDBDelete {
|
||||
id: number;
|
||||
type: string;
|
||||
database: string;
|
||||
forceDelete: boolean;
|
||||
deleteBackup: boolean;
|
||||
}
|
||||
export interface MongodbBind {
|
||||
database: string;
|
||||
name: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
export interface MongodbPassword {
|
||||
database: string;
|
||||
name: string;
|
||||
password: string;
|
||||
}
|
||||
export interface MongodbPrivileges {
|
||||
database: string;
|
||||
name: string;
|
||||
username: string;
|
||||
permission: string;
|
||||
}
|
||||
export interface MongodbPrivilegesLoad {
|
||||
database: string;
|
||||
name: string;
|
||||
username: string;
|
||||
}
|
||||
export interface MysqlVariables {
|
||||
mysqlName: string;
|
||||
binlog_cache_size: number;
|
||||
@@ -309,6 +369,7 @@ export namespace Database {
|
||||
from: string;
|
||||
address: string;
|
||||
port: number;
|
||||
initialDB: string;
|
||||
username: string;
|
||||
password: string;
|
||||
|
||||
@@ -326,6 +387,7 @@ export namespace Database {
|
||||
version: string;
|
||||
address: string;
|
||||
port: number;
|
||||
initialDB: string;
|
||||
username: string;
|
||||
password: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user