Files
smartssh/dist/smartssh.classes.sshinstance.d.ts

35 lines
966 B
TypeScript
Raw Normal View History

2016-11-23 12:38:38 +01:00
import 'typings-global';
import { SshKey } from './smartssh.classes.sshkey';
2016-06-01 02:31:29 +02:00
export declare class SshInstance {
2016-06-25 02:29:34 +02:00
private _sshKeyArray;
2016-06-24 02:49:55 +02:00
private _sshConfig;
2016-06-25 02:29:34 +02:00
private _sshDir;
2016-06-24 02:49:55 +02:00
private _sshSync;
constructor(optionsArg?: {
2016-06-01 03:57:17 +02:00
sshDirPath?: string;
sshSync?: boolean;
});
addKey(sshKeyArg: SshKey): void;
removeKey(sshKeyArg: SshKey): void;
replaceKey(sshKeyOldArg: SshKey, sshKeyNewArg: SshKey): void;
2016-06-01 03:57:17 +02:00
getKey(hostArg: string): SshKey;
2016-11-23 12:38:38 +01:00
readonly sshKeys: SshKey[];
2016-06-24 02:49:55 +02:00
/**
* write SshInstance to disk
*/
2016-06-28 02:10:51 +02:00
writeToDisk(dirPathArg?: string): void;
2016-06-24 02:49:55 +02:00
/**
* read ab SshInstance from disk
*/
2016-06-28 02:10:51 +02:00
readFromDisk(dirPathArg?: string): void;
2016-06-25 02:29:34 +02:00
private _makeConfig();
2016-06-24 02:49:55 +02:00
/**
* method to invoke SshInstance _sync automatically when sshSync is true
*/
private _syncAuto(directionArg);
/**
* private method to sync SshInstance
*/
2016-06-28 02:10:51 +02:00
private _sync(directionArg, dirPathArg?);
}