Files
xen-orchestra/packages/xen-api
..
2015-04-02 18:44:16 +02:00
2015-04-02 18:44:16 +02:00
2015-04-02 18:44:16 +02:00
2015-04-02 18:44:16 +02:00
2015-04-02 18:44:16 +02:00
2015-04-14 17:56:51 +02:00
2015-04-10 17:12:59 +02:00

xen-api Build Status

${pkg.description}

Install

Installation of the npm package:

> npm install --save xen-api

Usage

var createClient = require('xen-api').createClient

var xapi = createClient({
  url: 'https://xen1.company.net',
  auth: {
    user: 'root',
    password: 'important secret password'
  }
})

// Force connection.
xapi.connect().catch(error => {
  console.error(error)
})

// Watch objects.
xapi.objects.on('add', function (objects) {
  console.log('new objects:', objects)
})

Development

Installing dependencies

> npm install

Compilation

The sources files are watched and automatically recompiled on changes.

> npm run dev

Tests

> npm run test-dev

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.

License

ISC © Julien Fontanet