Files
cloudron-box/src/sysinfo/interface.js

29 lines
646 B
JavaScript
Raw Normal View History

2016-10-07 13:22:39 -07:00
'use strict';
// -------------------------------------------
// This file just describes the interface
//
// New backends can start from here
// -------------------------------------------
exports = module.exports = {
2019-10-29 20:08:45 -07:00
getServerIp,
testConfig
2016-10-07 13:22:39 -07:00
};
var assert = require('assert');
2019-10-29 15:46:33 -07:00
function getServerIp(config, callback) {
assert.strictEqual(typeo config, 'object');
2016-10-07 13:22:39 -07:00
assert.strictEqual(typeof callback, 'function');
callback(new Error('not implemented'));
}
2019-10-29 20:08:45 -07:00
function testConfig(config, callback) {
assert.strictEqual(typeof config, 'object');
assert.strictEqual(typeof callback, 'function');
callback(null);
}