const { LXD } = require('node-lxd-client');
const fs = require('fs');
const path = require('path');
const lxd = new LXD({
host: 'https://my-private-lxd-server:8443',
cert: fs.readFileSync(path.resolve(__dirname, '../../.config/lxc/client.crt')),
key: fs.readFileSync(path.resolve(__dirname, '../../.config/lxc/client.key')),
password: 'mypassword'
});
lxd.authorizeCertificate()
.then(data => lxd.image.all())
.then(data => {
console.log(data);
})
.catch(data => {
console.error(data);
});-
Notifications
You must be signed in to change notification settings - Fork 1
BrunnerLivio/node-lxd-client
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Client for the LXD REST-API written in NodeJS
Resources
Stars
Watchers
Forks
Releases
No releases published