mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: host lock api so a plugin can load hosts from a config file (#1581)
This commit is contained in:
1 parent
1cdbfc674c
commit
2c785fe35b
34 files changed
+1388
-52
No files matched your search
@@ -37,6 +37,13 @@ export interface JumpHost {
|
||||
hostId: number;
|
||||
}
|
||||
|
||||
/** The plugin that manages a host, from ctx.hosts.locks. */
|
||||
export interface HostLock {
|
||||
pluginId: string;
|
||||
pluginName: string;
|
||||
note: string | null;
|
||||
}
|
||||
|
||||
export type Host = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -116,6 +123,8 @@ export type Host = {
|
||||
ownerUsername?: string;
|
||||
/** A read-only copy of a host shared with the linked account. */
|
||||
sharedCopy?: boolean;
|
||||
/** Set when a plugin manages this host: read only, pins and order still work. */
|
||||
lock?: HostLock;
|
||||
/** Desktop only: kept on this device, never synced to the server. */
|
||||
localOnly?: boolean;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
HostLock,
|
||||
HostProtocolAuthSummary,
|
||||
HostSshOptions,
|
||||
HostTerminalConfig,
|
||||
@@ -104,6 +105,8 @@ export type Host = {
|
||||
* linked to. It arrives through sync and is managed on the server.
|
||||
*/
|
||||
sharedCopy?: boolean;
|
||||
/** Set when a plugin manages this host: read only, pins and order still work. */
|
||||
lock?: HostLock;
|
||||
/** Desktop only: kept on this device, never synced to the server. */
|
||||
localOnly?: boolean;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user