mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Added Cred
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
export namespace Cred {
|
||||
enum TYPE {
|
||||
USERPASS_PLAINTEXT = 1,
|
||||
SSH_KEY = 2,
|
||||
SSH_CUSTOM = 4,
|
||||
DEFAULT = 8,
|
||||
SSH_INTERACTIVE = 16,
|
||||
USERNAME = 32,
|
||||
SSH_MEMORY = 64
|
||||
}
|
||||
}
|
||||
|
||||
export class Cred {
|
||||
static defaultNew(): Cred;
|
||||
static sshKeyFromAgent(username: string): Cred;
|
||||
static sshKeyMemoryNew(username: string, publickey: string, privatekey: string, passphrase: string): Promise<Cred>;
|
||||
static sshKeyNew(username: string, publickey: string, privatekey: string, passphrase: string): Cred;
|
||||
static usernameNew(username: string): Promise<Cred>;
|
||||
static userpassPlaintextNew(username: string, password: string): Cred;
|
||||
|
||||
hasUsername(): number;
|
||||
}
|
||||
Reference in New Issue
Block a user