34 Commits

Author SHA1 Message Date
Fernando Benayas
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
Dane Strandboge
3285a03e9e
fix: do not require remoteOrgID for remote connection creation (#451) 2022-10-28 11:16:53 -05:00
Jeffrey Smith II
f34e6a888f
feat: add username and password login (#418)
* feat: add username and password login

* fix: make sure cookie is not empty

* chore: go mod tidy

* fix: prevent local config from influencing tests

* fix: small cleanup on error handling

* fix: remove unnecessary trim
2022-07-28 10:53:19 -04:00
Andrew Depke
0de05ed3e4
feat: updated openapi to support tasks containing scripts (#430) 2022-07-27 15:21:11 -06:00
Andrew Lee
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
Andrew Depke
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
Andrew Lee
fc529745a5
feat: add back the InfluxQL REPL (#386)
* add v1-compatible query path and refactor other paths to de-duplicate "/query"

* add initial influxQL repl

* add ping endpoint to schema

* improve prompt UX, implement some commands

* fix json column type in schema and improve completion

* feat: add table formatter and move to forked go-prompt

* improve formatting and add table pagination

* implement more REPL commands, including insert and history

* implement "INSERT INTO"

* move repl command to "v1 repl"

* refactor and improve documentation

* clean up v1_repl cmd

* update to latest openapi, use some openapi paths instead of overrides

* remove additional files that were moved to openapi

* compute historyFilePath at REPL start

* clean up REPL use command logic flow

* clean up comments for TODOs now in issues

* move gopher (chonky boi)

* remove autocompletion for separate PR

* run go mod tidy

* add rfc3339 precision option

* allow left and right column scrolling to display whole table

* add error to JSON query response

* add tags and partial to JSON response series schema

* fix csv formatting and add column formatting

* remove table format for separate PR

* fix getDatabases

* move from write to legacy write endpoint for INSERT

* remove history vestiges

* allow multiple spaces in INSERT commands

* add precision comment

* remove auth for separate PR

* separate parseInsert and add unit test

* add additional test case and improve error messages

* fix missing errors import

* print rfc3339 precision

* add rfc3339 to help output
2022-06-10 08:54:07 -06:00
Dane Strandboge
85a33adf71
chore: update to API spec for new template endpoint response (#362) 2022-02-17 14:46:05 -06:00
William Baker
178c7546b1
feat: add server-config command (#346)
* feat: added server-config command

* chore: update openapi to latest
2021-12-23 09:32:31 -05:00
William Baker
68ac116959
chore: update openapi ref to latest (#345)
* chore: update openapi ref to latest

* chore: update to openapi master
2021-12-21 15:15:50 -05:00
William Baker
a408c02bd4
chore: remove remote validation (#333) 2021-11-19 09:00:52 -07:00
Daniel Moran
99791bafd3
feat: add flags for remotes, replications, and functions to auth create (#325) 2021-11-10 11:33:01 -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
e609d4462d
fix: update openapi and regenerate to pull in fix for replications API (#280) 2021-09-23 15:04:08 -04:00
Daniel Moran
9076a65d1e
feat: generate clients for replications APIs (#278) 2021-09-23 09:09:36 -04:00
mcfarlm3
dcf9f5bc9a
feat: added functionality for remote create subcommand (#268)
* feat: implement remote create subcommand

* chore: generate mocks for testing remote command

* refactor: separated out test code, made small changes to remote create code

* chore: ran make fmt

* chore: removed excess print statements

* refactor: made changes suggested in code review

* refactor: added name and remote id to printed table
2021-09-14 13:03:17 -07:00
Daniel Moran
13799e7662
refactor: use updated API in restore client (#226) 2021-08-13 13:50:02 -04:00
Daniel Moran
c3feea5900
feat: update restore to support InfluxDB 2.0.x (#185) 2021-07-09 15:36:44 -04:00
Daniel Moran
4452aac87d
feat: update codegen to include legacy backup/restore routes (#182) 2021-07-08 14:00:42 -04:00
Daniel Moran
aaf99da0a9
feat: add stacks APIs to codegen (#163) 2021-06-30 14:47:35 -04:00
Daniel Moran
69dedbcaa9
fix: correct more details in templates/apply API (#159) 2021-06-29 15:08:36 -04:00
Dane Strandboge
a058fe7e0b
feat: port influx auth command (#152) 2021-06-28 14:06:29 -05:00
Dane Strandboge
a1921e1e59
feat: port influx v1 auth command (#138) 2021-06-28 09:03:33 -05:00
Daniel Moran
1183d3780b
feat: add API & override specs for template application (#144) 2021-06-24 11:31:08 -04: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
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
bd0b90df41
feat: port top-level export command from influxdb (#131) 2021-06-21 08:23:18 -04:00
Dane Strandboge
51b1eadb12
feat: reimplement influx dashboards with new APIs (#122)
Fixes #108
2021-06-15 16:22:09 -05: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
943e8fba31
feat: reimplement influx backup using new APIs (#116) 2021-06-11 09:50:39 -04:00
Daniel Moran
a387cabcfb
refactor: return full HTTP response for binary response bodies (#112) 2021-06-10 11:20:33 -04:00
Daniel Moran
a1cf15d971
refactor: codegen backup and restore APIs (#107) 2021-06-02 16:19:36 -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