You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.5 KiB
JavaScript
78 lines
1.5 KiB
JavaScript
"use strict";
|
|
|
|
const dlayer = require("dlayer");
|
|
|
|
module.exports = function () {
|
|
return dlayer({
|
|
makeContext: function () {
|
|
return {};
|
|
},
|
|
modules: [
|
|
require("../packages/sysquery-core"),
|
|
require("../packages/sysquery-block-devices"),
|
|
require("../packages/sysquery-mounts"),
|
|
require("../packages/sysquery-drives"),
|
|
require("../packages/sysquery-lvm"),
|
|
],
|
|
schema: {
|
|
resources: {
|
|
images: {
|
|
installationMedia: [],
|
|
vmImages: []
|
|
}
|
|
},
|
|
}
|
|
});
|
|
};
|
|
|
|
|
|
// let schemaTodo = {
|
|
// system: {
|
|
// hardware: { ... },
|
|
// lvm: {
|
|
// ...
|
|
// }
|
|
// },
|
|
// resources: {
|
|
// storagePools: {
|
|
// name: "...",
|
|
// type: "lvm|folder",
|
|
// isLocal: true,
|
|
// folderPath: "...",
|
|
// lvmVolumeGroup: LVMVolumeGroup,
|
|
// $$update: {
|
|
// $arguments: {
|
|
// name: "..."
|
|
// }
|
|
// },
|
|
// $$delete: {},
|
|
// $collection: {
|
|
// $$create: {
|
|
// $arguments: {
|
|
// name: "poolName",
|
|
// volumeGroup: "name",
|
|
// // or:
|
|
// folderPath: "path"
|
|
// }
|
|
// // standard fields for a storage pool entry go here, including LVMVolumeGroup resolution!
|
|
// }
|
|
// },
|
|
// },
|
|
// networkPools: { ... },
|
|
// storageVolumes: {
|
|
// id: 0,
|
|
// userID: 0,
|
|
// pool: StoragePool,
|
|
// poolID: 0, // the index/ID within the pool
|
|
// size: 0, // bytes-iec
|
|
// },
|
|
// instances: {
|
|
// id: 0,
|
|
// userID: 0,
|
|
// state: "running|stopped|creating",
|
|
// storageVolumes: StorageVolume, // in boot order
|
|
|
|
// }
|
|
// }
|
|
// };
|