Add dns interface api to inject hidden files for verification

This commit is contained in:
Johannes Zellner
2019-02-09 19:08:15 +01:00
parent ca962e635e
commit 127b22d7ce
14 changed files with 72 additions and 4 deletions
+5
View File
@@ -8,6 +8,7 @@
exports = module.exports = {
removePrivateFields: removePrivateFields,
injectPrivateFields: injectPrivateFields,
upsert: upsert,
get: get,
del: del,
@@ -23,6 +24,10 @@ function removePrivateFields(domainObject) {
return domainObject;
}
function injectPrivateFields(newConfig, currentConfig) {
// in-place injection of tokens and api keys which came in with domains.SECRET_PLACEHOLDER
}
function upsert(domainObject, location, type, values, callback) {
assert.strictEqual(typeof domainObject, 'object');
assert.strictEqual(typeof location, 'string');