29 Commits

Author SHA1 Message Date
4ce9053ddb fix: updated api for deleting secrets so "influx secret delete" command works again (#469)
* fix: updated api for deleting secrets

* fix: reversed code comments update
2023-01-09 08:35:09 -05:00
3285a03e9e fix: do not require remoteOrgID for remote connection creation (#451) 2022-10-28 11:16:53 -05:00
e5707cd63c feat: allow setting membership type in influx org members add (#402)
* add owners endpoints to cli.yml

* run make openapi and mock

* add owner listing, adding and removing

* fix: update tests to remove getUser indirection
2022-06-28 16:06:58 -06:00
09881c0214 chore: fix typo in mockgen (#403) 2022-06-23 10:02:00 -05:00
760f07ed9e feat: invokable scripts (#387)
* basic list, create, and invoke working

* all commands working

* added support for create script body from file and invoke params from file

* linter cleanup

* update defaults to existing parameters if not provided

* updated generated mock files, added mock files for scripts, added basic script create test

* added mock script list

* cleanup pass, fixed not using params in list call

* added update mock test

* fixed mock tests requiring go 1.18

* updated openapi, integrated overrides upstream, added new override to fix codegen bug

* added nil check

* fixed routes
2022-06-22 14:08:55 -06:00
4c0fae3a4c feat: add ExecuteWithHttpInfo methods for generated API (#336)
* feat: add `ExecuteWithHttpInfo` methods for generated API

* chore: update templates README

* chore: update comment to explain usage of response body

* chore: update template README

* chore: fix formatting
2021-11-29 15:42:29 -06:00
bfd929f444 fix: detect non-interactive stdio and use "normal" IO operations (#204) 2021-07-21 17:03:41 -04:00
4452aac87d feat: update codegen to include legacy backup/restore routes (#182) 2021-07-08 14:00:42 -04:00
a3f36a9821 feat: port apply command from influxdb (#160) 2021-06-30 14:47:23 -04:00
d519890f03 feat: improved error messages for cloud- or oss-only commands (#140)
* feat: set logging info for cloud- or oss-only commands

* fix: add cloud-only to BucketSchemasApi

* fix: api-only flagging and %w for return error wrapping

* fix: keep the model assignment
2021-06-23 10:41:35 -04:00
a3408e031a chore: refactor password code for StdIO (#139) 2021-06-22 15:34:38 -05:00
f80b91730d feat: v1 dbrp commands (#136)
* feat: v1 dbrp commands

* fix: fixed the cloud create command

* chore: cleanup

* fix: updated based on required attrs in swagger

* feat: update to latest openapi rev

* chore: made dbrps plural consistently

* chore: formatting

* fix: standardized Default field name and added comments

* chore: changed file name for command to singular
2021-06-22 10:07:15 -04:00
23e73e9146 feat: reimplement influx secret CLI command (#125)
* refactor: rename `getPassword` to `getSecret`
2021-06-21 13:33:51 -05:00
1dad2f5f72 refactor: move things around to make building a client easier from other projects (#123)
* refactor: split logic for building API config into public func
* refactor: move config code out of internal/
2021-06-16 11:09:26 -04:00
943e8fba31 feat: reimplement influx backup using new APIs (#116) 2021-06-11 09:50:39 -04:00
a387cabcfb refactor: return full HTTP response for binary response bodies (#112) 2021-06-10 11:20:33 -04:00
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
60dd8b54b5 feat: port user commands from influxdb (#99) 2021-05-20 13:24:13 -04:00
e4af676ae5 feat: port delete from influxdb (#98) 2021-05-20 09:20:30 -04:00
d8ef442b64 feat: port org members commands from influxdb (#97) 2021-05-19 11:02:59 -04:00
9fe4197625 refactor: bump codegen to pull in more /orgs APIs (#93) 2021-05-14 15:16:19 -04:00
d22fb717c6 feat: port most of influx query from influxdb (#86) 2021-05-12 15:18:08 -04:00
d995f7d182 test: replace hand-written mocks with gomock (#63) 2021-05-06 10:19:41 -04:00
f95668ada6 refactor: improve codegen to support influx query rewrite (#60)
* build: add goimports to fmt target to remove unused imports
* feat: update codegen template to support returning raw response body
* feat: add support for gunzip-ing response bodies
* refactor: remove unused piece from codegen return values
2021-05-05 10:30:22 -04:00
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
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
0e1db1e782 feat: port influx write from influxdb (#47) 2021-04-26 12:32:54 -04:00
cf30ec4345 refactor: move mock APIs and services into mock module (#39) 2021-04-26 09:51:27 -04:00
68ad797ab7 feat: port influx setup from influxdb (#35) 2021-04-22 09:46:15 -04:00