-
Notifications
You must be signed in to change notification settings - Fork 1
/
generic.js
51 lines (36 loc) · 1.08 KB
/
generic.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
///////////////////////////////////
// Generic Driver Implementation //
///////////////////////////////////
/**
* Initalize a new Driver Object
*/
function Driver() {
var kdb = this;
return this;
}
/**
* Find a single key from the email uid
* @param {String} email Email uid to retrieve a key for
* @param {Function} callback Function to evaluate with the results of the find
*/
Driver.prototype.findOne = function(email, callback) {
};
/**
* Find all the keys for this server
* @param {String} domain Optional domain in which to search for keys
* @param {Function} callback Function to evaluate with the results of the find
*/
Driver.prototype.find = function(domain, callback) {
};
/**
* Add a key to the database
* @param {String} email Email to associate with the key
* @param {String} keytext ASCII-armored keytext including headers
* @param {Function} callback Function to evaluate with an error or the added key on success
*/
Driver.prototype.add = function(email, keytext, callback) {
};
/**
* Export the Driver object
*/
module.exports = Driver;