Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-deis

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-deis

Manage Deis from your Node apps.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

node-deis

Manage Deis from your Node apps.

npm install node-deis --save

Create your client first of all.

var NodeDeis = require('./index');

var client = new NodeDeis({
    controller : 'deis.yourdomain.com',
    secure     : true, // Optional
    version    : 1, // Optional
    username   : 'awesome_user',
    password   : 'sup3r5str3ng7h!1!1',
    appname    : 'myAwesomeDeisApp'
});

All of the properties that aren't marked optional will throw an error if they are missing.

Once you have a client you can connect and start managing your Deis apps right from Node.

client.connect(function(err) {
  assert.equal(err, null, 'Bad login details');
});

Once you have connected you will be able to run any of the below commands (provided you have access) rights to perform the below.

NodeDeis.addDomain(String domain, Function callback);

Create a new domain for the application in the client configuration and fire the callback once it has completed with an error (if any).

NodeDeis.addDomain('node-deis-test.yourdomain.com', function(err) {
    assert.equal(err, null, 'Something bad happened.');
});

NodeDeis.removeDomain(String domain, Function callback);

Remove a domain from the application in the client configuration and fire the callback once it has completed with an error (if any).

NodeDeis.removeDomain('node-deis-test.yourdomain.com', function(err) {
    assert.equal(err, null, 'Something bad happened.');
});

NodeDeis.getAllDomains(Function callback);

Get all the domains for this application.

NodeDeis.getAllDomains(function(err, data) {
    assert.equal(err, null, 'Something bad happened.');

    // do something with the data array.
});

NodeDeis.getDomain(String domain, Function callback);

Get a specific domain for this application.

NodeDeis.getDomain('node-deis-test.yourdomain.com', function(err, domain) {
    assert.equal(err, null, 'Something bad happened.');

    // do something with the domain object.
});

Things still to do

Create api for
  • logging in
  • adding domains
  • removing domains
  • list app domains
  • get specific domain
  • logging out
  • registering
  • account cancelation
  • list applications
  • create application
  • destroy application
  • list app details
  • get application logs
  • run remote commands
  • list all containers
  • list containers by type
  • scale containers
  • show app config
  • create app config
  • unset config
  • list app builds
  • create app build
  • list app releases
  • show release details
  • rollback release
  • list keys
  • add key to user
  • remove key from user
  • list app permissions
  • create application permission
  • remove app permission
  • grant user admin rights

Keywords

FAQs

Package last updated on 22 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc