mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-31 18:54:28 +00:00
Added Cred
This commit is contained in:
22
types/nodegit/cred.d.ts
vendored
Normal file
22
types/nodegit/cred.d.ts
vendored
Normal file
@@ -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;
|
||||
}
|
||||
1
types/nodegit/index.d.ts
vendored
1
types/nodegit/index.d.ts
vendored
@@ -23,6 +23,7 @@ export { Clone } from './clone';
|
||||
export { Commit } from './commit';
|
||||
export { Config } from './config';
|
||||
export { ConvenientPatch } from './convenient-patch';
|
||||
export { Cred } from './cred';
|
||||
export { CvarMap } from './cvar-map';
|
||||
export { DescribeFormatOptions } from './describe-format-options';
|
||||
export { DescribeOptions } from './describe-options';
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"commit.d.ts",
|
||||
"config.d.ts",
|
||||
"convenient-patch.d.ts",
|
||||
"cred.d.ts",
|
||||
"cvar-map.d.ts",
|
||||
"describe-format-options.d.ts",
|
||||
"describe-options.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user