Joshua Spence and GitHub
ff2854e943
Implement Stringer interface for DeviceState ( #49 )
...
* Implement `Stringer` interface for `DeviceState`
If device adoption fails the error message isn't very readable at the moment.
```
Error: unexpected state '10', wanted target '2'.
```
* Use `stringer`
2021-09-24 13:55:12 +10:00
Joshua Spence and GitHub
124f349da4
Format generated golang with go/format ( #48 )
2021-09-24 13:17:25 +10:00
Joshua Spence and GitHub
8d4ca5f389
Revert "Add controller version to generated files" ( #47 )
...
This reverts commit 13d5677bf3 .
2021-09-24 07:21:34 +10:00
Joshua Spence and GitHub
7d87194aef
Update to latest controller version ( #46 )
...
* Update to latest controller version
* Fix tests
2021-09-21 23:26:12 +10:00
Joshua Spence and GitHub
0cb7d3e514
Add AdoptDevice and ForgetDevice methods ( #45 )
...
* Add `AdoptDevice` and `ForgetDevice` methods
* Address comments
2021-09-17 11:16:56 +10:00
Joshua Spence
a9d0f1de5a
Use --latest
2021-08-11 11:40:15 +10:00
Joshua Spence
e27afc6e32
Add --latest flag
...
Allow using the latest version of the Unifi controller with `--latest`.
2021-08-11 11:40:15 +10:00
Joshua Spence
8f8e19eb2a
Don't commit intermediate files
...
Don't commit the extracted JSON files as well only need the generated `*.generated.go` files.
2021-08-11 11:40:15 +10:00
Joshua Spence and Paul Tyng
f06d3401ae
Run go generate
2021-06-29 17:43:00 -04:00
Joshua Spence and Paul Tyng
510bd417c2
Add generate job
2021-06-29 17:43:00 -04:00
Joshua Spence and Paul Tyng
693795b5f0
Fix failing test
2021-06-29 17:43:00 -04:00
Joshua Spence and Paul Tyng
64a73cdd4b
Fix linter issues
2021-06-29 17:43:00 -04:00
Joshua Spence and Paul Tyng
496fcdf07c
Add GitHub Actions
2021-06-29 17:43:00 -04:00
Joshua Spence and Paul Tyng
0f7cae7373
Mark generated files
...
Hide generated files from diffs in the GitHub UI (see https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/customizing-how-changed-files-appear-on-github ).
2021-06-29 17:40:41 -04:00
Joshua Spence and Paul Tyng
2f7eee3a6a
Add dev_id_override to user
2021-06-18 15:39:41 -04:00
Joshua Spence and Paul Tyng
dd685c0447
Fix type of x_ssh_keys
...
The `unifi_settings_mgmt` resource fails for me with the following error:
```
Error: unable to decode body: GET s/default/get/setting/mgmt unable to unmarshal alias: json: cannot unmarshal object into Go struct field .x_ssh_keys of type string
```
My `x_ssh_keys` looks like this:
```
[
{
"name": "Laptop",
"type": "ssh-rsa",
"key": "REDACTED",
"comment": "REDACTED",
"date": "2021-02-25T08:26:04Z",
"fingerprint": "REDACTED"
}
]
```
2021-06-16 09:28:49 -04:00