mirror of
https://github.com/fleetdm/fleet
synced 2026-05-10 02:30:56 +00:00
Related to #21928 Changes: - Added a /software page, a page where users can manage (upload/edit/download/delete) software installers on their Fleet instance across multiple teams at once. - ~~Removed the `deploy-bulk-operations-dashboard-on-heroku` GitHub action (This dashboard will be hosted in Render in the future)~~ Reverted this change to unblock merging this PR, I will remove this file in a separate PR.
77 lines
1.8 KiB
JavaScript
77 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: '',
|
|
},
|
|
|
|
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
|
|
|
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
|
|
|
},
|
|
|
|
};
|
|
|