Share Vault, persistence, SSH/SFTP, forwarding, and SwiftUI components across platforms. Add mobile editors, terminal input, standalone Assistant, Metrics navigation, transfers, and a unified Live Activity with host system icons. Validation: 35 iOS tests and 100 focused macOS tests pass; formatting and zh-Hans checks pass. The full macOS run reports 14 issues in the documented timing, Keychain, and popover suites. Remaining Assistant tool and CloudKit work is tracked in Memory/MOBILE_ROLLOUT.md.
30 lines
890 B
Swift
30 lines
890 B
Swift
import Foundation
|
|
import TermindDomain
|
|
|
|
import struct TermindDomain.Host
|
|
|
|
public nonisolated struct SSHRouteHopConfiguration: Sendable {
|
|
public var id: Host.ID
|
|
public var name: String
|
|
public var host: String
|
|
public var port: Int
|
|
public var username: String
|
|
public var credentials: [SSHCredentials]
|
|
public var expectedHostKeys: Set<SSHHostKeyIdentity>
|
|
public var proxy: SSHTransportProxy?
|
|
public init(
|
|
id: Host.ID, name: String, host: String, port: Int, username: String, credentials: [SSHCredentials],
|
|
expectedHostKeys: Set<SSHHostKeyIdentity>, proxy: SSHTransportProxy? = nil
|
|
) {
|
|
self.id = id
|
|
self.name = name
|
|
self.host = host
|
|
self.port = port
|
|
self.username = username
|
|
self.credentials = credentials
|
|
self.expectedHostKeys = expectedHostKeys
|
|
self.proxy = proxy
|
|
}
|
|
|
|
}
|