84 Commits

Author SHA1 Message Date
Daniel Moran
40fc1845e9
feat: port stacks command from influxdb (#168) 2021-06-30 17:21:50 -04:00
Daniel Moran
8126bd8397
chore: fix up openapi codegen after multi-merge (#166) 2021-06-30 15:24:53 -04:00
Daniel Moran
aaf99da0a9
feat: add stacks APIs to codegen (#163) 2021-06-30 14:47:35 -04:00
Daniel Moran
a3f36a9821
feat: port apply command from influxdb (#160) 2021-06-30 14:47:23 -04:00
William Baker
d7b2983dd4
fix: cloud or oss only error msg for parsable responses (#165)
* fix: cloud or oss only error msg for parsable responses

* fix: add code text to error message

* fix: keep the last part of the error msg

* chore: make the error code a little more succinct

* fix: corrected errors for non-server specific commands

* chore: sync openapi submodule with main
2021-06-30 12:37:31 -04:00
Daniel Moran
69dedbcaa9
fix: correct more details in templates/apply API (#159) 2021-06-29 15:08:36 -04:00
Daniel Moran
eb99827966
fix: fix extension-check logic when normalizing github URLs (#158) 2021-06-29 14:49:41 -04:00
Daniel Moran
93d628dd04
fix: correct mismatches between template-apply spec and impl (#157) 2021-06-29 09:38:03 -04:00
Stuart Carnie
8adffc2bca
fix: Accept bucket ID or bucket name arguments (#151)
* fix: Accept bucket ID or bucket name arguments

* chore: Change order, prioritising bucket ID over bucket name argument

* fix: Ensure name or ID is used to print error
2021-06-29 08:52:34 +10:00
Dane Strandboge
a058fe7e0b
feat: port influx auth command (#152) 2021-06-28 14:06:29 -05:00
Daniel Moran
ead44e4e83
fix: downgrade urfave/cli to v1 to enable more flexible parsing (#154) 2021-06-28 14:49:26 -04:00
mcfarlm3
72d1ad8361
feat: port influx export stack subcommand (#150)
* confirmed subcommand parsing

* feat: port influx export stack subcommand

* refactor: removed redundant code and improved error messages

* chore: ran make fmt to fix code formatting issues

Co-authored-by: Michelle McFarland <michellemcfarland@Michelles-MacBook-Pro.local>
2021-06-28 09:02:49 -07:00
Daniel Moran
7ea63d6a96
fix: add yaml tags to models so we can unmarshal camelCase (#148) 2021-06-28 10:18:41 -04:00
Dane Strandboge
a1921e1e59
feat: port influx v1 auth command (#138) 2021-06-28 09:03:33 -05:00
Daniel Moran
e6d69a8c54
feat: port template-parsing logic from influxdb (#146) 2021-06-24 12:34:13 -04:00
Daniel Moran
fb2d19c884
feat: port table-printers from influxdb (#145) 2021-06-24 11:31:19 -04:00
Daniel Moran
1183d3780b
feat: add API & override specs for template application (#144) 2021-06-24 11:31:08 -04:00
Daniel Moran
8972d23024
feat: port jsonnet decoder from influxdb (#143) 2021-06-23 13:37:46 -04:00
William Baker
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
Dane Strandboge
a3408e031a
chore: refactor password code for StdIO (#139) 2021-06-22 15:34:38 -05:00
William Baker
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
Daniel Moran
a029bf2871
refactor: remove resource-type enums from export commands (#137) 2021-06-22 09:10:03 -04:00
William Baker
800e4c2cfb
feat: placeholder for v1 subcommands (#135)
* feat: placeholder for v1 subcommands

* chore: more usage comments
2021-06-21 16:03:39 -04:00
Dane Strandboge
23e73e9146
feat: reimplement influx secret CLI command (#125)
* refactor: rename `getPassword` to `getSecret`
2021-06-21 13:33:51 -05:00
Daniel Moran
a4fdefc392
feat: port export all command from influxdb (#134) 2021-06-21 12:34:15 -04:00
Daniel Moran
bd0b90df41
feat: port top-level export command from influxdb (#131) 2021-06-21 08:23:18 -04:00
Daniel Moran
0ee555c6a7
fix: fix bugs in new influx restore impl (#124)
* fix: adjust restore-org logic to handle 404
* fix: overwrite org ID and name before restoring bucket
2021-06-16 11:22:01 -04:00
Daniel Moran
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
Dane Strandboge
51b1eadb12
feat: reimplement influx dashboards with new APIs (#122)
Fixes #108
2021-06-15 16:22:09 -05:00
Daniel Moran
6757c2bcfa
feat: implement influx restore using new APIs (#121) 2021-06-15 16:45:55 -04:00
Dane Strandboge
abe521add0
feat: reimplement influx telegrafs with new APIs (#120)
* feat: reimplement `influx telegrafs` with new APIs

* chore: restructure structs for later modification

* refactor: bump openapi & regenerate clients

* refactor: better error output and descriptions

Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-06-15 14:55:04 -05:00
Daniel Moran
581daaa5ba
build: run tests natively on ARM, Mac, and Windows in CI (#111) 2021-06-14 10:36:35 -04:00
Daniel Moran
0acb80b044
refactor: use io.ReadCloser instead of **os.File for binary request params (#119) 2021-06-11 17:35:01 -04:00
Daniel Moran
b1ba53bae2
refactor: move request-compression out of codegen, avoid some buffering (#118) 2021-06-11 16:01:34 -04:00
Daniel Moran
a1f8e0edf1
test: remove racy logic from backup test (#117) 2021-06-11 10:01:51 -04:00
Daniel Moran
943e8fba31
feat: reimplement influx backup using new APIs (#116) 2021-06-11 09:50:39 -04:00
Dane Strandboge
ea2cbab67b
chore: add .idea/ to gitignore (#115) 2021-06-10 13:48:23 -05:00
Daniel Moran
a387cabcfb
refactor: return full HTTP response for binary response bodies (#112) 2021-06-10 11:20:33 -04:00
Pavel Závora
1c2f61f5ca
feat(write): warn about standalone CR characters in header lines (#109)
* feat(write): warn about standalone CR characters in header lines

* feat(write): add test for Windows CRLF line endings

* chore: improve warning message

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* chore: update test with a new warning message

Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-06-07 14:59:57 +02:00
Daniel Moran
a1cf15d971
refactor: codegen backup and restore APIs (#107) 2021-06-02 16:19:36 -04:00
Sam Arnold
63da8eccbd
feat: task subcommand (#105)
* feat: task subcommand

Closes #19

* fix: testing and review comments

* fix: pointer deref and error message
2021-05-26 08:44:22 -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
Sam Arnold
d54aa9ec2d
feat: create subcommand for tasks cli (#102)
* refactor: add task APIs to codegen

* feat: tasks subcommand

Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-05-25 09:06:37 -04:00
Daniel Moran
4981b6742e
build: set up goreleaser for release (cross-)builds (#101) 2021-05-22 21:21:44 -04:00
Daniel Moran
60dd8b54b5
feat: port user commands from influxdb (#99) 2021-05-20 13:24:13 -04:00
Daniel Moran
e4af676ae5
feat: port delete from influxdb (#98) 2021-05-20 09:20:30 -04:00
Daniel Moran
d8ef442b64
feat: port org members commands from influxdb (#97) 2021-05-19 11:02:59 -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
8e73906437
refactor: replace global slices with functions (#94)
I started to see strange behavior where flags would merge across
subcommands. I'm not sure if the bug was in our 'append' usage or
in urfave/cli's handling of flag-slices, but this change seems to
fix the problem either way.
2021-05-14 16:10:07 -04:00