feat: release OpsXShell 2.1.0 native Tauri edition
This commit is contained in:
1 parent
e9a0d21758
commit
a3dba0c6ed
311 files changed
+31748
-14897
No files matched your search
@@ -18,6 +18,19 @@ export interface ProxyConfig {
|
||||
password?: string
|
||||
}
|
||||
|
||||
/** Jump host / bastion credentials (ProxyJump-style) */
|
||||
export interface JumpHostConfig {
|
||||
host: string
|
||||
port?: number
|
||||
username: string
|
||||
password?: string
|
||||
privateKey?: string
|
||||
passphrase?: string
|
||||
authType?: AuthType
|
||||
/** Optional proxy used only when reaching the jump host */
|
||||
proxy?: ProxyConfig
|
||||
}
|
||||
|
||||
// 会话配置 (用于快速连接)
|
||||
export interface SSHConnectionConfig {
|
||||
host: string
|
||||
@@ -28,6 +41,20 @@ export interface SSHConnectionConfig {
|
||||
passphrase?: string
|
||||
authType?: AuthType
|
||||
proxy?: ProxyConfig
|
||||
/** 连接成功后自动发送到 shell 的命令(可含片段变量) */
|
||||
startupCommand?: string
|
||||
/** 单跳板(兼容);多跳请用 jumpHosts */
|
||||
jumpHost?: JumpHostConfig
|
||||
/** 有序跳板链:第一跳 → … → 最后一跳 → 目标 */
|
||||
jumpHosts?: JumpHostConfig[]
|
||||
/** TCP connect and SSH handshake timeout in seconds. */
|
||||
timeoutSeconds?: number
|
||||
/** Enable SSH protocol keepalive for this connection. */
|
||||
keepAlive?: boolean
|
||||
/** 单跳板会话 ID(兼容) */
|
||||
jumpSessionId?: string
|
||||
/** 有序跳板会话 ID 链(优先于 jumpSessionId) */
|
||||
jumpSessionIds?: string[]
|
||||
}
|
||||
|
||||
// 持久化会话
|
||||
@@ -42,6 +69,16 @@ export interface Session {
|
||||
privateKey?: string // 私钥路径或内容
|
||||
passphrase?: string // 私钥密码
|
||||
proxy?: ProxyConfig // 代理配置
|
||||
/** 连接成功后自动执行的启动命令 */
|
||||
startupCommand?: string
|
||||
/** 单跳板会话 ID(兼容) */
|
||||
jumpSessionId?: string
|
||||
/** 有序跳板会话 ID 链 JSON 持久化 */
|
||||
jumpSessionIds?: string[]
|
||||
/** 内联单跳板(兼容) */
|
||||
jumpHost?: JumpHostConfig
|
||||
/** 内联多跳板链 */
|
||||
jumpHosts?: JumpHostConfig[]
|
||||
group?: string
|
||||
tags?: string[]
|
||||
createdAt?: number
|
||||
@@ -59,6 +96,11 @@ export interface SessionCreateRequest {
|
||||
privateKey?: string
|
||||
passphrase?: string
|
||||
proxy?: ProxyConfig
|
||||
startupCommand?: string
|
||||
jumpSessionId?: string
|
||||
jumpSessionIds?: string[]
|
||||
jumpHost?: JumpHostConfig
|
||||
jumpHosts?: JumpHostConfig[]
|
||||
group?: string
|
||||
tags?: string[]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user