RETIRED, JavaScript API library for OpenStack.
8354146c11
This follows removal of jobs from project-config. [1] New jobs use newer node versions and new Zuul v3 format, reusing devstack for deployment of OpenStack for functional testing of jslib. Version tests have been adapted to follow support logic already in place instead of hardcoded supported versions. Includes workaround (fixup) of devstack's bug. [2] Move the functional test to experimental for now, because version discovery doesn't work right and Firefox is generally grumpy. We want to get the structural stuff in first. [1] https://review.opendev.org/702030 [2] https://bugs.launchpad.net/devstack/+bug/1860287 Depends-on: https://review.opendev.org/704882 Depends-on: https://review.opendev.org/726547 Co-authored-by: Monty Taylor <mordred@inaugust.com> Change-Id: I197eb2b59be7a49d168edf09d554b444bbcc29b2 |
||
---|---|---|
doc | ||
playbooks | ||
src | ||
test | ||
zuul.d | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.gitreview | ||
.istanbul.yml | ||
.nsprc | ||
bindep.txt | ||
configure-devstack.js | ||
karma.conf.babel.js | ||
karma.conf.js | ||
LICENSE | ||
package.json | ||
README.rst | ||
vagrant.sh | ||
Vagrantfile | ||
webpack.config.babel.js |
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