mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 20:48:35 +00:00
78 lines
1.8 KiB
JavaScript
78 lines
1.8 KiB
JavaScript
|
|
/**
|
||
|
|
* UndeployedSoftware.js
|
||
|
|
*
|
||
|
|
* @description :: A model definition represents a database table/collection.
|
||
|
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
||
|
|
*/
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
|
||
|
|
attributes: {
|
||
|
|
|
||
|
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
||
|
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||
|
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||
|
|
name: {
|
||
|
|
type: 'string',
|
||
|
|
required: true,
|
||
|
|
description: 'The filename of the software installer package.',
|
||
|
|
},
|
||
|
|
|
||
|
|
platform: {
|
||
|
|
type: 'string',
|
||
|
|
description: 'The type of operating system this software installer is for.',
|
||
|
|
required: true,
|
||
|
|
isIn: [
|
||
|
|
'macOS',
|
||
|
|
'Linux',
|
||
|
|
'Windows'
|
||
|
|
],
|
||
|
|
},
|
||
|
|
|
||
|
|
uploadMime: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
description: 'The mime type of the uploaded software installer'
|
||
|
|
},
|
||
|
|
|
||
|
|
uploadFd: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
description: 'The file descriptor of the installer file.'
|
||
|
|
},
|
||
|
|
|
||
|
|
preInstallQuery: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
},
|
||
|
|
|
||
|
|
installScript: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
},
|
||
|
|
|
||
|
|
postInstallScript: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
},
|
||
|
|
|
||
|
|
uninstallScript: {
|
||
|
|
type: 'string',
|
||
|
|
defaultsTo: '',
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
||
|
|
|
||
|
|
|
||
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
||
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
||
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
||
|
|
|
||
|
|
},
|
||
|
|
|
||
|
|
};
|
||
|
|
|