Balena hostOS update validations & utilities
The intention of this module is to provide some low level common definitions and utilities for host OS updates.
THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY.
Unless you know what you're doing, use the balena SDK instead.
Install balena-hup-action-utils
by running:
$ npm install --save balena-hup-action-utils
The module returns a class that you use to get an instance of the hup action helper.
Example
import { HUPActionHelper } from 'balena-hup-action-utils';
const hupActionHelper = new HUPActionHelper();
hupActionHelper.getHUPActionType('raspberrypi3', '2.0.0+rev1.prod', '2.2.0+rev1.prod');
hupActionHelper.isSupportedOsUpdate('raspberrypi3', '2.0.0+rev1.prod', '2.2.0+rev1.prod');
If you're having any problem, please raise an issue on GitHub and the balena team will be happy to help.
Run the test suite by doing:
$ npm test
- Issue Tracker: github.com/balena-io-modules/balena-hup-action-utils/issues
- Source Code: github.com/balena-io-modules/balena-hup-action-utils
Before submitting a PR, please make sure that you include tests, and that tslint runs without any warning:
$ npm run lint
The project is licensed under the Apache 2.0 license.