Nature's Powerful Meme

    @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())
       })
    })

    Keywords

    Install

    npm i @wolfogaming/node-lxd

    DownloadsWeekly Downloads

    8

    Version

    3.1.3

    License

    ISC

    Unpacked Size

    222 kB

    Total Files

    114

    Last publish

    Collaborators

    • wolfogaming