mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-11 06:29:51 -05:00
* feat(@xen-orchestra/fs): 4.9.1 * feat(@vates/generator-toolbox): 1.1.3 * feat(@xen-orchestra/disk-transform): 1.3.1 * feat(@vates/fuse-vhd): 2.1.3 * feat(xo-common): 0.10.0 * feat(xen-api): 4.7.8 * feat(@vates/types): 1.27.0 * feat(@xen-orchestra/acl): 1.3.0 * feat(@xen-orchestra/backup-archive): 1.0.2 * feat(@xen-orchestra/qcow2): 1.3.1 * feat(@xen-orchestra/xapi): 8.9.0 * feat(@xen-orchestra/backups): 0.73.3 * feat(@xen-orchestra/disk-cli): 2.1.2 * feat(@xen-orchestra/web-core): 0.55.0 * feat(@xen-orchestra/mcp): 1.4.1 * feat(@xen-orchestra/mixins): 0.20.1 * feat(@xen-orchestra/openflow): 0.1.4 * feat(@xen-orchestra/proxy): 0.30.4 * feat(@xen-orchestra/qa-test): 1.1.0 * feat(@xen-orchestra/rest-api): 0.34.0 * feat(@xen-orchestra/upload-ova): 0.1.8 * feat(@xen-orchestra/web): 0.54.0 * feat(xo-acl-resolver): 0.5.3 * feat(xo-server): 5.203.0 * feat(xo-server-audit): 0.15.1 * feat(xo-server-ipmi-sensors): 2.0.1 * feat(xo-server-load-balancer): 0.13.0 * feat(xo-server-netbox): 1.13.0 * feat(xo-server-openmetrics): 1.7.0 * feat(xo-server-sdn-controller): 1.3.3 * feat(xo-web): 5.198.0 * chore(CHANGELOG): update next
@vates/nbd-client
Install
Installation of the npm package:
npm install --save @vates/nbd-client
Usage
new NdbClient({address, exportname, secure = true, port = 10809})
create a new nbd client
import NbdClient from '@vates/nbd-client'
const client = new NbdClient({
address: 'MY_NBD_HOST',
exportname: 'MY_SECRET_EXPORT',
cert: 'Server certificate', // optional, will use encrypted link if provided
})
await client.connect()
const block = await client.readBlock(blockIndex, BlockSize)
await client.disconnect()
Contributions
Contributions are very welcomed, either on the documentation or on the code.
You may:
- report any issue you've encountered;
- fork and create a pull request.