This repository holds Node.js client libraries for many of the core Triton REST APIs: Amon, CA, CNS, CNAPI, FWAPI, IMGAPI, NAPI, PAPI, SAPI, VMAPI.
Node.js client libraries for other Triton APIs are in other repos. For example see:
To run the tests from a Triton DataCenter global zone:
Or to run the test suite remotely (say you are developing on Mac and want to test against your CoaL):
./test/runtests -H firstname.lastname@example.org
To run a single one of the files use the
-f FILTER option, e.g.
./test/runtests -H email@example.com -f ./test/napi.test.js
Before commit, ensure that the following checks are clean:
Also see the note at the top that cr.joyent.us is used for code review for this repo.
Changes with possible user impact should:
Add a note to the changelog (CHANGES.md).
Bump the package version appropriately.
Once merged to master, the new version should be tagged and published to npm via:
To list to npm accounts that have publish access:
npm owner ls sdc-clients
The desire is that users of this package use published versions in their
dependencies, rather than depending on git shas.