This component is in charge of Device and Device groups operations.
In order to build and compile this repository use the provided Makefile:
make all
This operation generates the binaries for this repo, download dependencies, run existing tests and generate ready-to-deploy Kubernetes files.
Tests are executed using Ginkgo. To run all the available tests:
make test
To enable and run integration tests you will need to have running instances of all the prerequisites and declare the following environment variables:
Variable | Example Value | Description |
---|---|---|
RUN_INTEGRATION_TEST | true | Run integration tests |
IT_SM_ADDRESS | localhost:8800 | System Model Address |
IT_AUTHX_ADDRESS | localhost:8810 | Authx Address |
Dependencies are managed using Godep. For an automatic dependencies download use:
make dep
In order to have all dependencies up-to-date run:
dep ensure -update -v
To interact with this component, you can leverage the public-api-cli.
The command that interacts with this component is device
.
Example:
./public-api-cli device info [deviceGroupID] [deviceID]
Please read contributing.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 License - see the LICENSE-2.0.txt file for details.