1 | export namespace Cred {
|
2 | const enum TYPE {
|
3 | USERPASS_PLAINTEXT = 1,
|
4 | SSH_KEY = 2,
|
5 | SSH_CUSTOM = 4,
|
6 | DEFAULT = 8,
|
7 | SSH_INTERACTIVE = 16,
|
8 | USERNAME = 32,
|
9 | SSH_MEMORY = 64,
|
10 | }
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export class Cred {
|
17 | static defaultNew(): Cred;
|
18 | static sshKeyFromAgent(username: string): Cred;
|
19 | static sshKeyMemoryNew(username: string, publicKey: string, privateKey: string, passphrase: string): Promise<Cred>;
|
20 | static sshKeyNew(username: string, publicKey: string, privateKey: string, passphrase: string): Cred;
|
21 | static usernameNew(username: string): Promise<Cred>;
|
22 | static userpassPlaintextNew(username: string, password: string): Cred;
|
23 |
|
24 | hasUsername(): number;
|
25 | }
|