Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

deep-foundation/js-docker-isolation-provider

Open more actions menu
 
 

Repository files navigation

Gitpod

js-docker-isolation-provider

HTTP routes

  • /healthz - GET - 200 - Health check endpoint
    • Response:
      • {}
  • /init - GET - 200 - Initialization endpoint
    • Response:
      • {}
  • /call - GET - 200 - Call executable code of handler in this isolation provider (it used in HandleInsert, HandleUpdate, HandleDelete and so on)
    • Request:
      • body:
        • params:
          • jwt: STRING - Deeplinks send this token, for create gql and deep client
          • secret: STRING - Secret to access Hasura in unsafe mode (if package/user are allowed to use it by permissions)
          • code: STRING - Code of handler
          • data: {} - Data for handler execution from deeplinks

            If this is type handler

            • oldLink - from deeplinks, link before transaction
            • newLink - from deeplinks, link after transaction
            • promiseId - from deeplinks, promise id
    • Response:
      • { resolved?: any; rejected?: any; } - If resolved or rejected is not null, then it's result of execution
  • /http-call - GET - 200 - Call executable code of handler in this isolation provider to produce the http responce (it is used in HandleRoute)
    • Request:
      • Headers:
        • deep-call-options
          • jwt: STRING - Deeplinks send this token, for create gql and deep client
          • secret: STRING - Secret to access Hasura in unsafe mode (if package/user are allowed to use it by permissions)
          • code: STRING - Code of handler
          • data: {} - Data for handler execution from deeplinks

            If this is type handler

            • oldLink - from deeplinks, link before transaction
            • newLink - from deeplinks, link after transaction
            • promiseId - from deeplinks, promise id
    • Responce:
      • Http responce generated by code if execution is successful
      • { rejected: any; } - on error

Diagnostics

Logs

Get container logs to console:

docker logs $(docker ps -a -q --filter "ancestor=deepf/js-docker-isolation-provider:main")

Get container logs to file:

Sometimes console cannot output the full logs so it might be helpful to store the entire container's logs as file. It can be done like this:

docker logs $(docker ps -a -q --filter "ancestor=deepf/js-docker-isolation-provider:main") > log.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.