Giter Site home page Giter Site logo

nerves_hub_user_api's Introduction

NervesHubUserAPI

CircleCI Hex version

Important

This is for the maint-v1.0 version of NervesHub. It has been merged into NervesHubCLI going forward.


This is a library for interacting with a NervesHub website programmatically. See NervesHubCLI for using it with mix.

Devices do not use this library to connect to a NervesHub server. See NervesHubLink for the reference client.

Installation

The package can be installed by adding nerves_hub_user_api to your list of dependencies in mix.exs:

def deps do
  [
    {:nerves_hub_user_api, "~> 0.8.0"}
  ]
end

The docs can be found at HexDocs.

Environment variables

NervesHubUserAPI may be configured using environment variables to simplify automation. Environment variables take precedence over configuration. The following variables are available:

  • NERVES_HUB_SCHEME - NervesHub API endpoint scheme (defaults to https)
  • NERVES_HUB_HOST - NervesHub API endpoint IP address or hostname
  • NERVES_HUB_PORT - NervesHub API endpoint port (defaults to 443)
  • NERVES_LOG_DISABLE_PROGRESS_BAR - Set to disable the progress bar on file transfers

Configuration

NervesHubUserAPI may also be configured in the config.exs. It supports the following keys:

  • scheme NervesHub API endpoint scheme (defaults to https)
  • host - NervesHub API endpoint address
  • port - NervesHub API endpoint port (defaults to 443)
  • ca_store - A module that exposes a single function ca_certs that returns certs as a list of DER encoded binaries.

nerves_hub_user_api's People

Contributors

brianberlin avatar connorrigby avatar doawoo avatar fhunleth avatar jjcarstens avatar mobileoverlord avatar oestrich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nerves_hub_user_api's Issues

$NERVES_HUB_CA_DIR is not respected

  defp ca_certs() do
    [
      "/home/connor/workspace/oss/elixir/nerves/nerves-hub/ssl/ca.pem"
    ]
    |> Enum.map(&File.read!/1)
    |> Enum.map(&Certificate.from_pem!/1)
    |> Enum.map(&Certificate.to_der/1)
  end

Had to do this to get CA certs to load

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.