Commit Graph

13 Commits

Author SHA1 Message Date
dependabot[bot]
1ad6a13fab Bump golang.org/x/tools from 0.1.7 to 0.1.8 (#56)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.7...v0.1.8)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-21 11:45:47 +11:00
dependabot[bot]
3d8a23e785 Bump golang.org/x/tools from 0.1.6 to 0.1.7 (#51)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.6...v0.1.7)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 09:48:10 +10:00
Joshua Spence
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
e27afc6e32 Add --latest flag
Allow using the latest version of the Unifi controller with `--latest`.
2021-08-11 11:40:15 +10:00
dependabot[bot]
7ebb3b204f Bump github.com/iancoleman/strcase from 0.1.3 to 0.2.0 (#42)
Bumps [github.com/iancoleman/strcase](https://github.com/iancoleman/strcase) from 0.1.3 to 0.2.0.
- [Release notes](https://github.com/iancoleman/strcase/releases)
- [Commits](https://github.com/iancoleman/strcase/compare/v0.1.3...v0.2.0)

---
updated-dependencies:
- dependency-name: github.com/iancoleman/strcase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 09:32:12 +10:00
Paul Tyng
4ab4036985 Bump to 6.0.43, use go generate
Also moved fetching of JSON information to Go for cross-OS usage.
2021-04-09 09:51:50 -04:00
dependabot[bot]
b5c55d88f4 Bump github.com/iancoleman/strcase from 0.1.2 to 0.1.3
Bumps [github.com/iancoleman/strcase](https://github.com/iancoleman/strcase) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/iancoleman/strcase/releases)
- [Commits](https://github.com/iancoleman/strcase/compare/v0.1.2...v0.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-15 09:11:15 -05:00
dependabot[bot]
1aff93dbbb Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-14 14:22:49 -05:00
Paul Tyng
54b85782ca Cleanup mod 2020-12-01 12:31:12 -05:00
Paul Tyng
abc676f62b Add support for 6.0.23 2020-10-20 10:10:32 -04:00
James Stephenson
35eda4f67b Refactor type generator
* Allows for generating top-level types for any embedded struct so
  that sub-types can be properly instantiated from calling code
  * Specifying `-no-embedded-types` will generate top-level types
    rather than embedding the struct

* Refactored "Device" API
  * All fields set to `omitempty` because it describes all possible
    device types, so effectively any field could be omitted any time
  * Fixed `get` call for "Device" API; replacing `rest` with `stat`

* Generated `get` and `update` calls for `Setting*` APIs

* Added `5.14.23` JSON files
2020-09-10 08:50:21 -04:00
James Stephenson
47fa522aba Expose the Account API (RADIUS users)
* Adds Account CRUD API
* Enahnces `emptyStringInt` with a predicate for dynamically setting
  which value should be interpreted as a blank JSON payload
2020-08-27 21:48:13 -04:00
Paul Tyng
435ecf9d6f Initial version
Extracted from paultyng/terraform-provider-unifi@ef25893f14
2020-01-10 14:31:12 -05:00