This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ubports/neothethird-dev
Improve coverage and code quality
- Loading branch information
Showing
9 changed files
with
293 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,7 @@ typings/ | |
|
||
|
||
# End of https://www.gitignore.io/api/node | ||
|
||
|
||
# ignore test output | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
# System image nodejs module | ||
# System image node module | ||
|
||
[![Build Status](https://travis-ci.org/ubports/system-image-node-module.svg?branch=master)](https://travis-ci.org/ubports/system-image-node-module) [![Coverage Status](https://coveralls.io/repos/github/ubports/system-image-node-module/badge.svg?branch=master)](https://coveralls.io/github/ubports/system-image-node-module?branch=master) | ||
|
||
## Client | ||
Access a system-image server http endpoint | ||
|
||
Example: | ||
|
||
examples: | ||
|
||
``` | ||
const systemImageClient = require("ubports-system-image").Client; | ||
```javascript | ||
const systemImageClient = require("system-image-node-module").Client; | ||
const sic = new systemImageClient(); | ||
sic.getDeviceChannels("bacon").then((channels) => console.log(channels)); | ||
``` | ||
|
||
The constructor takes an object with optional properties as an argument. The default properties are listed below. | ||
|
||
```javascript | ||
{ | ||
host: "https://system-image.ubports.com/", // URL of the system-image server | ||
path: "./test", // download path | ||
allow_insecure: false // allow unencrypted URL | ||
cache_time: 180 // time to keep cached files | ||
} | ||
``` | ||
|
||
## Server | ||
Access and maintain a system-image server backend | ||
Maintain a system-image server backend (not implemented yet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"format system\nload_keyring image-master.tar.xz image-master.tar.xz.asc\nload_keyring image-signing.tar.xz image-signing.tar.xz.asc\nmount system\nformat data\nupdate ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz.asc\nupdate device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz.asc\nupdate keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz.asc\nupdate version-261.tar.xz version-261.tar.xz.asc\nenable 1\nenable 2\nenable 3\nunmount system\n\ninstaller_check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[ | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz.asc" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz.asc" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz.asc" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/version-261.tar.xz" | ||
}, | ||
{ | ||
"dest": "/cache/recovery/", | ||
"src": "./testpool/version-261.tar.xz.asc" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[ | ||
{ | ||
"checksum": "777b2d05b2a0f26b2a9a302eb7804e7eab9bf536f130ffae2f15455a80bd509b", | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz" | ||
}, | ||
{ | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/ubports-e5cf0885f061c9615931cf863a43f65d8590aa71027315ad71999252ce118868.tar.xz.asc" | ||
}, | ||
{ | ||
"checksum": "234d719a32a01bc36d64dbb536fcf27d77957916f8c3851916e4d1e44d732364", | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz" | ||
}, | ||
{ | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/device-f6863fe2f1f8b47cd90f5721af05ccb0ab4d41f2e1cc318075458646eeda28ee.tar.xz.asc" | ||
}, | ||
{ | ||
"checksum": "5b6e870acf8944330acb2a9dad6f5270bd06c377603a3115f805290e989ab421", | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz" | ||
}, | ||
{ | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//pool/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz.asc" | ||
}, | ||
{ | ||
"checksum": "2624df95cbfc0c0dbdd0ff14a7cf6de78802bb38f5dd2a3fa75f0e99586dcba5", | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//ubports-touch/15.04/devel/bacon/version-261.tar.xz" | ||
}, | ||
{ | ||
"path": "./testpool", | ||
"url": "https://system-image.ubports.com//ubports-touch/15.04/devel/bacon/version-261.tar.xz.asc" | ||
} | ||
] |
Oops, something went wrong.