27 lines
554 B
TypeScript
27 lines
554 B
TypeScript
import "typings-global";
|
|
import * as plugins from "./smartssh.plugins";
|
|
import * as helpers from "./smartssh.classes.helpers";
|
|
import {SshKey} from "./smartssh.classes.sshkey"
|
|
|
|
export class SshConfig {
|
|
sshKeyArray:SshKey[];
|
|
constructor(sshKeyArrayArg:SshKey[]){
|
|
this.sshKeyArray = sshKeyArrayArg;
|
|
}
|
|
|
|
/**
|
|
* the current config
|
|
*/
|
|
get config(){
|
|
let configArray:configObject[];
|
|
return configArray;
|
|
}
|
|
};
|
|
|
|
export interface configObject {
|
|
host:string;
|
|
authorized:boolean;
|
|
sshKey:SshKey;
|
|
};
|
|
|