Git Product home page Git Product logo

equinoxe's People

Contributors

art-w avatar maiste avatar vch9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vch9 tmcgilchrist

equinoxe's Issues

Remove equinoxe-bin

It doesn't really make sense to have a package for the executable as it is only for internal manipulations.

Release 0.1.0

Once the test system has been deployed, the library and the CLI can be released ๐ŸŽ‰

Release 0.2.0

As the new interface has been proposed, a new release can be made.

Typo in the error code

Access print the wrong json:

let access field json =
    try Ezjsonm.find json [ field ]
    with Not_found ->
      raise
        (Ezjsonm.Parse_error
           (`String field, Format.sprintf "access: field %s not found" field))

It must be:

 raise
        (Ezjsonm.Parse_error
           (json, Format.sprintf "access: field %s not found" field))

Create a simple CLI for equinoxe

Allow to get a token an execute a simple action:

 $ equinoxe-cli user_id --token "path:/path/to/token" user_id
 > The user id related to this token is 5555-422222-*

Support iPXE in create

To allow people deploying their own system, we need to be able to provide a iPXE system in Equinoxe.create

Refactor the entire interface

From #61 by @art-w:

You probably don't want to call this run on all the http calls, rather the Equinoxe api should also produce Lwt values when the backend requires it. To stay compatible with "direct style" I/O, you can abstract the monad in the backend:

type 'a m
val return : 'a -> 'a m
val bind : ('a -> 'b m) -> 'a m -> 'b m
(* ... *)
val post : t -> path:string -> Json.t -> Json.t m

Then the backend can instantiate with type 'a m = 'a Lwt.t or type 'a m = 'a (here's an example of what it might look like)

I'm not sure that Json.t = (Ezjsonm.value, ...) result is the right type for the input? (the body of the request could be a string or Ezjsonm.value, but the backend shouldn't care about an Error in the input?)

  • The HTTP module should be abstract to hide to the user the content.
  • The Json type should be updated to better fit the requirement. The result type might not be needed only from extraction. Maybe the result type should be used as follow `(Json.t, Json.error) result.

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.