23 Commits

Author SHA1 Message Date
Jeffrey Smith II
41059f52b4
chore: update to openapi 5.1.1 to enable arm builds (#453) 2022-11-15 12:17:48 -05:00
Andrew Depke
d470527e43
feat: added tag stripping step to openapi generation to fix codegen (#428)
* feat: added tag stripping step to openapi generation to fix codegen

* fix: run tag removal in docker container

* fix: ignore cli generated yaml
2022-07-26 13:02:19 -06:00
Dane Strandboge
85c690f1f1
chore: add checkgenerate test to lint (#404) 2022-06-23 10:07:38 -05:00
Sam Arnold
714a73d9eb
feat: all-access and operator token from CLI (#285)
* chore: include enum values in openapi generated code

* chore: add enum template to list of template overrides

* chore: update template and generated code

* feat: generate permissions list from openapi spec

* feat: all-access and operator token from CLI

Closes #22510

* fix: cloud fixed the resources endpoint

* fix: all access and operator permissions cannot be composed

* fix: review comments from dan-moran
2021-10-05 14:33:02 -04:00
Daniel Moran
ef4bdcb9b1
build: set up nightly & tagged release jobs (#188) 2021-07-16 17:17:43 -04:00
Sam Arnold
9747d05ae1
refactor: expose generated code and client business logic to share with Kapacitor (#103)
* refactor: take clients out of internal

* refactor: move stdio to pkg

* Move internal/api to api

* refactor: final changes for Kapacitor to access shared functionality

* chore: regenerate mocks

* fix: bad automated refactor

* chore: extra formatting not caught by make fmt
2021-05-25 10:05:01 -04:00
Daniel Moran
4981b6742e
build: set up goreleaser for release (cross-)builds (#101) 2021-05-22 21:21:44 -04:00
Daniel Moran
e4af676ae5
feat: port delete from influxdb (#98) 2021-05-20 09:20:30 -04:00
Daniel Moran
8ab34d59e6
feat: port top-level org commands from influxdb. (#96) 2021-05-17 15:43:02 -04:00
Daniel Moran
b1851eb819
refactor(api): move CLI-specific API contract into this repo, add openapi as submodule (#95) 2021-05-17 14:53:55 -04:00
Daniel Moran
9fe4197625
refactor: bump codegen to pull in more /orgs APIs (#93) 2021-05-14 15:16:19 -04:00
Daniel Moran
223ae250a9
refactor: update codegen to use schema-less flux AST (#65) 2021-05-11 09:35:03 -04:00
Daniel Moran
c44fec7d6d
feat(internal): add /query API to codegen (#62) 2021-05-05 11:01:24 -04:00
Stuart Carnie
7eca7c0bb9
feat: Add bucket schema management commands (#52)
* feat: update generated client to include schema-management APIs
* feat: implement interfaces to decode flags and CSV
* feat: implement decoders for different measurement schema column formats
* feat: extend bucket CLI commands to support schema type property
* feat: add CLI commands to manage measurement schema
* test: add unit tests for bucket schema create, update and list commands
2021-05-05 10:12:11 -04:00
Daniel Moran
cf2b2f2791
refactor: update codegen to clean old files, use new extension (#57) 2021-05-03 11:06:18 -04:00
Daniel Moran
0b4d753728
feat: port influx bucket commands from influxdb (#54)
* feat: add /buckets and /orgs APIs to codegen
* feat: add bucket CLI commands
* test: add bucket tests
2021-05-03 08:46:53 -04:00
Daniel Moran
0e1db1e782
feat: port influx write from influxdb (#47) 2021-04-26 12:32:54 -04:00
Daniel Moran
1aa715df05
refactor: replace api.yml with copy downloaded from openapi repo (#43) 2021-04-26 10:46:02 -04:00
Daniel Moran
73dc5ef63b
feat(api): improve codegen outputs (#41)
* Use `[]byte` for generated request bodies when the source schema has `format: byte`
* Gzip-compress request bodies when `Content-Encoding: gzip` is set
* Require that all models returned as error conditions in our API implement the `error` interface
* Move the implementation for `api.HealthCheck` out of `ping.go` and into `api/error.go`


Co-authored-by: William Baker <55118525+wbaker85@users.noreply.github.com>
2021-04-26 10:10:45 -04:00
Daniel Moran
079f707c21
refactor: replace bash hacks with custom templates (#34) 2021-04-19 15:51:53 -04:00
Daniel Moran
4f62e469e9
refactor: switch to OpenAPITools's generator for our HTTP clients (#33)
* build: add CI job to check OpenAPI generation is clean
* feat: add hidden flag for HTTP debug
2021-04-16 17:16:58 -04:00
Daniel Moran
ca8a5c5364
feat: implement ping command (#31)
* build: use deepmap/oapi-codegen to generate an HTTP client
* feat: add global CLI options
* feat: load local config to find host and token
* feat: implement ping command
* test: add unit tests for ping command
2021-04-14 09:31:21 -04:00
Daniel Moran
8c062cacf0
feat: set up project skeleton for new CLI (#1)
* docs: fill in README
* feat: initial setup of CLI, with help + version commands
* build: add linters and Makefile
* build: add initial CircleCI workflow
2021-04-12 13:39:09 -04:00