1.0.3 • Published 10 years ago

node-fleet-api v1.0.3

Weekly downloads
24
License
AGPL
Repository
github
Last release
10 years ago

node-fleet-api

A simple Node.JS module to interact with Fleet on CoreOS. The module is currently capable to get info on a unit file, starting and stopping them and destroying them.

Usage

var fleet=require("node-fleet-api")("http://127.0.0.1:49153") //This is the HTTP endpoint with the http:// bit without the / on the and
fleet.startUnit("test.service",function(err,res){});

Functions

Create a unit file

fleet.newUnit("name of unit",{unit content in JS object},callback)

for thr format of the JS object see the official documentation

Get a unit file

fleet.getUnit("name of unit",callback)

Get all units

fleet.getAllUnits(callback)

Start a unit file

fleet.startUnit("name of unit",callback)

Stop a unit file

fleet.stpoUnit("name of unit",callback)

Destroy a unit file

fleet.destroyUnit("name of unit",callback)
1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago