fleet/ee/bulk-operations-dashboard/api/models/UndeployedSoftware.js
Eric 0da7afb332
Bulk operations dashboard: Add software page (#22584)
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.
2024-10-15 10:17:05 -05:00

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: '',
},
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
},
};