Commit Graph

210 Commits

Author SHA1 Message Date
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
a408c02bd4 chore: remove remote validation (#333) 2021-11-19 09:00:52 -07:00
f32a55f3bf feat: add drop-non-retryable-data to replications commands (#330)
* feat: add drop-non-retryable-data to replications commands

* refactor: use drop vs nodrop flags

* chore: use the built-in PtrBool
2021-11-17 14:16:58 -07:00
6a7c4f6d44 fix: v1 auth create supports multiple buckets (#328) 2021-11-11 11:43:14 -05:00
adc58b8441 chore: refactor influxid.ID, cleanup organization checking (#326) 2021-11-10 15:12:59 -06:00
99791bafd3 feat: add flags for remotes, replications, and functions to auth create (#325) 2021-11-10 11:33:01 -05:00
1eadcf12e1 chore: update CHANGELOG (#323) 2021-11-10 09:35:35 -05:00
566dcafae9 chore: update CHANGELOG (#319) 2021-11-09 10:30:02 -05:00
9c9785e359 fix: wrong position of orgID and userID in org members remove (#318) 2021-11-09 10:22:46 -05:00
d861490100 fix: return "unknown command" instead of "no help topic" error when unknown (sub)command is passed (#316)
Co-authored-by: Sam Lai <samuel.lai@gmail.com>
2021-11-02 14:17:42 -04:00
a3af8ca833 revert: "feat: return error if API token required but not found (#310)" (#315)
This reverts commit 81de7e63dd2649cd043c7a66c6698a9f5609552c.
2021-11-01 12:57:30 -04:00
81de7e63dd feat: return error if API token required but not found (#310) 2021-10-22 10:06:12 -04:00
c3690d8584 chore: pin release date in CHANGELOG (#311) 2021-10-21 11:20:21 -04:00
3e76528ed2 build: upgrade protobuf library (#308) 2021-10-18 13:22:54 -05:00
6fda4cceed feat: handle pagination in bucket list (#307) 2021-10-15 15:14:59 -07:00
d92bede8d3 fix: embed tzdata into Windows builds (#305)
Migrate cross-test jobs to use cross-builder so Windows tests run on a system without Go, as a regression test
2021-10-14 08:49:26 -07:00
964bc4fe03 fix: set newly-created config as active in setup (#302) 2021-10-14 07:00:16 -07:00
af631b4da8 build: bump to go1.17.2 (#300) 2021-10-12 09:27:23 -07:00
c49001b412 feat: added functionality for replication update command (#299)
* feat: added functionality for replication update command

* refactor: changed replication update usage text for clarity

* fix: added closing bracket back in

* chore: ran make fmt
2021-10-08 14:08:44 -07:00
eb3ee7631f feat: added functionality for replication delete command (#298)
* feat: added functionality for replication delete command

* refactor: changed naming of remote-id flag to be consistent with other influx commands

* refactor: reduced lines of code and improved error message based on code review
2021-10-07 14:43:03 -07:00
cafae42d3c build: update deb/rpm metadata to ref influxdb2 v2.1.0 (#292) 2021-10-07 09:04:22 -04:00
c4a5a13c8e fix: restore when changing tokens works (#297)
* fix: restore when changing tokens works

* fix: remove cruft

* chore: changelog update

* chore: CHANGELOG word-smithing

Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-10-07 08:23:39 -04:00
64b1b03f8f feat: added functionality for replication list command (#296)
* feat: added functionality for replication list command

* chore: ran make fmt

* refactor: fixed comment for clarity

* refactor: chained statements together to simplify code
2021-10-06 17:42:16 -07:00
4e8671dcc5 feat: added functionality for replication create command (#289)
* feat: added functionality for replication create command

* refactor: changed replication create flag usage text and eliminated extra conditionals

* refactor: made changes to usage text and output table based on code review

* chore: fixed link to max queue size default value
2021-10-06 10:48:57 -07:00
857e2b356c chore: expose tabwriter so InfluxDB can use it (#295) 2021-10-06 11:27:25 -04:00
25b8bddd56 chore: update CHANGELOG (#291) 2021-10-05 16:11:01 -04:00
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
ade82cc4fe fix: removed unused fmt import in remote cmd code (#287) 2021-10-04 11:04:19 -07:00
3c3d70cc60 feat: added functionality for remote update command (#282)
* feat: added functionality for remote update command

* refactor: removed extra get request for TLS flag and minor changes to help text

* chore: pulled newest changes to openapi and ran make fmt

* refactor: shortened conditional statement to one line
2021-10-04 10:28:07 -07:00
b7627a33c8 feat: added functionality for remote delete command (#283)
* feat: added functionality for remote delete command

* chore: pulled recent openapi changes and ran make fmt
2021-10-04 10:02:36 -07:00
d0640ad6c4 fix: regenerate using new openapi to fix health API client (#284) 2021-09-24 14:27:19 -04:00
f17f21410c fix: allow explicit empty request bodies (#281) 2021-09-24 11:35:29 -04:00
e609d4462d fix: update openapi and regenerate to pull in fix for replications API (#280) 2021-09-23 15:04:08 -04:00
9076a65d1e feat: generate clients for replications APIs (#278) 2021-09-23 09:09:36 -04:00
65cca47ded feat: added functionality for remote list subcommand (#273)
* feat: add remote list subcommand functionality

* refactor: removed repeated code and improved help text
2021-09-22 09:18:06 -07:00
9a008c6b26 fix: fix type test for common flags (#275) 2021-09-21 13:26:21 -04:00
dfc6f00982 fix: less confusing overloads of 'token' in help (#272)
* chore: refactor GetOrg calls

* fix: less confusing overloads of 'token' in help

Closes #20619

* fix: clean up iscommon function definition
2021-09-20 13:57:45 -04:00
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
2d1f3ee3bc build: allow specifying -gcflags via env (#267)
Make targets may call '$(GO_BUILD)', but there is no facility for
specifying arguments to 'go build'. As a first step, introduce the
GCFLAGS Makefile variable that when unset, operates as always, but when
set, adds '-gcflags "$(GCFLAGS)"' to go build. Eg, when unspecified,
maintain the current behavior (though with an additional space):

$ make
CGO_ENABLED=0 go build  -ldflags ...

When specified, add the specified -gcflags:

$ GCFLAGS="all=-N -l" make
CGO_ENABLED=0 go build -gcflags "all=-N -l" -ldflags ...

This could be useful in various situations such as producing unoptimized
builds (like in the above).
2021-09-14 11:35:45 -04:00
3895d1ac7b build: upgrade to go1.17.1 (#265) 2021-09-10 15:30:34 -04:00
76e9ed68d8 feat: add shorthand for --bucket to influx delete (#259) 2021-09-08 15:26:34 -05:00
1ec4e1590b feat: stub out remote and replication commands and subcommands (#254)
* feat: stubbed out remote and replication commands and subcommands

* refactor: renamed remote.go file to match command

* refactor: combined replication metrics and replication list subcommands into list only

* refactor: removed extra appends to pass lint check
2021-09-03 13:17:18 -07:00
65da55e3f3 fix: --host value passed to setup is written to generated config (#255) 2021-09-02 17:42:37 -04:00
38040fa8dc fix: upgrade golang.org/x/sys to avoid panics on Macs (#252) 2021-09-01 17:38:59 -04:00
7de3681224 build: upgrade to go1.17 (#251) 2021-09-01 14:11:15 -04:00
fa12328714 fix: detect and error out on incorrect positional args (#236) 2021-08-20 17:30:30 -04:00
c0103e7b1b build: fix make fmt, reformat test sources (#234) 2021-08-20 15:26:00 -04:00
3a6dfe7102 fix: don't set empty strings for IDs in permission resources (#232) 2021-08-20 10:58:51 -04:00
285103df13 fix: make --http-debug flag visible in help text (#228) 2021-08-20 10:27:36 -04:00
13799e7662 refactor: use updated API in restore client (#226) 2021-08-13 13:50:02 -04:00