7f843d7ecb
Update to babel v7 and webpack v4 Remove runtime depend on corejs-2 which is unsupported. Just switch to runtime which requires polyfills be provided by the end user. Remove NSP - the service is being shut down and the important bits are built in to npm now. istanbul has been replaced by the nyc runner. Update karma to latest. Update yaml-loader and json-loader Disable browser testing for now - we'll bring it back in a followup. Change-Id: I45d1f77bb43e5d67f4154c5149fac77b853e3686 |
||
---|---|---|
doc | ||
playbooks | ||
src | ||
test | ||
zuul.d | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.gitreview | ||
.istanbul.yml | ||
.nsprc | ||
LICENSE | ||
README.rst | ||
Vagrantfile | ||
bindep.txt | ||
configure-devstack.js | ||
karma.conf.babel.js | ||
karma.conf.js | ||
package.json | ||
vagrant.sh | ||
webpack.config.babel.js |
README.rst
Team and repository tags
JS-OpenStack-lib
JS-OpenStack-lib is a Javascript library for interacting with OpenStack clouds. The project aims to provide a consistent and complete set of interactions with OpenStack's many services, along with documentations, examples, and tools. This library is compatible with both browser and server side Javascript.
Example
The following example simply connects to an OpenStack cloud and list flavors in the Compute service:
import OpenStack from 'js-openstack-lib';
// Initialize cloud
// cloudConfig is a JSON object corresponding to clouds.yaml
// (It is your responsibility to load and parse it)
const openStack = new OpenStack({
region_name: 'Region1',
auth: {
username: 'user',
password: 'pass',
project_name: 'js-openstack-lib',
auth_url: 'http://192.168.99.99/'
}
});
// List all flavors
openStack.networkList()
.then((networks) => {
console.log(networks);
});
Documentation
Coming soon
Contributing
If you're interested in contributing, the following will help you get started:
- Bug Tracker
- Code Hosting
- Code Review
-
https://review.openstack.org/#/q/status:open+project:openstack/js-openstack-lib,n,z
Please read Developer's Guide before sending your first patch for review
License
Apache 2.0