https://github.com/uptycslabs/uptycs-client-go
https://github.com/uptycslabs/uptycs-client-go
hacktoberfest hacktoberfest-accepted osquery
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uptycslabs/uptycs-client-go
- Owner: uptycslabs
- License: mit
- Created: 2022-06-15T18:28:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T23:01:48.000Z (over 2 years ago)
- Last Synced: 2024-06-21T14:08:39.290Z (about 2 years ago)
- Topics: hacktoberfest, hacktoberfest-accepted, osquery
- Language: Go
- Homepage:
- Size: 277 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Uptycs Client (Go)
A Go library for [uptycs](https://uptycs.io)
## Contributing
Addition of a new config type requires the baseline addition of several files and a modification to a few other files.
Each config type needs
- an entry (or multiple) in models.go describing the exact structure of that object type
- a file in fixtures file with the expected output from the get call to the api
- a go file in the uptycs folder following the naming convention of the rest of the config types
- a second go file in the uptycs folder named identically to the previous file with _test added
The entry within the models.go file will come from the output of the get call for that particular config type. Note, if there are options to make calls to the api for one or multiple items, the singular and plural versions of these structs should be made seperately. User and Users / Role and Roles can be used as examples for this structure.
## Tests
Tests should be included within reason. to run them: `make test`
## Linting/Syntax
[pre-commit](https://pre-commit.com/) hooks are included for ease and are recommended. They are run as a blocking check in CI as well.
```
$ pre-commit install
$ pre-commit run --all-files
```
### Examples ###
See the `_examples/` dir