restart-rancher

1.1.4 • Public • Published

Build StatusCommitizen friendlyConventional CommitsQuality Gate StatusBugsCode SmellsDuplicated Lines (%)Lines of CodeSecurity RatingVulnerabilitiesTechnical Debt

RESTART-RANCHER

This is a simple tool made for restart a service in Rancher using his api.

Installation

you can add it to your node projects simple by typing:

npm install restart-rancher --save

Usage

Follow this example:

// import the module
const restartRancher = require('restart-rancher');
 
// configure your options with all the fields below
const options = {
    RANCHER_ACCESS_KEY: "your_rancher_access_key",
    RANCHER_SECRET_KEY: "your_rancher_secret_key",
    PROJECT_ID: "your_project_id",
    SERVICE_ID: "your_serviceId",
    RANCHER_URL: "the API URL of you rancher server"
}
 
// and simple run the function, parsing the options above
restartRancher(options);

Package Sidebar

Install

npm i restart-rancher

Weekly Downloads

4

Version

1.1.4

License

ISC

Unpacked Size

7.38 kB

Total Files

8

Last publish

Collaborators

  • mateus.garcia