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

28 lines
611 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
};
2019-12-04 10:23:16 -08:00
var assert = require('assert'),
BoxError = require('../boxerror.js');
2016-10-07 13:22:39 -07:00
async function getServerIp(config) {
2019-12-04 10:23:16 -08:00
assert.strictEqual(typeof config, 'object');
2016-10-07 13:22:39 -07:00
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'testConfig is not implemented');
2016-10-07 13:22:39 -07:00
}
async function testConfig(config) {
2019-10-29 20:08:45 -07:00
assert.strictEqual(typeof config, 'object');
return null;
2019-10-29 20:08:45 -07:00
}