Git Product home page Git Product logo

node-sdc-clients-x's Introduction

node-sdc-clients-x

This is a node_module intended to create some form of cross-datacenter layer over the existing node-sdc-clients library, which in turn could be used to aid operators of Triton write tooling for their deployments. It attempts to be as thin as possible over node-sdc-clients, intending to work exactly the same as node-sdc-clients.

The goal here is to be able to use this module as a drop in replacement for node-sdc-clients and get cross-datacenter API interogation with little extra effort.

As it stands, this is mostly a POC intended to simply feel out whether this is even a good idea or not.

Design Issues

In its current form this module isn't very DRY. In order to support a node-sdc-clients interface, we reuse too much of the endpoints parameter validation. For example:

node-sdc-clients.VMAPI.listVms: https://github.com/joyent/node-sdc-clients/blob/master/lib/vmapi.js#L164 node-sdc-clients-x.VMAPI.listVms: https://github.com/chudley/node-sdc-clients-x/blob/master/lib/vmapi.js#L68

There might be another way of doing this, but this is the only way I know of to give the module the same interface as what exists in node-sdc-clients.

node-sdc-clients-x's People

Contributors

chudley avatar mattr-joyent avatar

Watchers

 avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.