@wolfogaming/node-lxd
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

Node LXD

npm npm version typescript

A client for communicating with a local or remote instance of LXD.

Installing

$ npm install --save @wolfogaming/node-lxd

Getting Started

The following example connects to the local LXD instance and launches a new instance.

var { Client } = require("@wolfogaming/node-lxd");

var client = new Client(null, {type:"unix"});

client.createInstance("improved-elk", {
    "config": {
        "limits.cpu": 3,
        "limits.memory": "1GB",
        "security.nesting": true
    },
    "image": "ubuntu/21.04",
    "description": "test Instance",
    "profiles": ["default"]
}).then((emitter) => {
   emitter.on('progress', (progress) => {
       console.log(progress, "% completed")
   })
   emitter.on('finished', (instance) => {
       console.log("finished creating instance " + instance.name())
   })
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.33latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.33
3.1.21
3.1.11
3.0.91
3.0.81
3.0.71
3.0.61
3.0.51
3.0.41
3.0.31
3.0.21
3.0.11
3.0.01
2.0.91
2.0.81
2.0.71
2.0.61
2.0.51
2.0.41
2.0.31
2.0.21
2.0.11
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i @wolfogaming/node-lxd

Weekly Downloads

29

Version

3.1.3

License

ISC

Unpacked Size

222 kB

Total Files

114

Last publish

Collaborators

  • wolfogaming