File tree Expand file tree Collapse file tree 14 files changed +74
-33
lines changed Expand file tree Collapse file tree 14 files changed +74
-33
lines changed Original file line number Diff line number Diff line change 1
- issues :
2
- max-issues-per-linter : 0
3
- max-same-issues : 0
4
-
5
1
linters :
6
2
disable :
7
3
- dupl
@@ -48,6 +44,8 @@ linters-settings:
48
44
- hugeParam
49
45
50
46
issues :
47
+ max-issues-per-linter : 0
48
+ max-same-issues : 0
51
49
# Excluding configuration per-path, per-linter, per-text and per-source
52
50
exclude-rules :
53
51
- path : _test\.go
Original file line number Diff line number Diff line change 1
1
ecctl
2
- Copyright 2019-2021 Elasticsearch B.V.
2
+ Copyright 2019-2022 Elasticsearch B.V.
3
3
4
4
This product includes software developed at Elasticsearch B.V. and
5
5
third-party software developed by the licenses listed below.
@@ -17,6 +17,4 @@ github.com/asaskevich/govalidator MIT
17
17
github.com/spf13/viper MIT
18
18
github.com/stretchr/testify MIT
19
19
20
-
21
-
22
20
=========================================================================
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ VERSION_DIR:=$(GOBIN)/versions
6
6
7
7
VERSION_GOLINT:=v0.0.0-20191125180803-fdd1cda4f05f
8
8
VERSION_GOLICENSER:=v0.3.0
9
- VERSION_GOLANGCILINT:=v1.38.0
9
+ VERSION_GOLANGCILINT:=v1.50.1
10
10
VERSION_GOBINDATA:=v0.0.0-20190711162640-ee3c2418e368
11
11
VERSION_GORELEASER:=v1.2.5
12
12
VERSION_VERSIONBUMP:=v1.1.0
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import (
30
30
var createCmd = & cobra.Command {
31
31
Use : "create <message> --resource-type <resource-type> --resource-id <resource-id>" ,
32
32
Short : cmdutil .AdminReqDescription ("Creates a new resource comment" ),
33
- PreRunE : cobra .ExactValidArgs ( 1 ),
33
+ PreRunE : cobra .MatchAll ( cobra . ExactArgs ( 1 ), cobra . OnlyValidArgs ),
34
34
RunE : func (cmd * cobra.Command , args []string ) error {
35
35
resourceType , _ := cmd .Flags ().GetString ("resource-type" )
36
36
resourceID , _ := cmd .Flags ().GetString ("resource-id" )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import (
30
30
var deleteCmd = & cobra.Command {
31
31
Use : "delete <comment id> --resource-type <resource-type> --resource-id <resource-id>" ,
32
32
Short : cmdutil .AdminReqDescription ("Deletes a resource comment" ),
33
- PreRunE : cobra .ExactValidArgs ( 1 ),
33
+ PreRunE : cobra .MatchAll ( cobra . ExactArgs ( 1 ), cobra . OnlyValidArgs ),
34
34
RunE : func (cmd * cobra.Command , args []string ) error {
35
35
resourceType , _ := cmd .Flags ().GetString ("resource-type" )
36
36
resourceID , _ := cmd .Flags ().GetString ("resource-id" )
Original file line number Diff line number Diff line change 53
53
"value" : 1024
54
54
},
55
55
"zone_count" : 2
56
+ },
57
+ {
58
+ "elasticsearch" : {},
59
+ "instance_configuration_id" : " gcp.coordinating.1" ,
60
+ "node_roles" : null ,
61
+ "node_type" : {
62
+ "data" : false ,
63
+ "ingest" : true ,
64
+ "master" : false
65
+ },
66
+ "size" : {
67
+ "resource" : " memory" ,
68
+ "value" : 0
69
+ },
70
+ "zone_count" : 2
71
+ },
72
+ {
73
+ "elasticsearch" : {},
74
+ "instance_configuration_id" : " gcp.master.1" ,
75
+ "node_roles" : null ,
76
+ "node_type" : {
77
+ "data" : false ,
78
+ "ingest" : false ,
79
+ "master" : true
80
+ },
81
+ "size" : {
82
+ "resource" : " memory" ,
83
+ "value" : 0
84
+ },
85
+ "zone_count" : 3
86
+ },
87
+ {
88
+ "elasticsearch" : {},
89
+ "instance_configuration_id" : " gcp.ml.1" ,
90
+ "node_roles" : null ,
91
+ "node_type" : {
92
+ "data" : false ,
93
+ "ingest" : false ,
94
+ "master" : false ,
95
+ "ml" : true
96
+ },
97
+ "size" : {
98
+ "resource" : " memory" ,
99
+ "value" : 0
100
+ },
101
+ "zone_count" : 1
56
102
}
57
103
],
58
104
"deployment_template" : {
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ ecctl user key delete --user=<user id> <key id> <key id>... [flags]
11
11
=== Options
12
12
13
13
----
14
- -h, --help help for delete
14
+ -h, --help help for delete
15
+ --user string user id for the specified action
15
16
----
16
17
17
18
[float]
@@ -32,7 +33,6 @@ ecctl user key delete --user=<user id> <key id> <key id>... [flags]
32
33
--region string Elasticsearch Service region
33
34
--timeout duration Timeout to use on all HTTP calls (default 30s)
34
35
--trace Enables tracing saves the trace to trace-20060102150405
35
- --user string Username to use to authenticate (If empty will look for EC_USER environment variable)
36
36
--verbose Enable verbose mode
37
37
--verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text
38
38
--verbose-file string When set, the verbose request/response trail will be written to the defined file
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ ecctl user key delete --user=<user id> <key id> <key id>... [flags]
9
9
### Options
10
10
11
11
```
12
- -h, --help help for delete
12
+ -h, --help help for delete
13
+ --user string user id for the specified action
13
14
```
14
15
15
16
### Options inherited from parent commands
@@ -29,7 +30,6 @@ ecctl user key delete --user=<user id> <key id> <key id>... [flags]
29
30
--region string Elasticsearch Service region
30
31
--timeout duration Timeout to use on all HTTP calls (default 30s)
31
32
--trace Enables tracing saves the trace to trace-20060102150405
32
- --user string Username to use to authenticate (If empty will look for EC_USER environment variable)
33
33
--verbose Enable verbose mode
34
34
--verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text
35
35
--verbose-file string When set, the verbose request/response trail will be written to the defined file
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ ecctl user key list --user=<user id>|--all [flags]
11
11
=== Options
12
12
13
13
----
14
- --all If specified, lists all API keys for all platform users
15
- -h, --help help for list
14
+ --all If specified, lists all API keys for all platform users
15
+ -h, --help help for list
16
+ --user string user id for the specified action
16
17
----
17
18
18
19
[float]
@@ -33,7 +34,6 @@ ecctl user key list --user=<user id>|--all [flags]
33
34
--region string Elasticsearch Service region
34
35
--timeout duration Timeout to use on all HTTP calls (default 30s)
35
36
--trace Enables tracing saves the trace to trace-20060102150405
36
- --user string Username to use to authenticate (If empty will look for EC_USER environment variable)
37
37
--verbose Enable verbose mode
38
38
--verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text
39
39
--verbose-file string When set, the verbose request/response trail will be written to the defined file
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ ecctl user key list --user=<user id>|--all [flags]
9
9
### Options
10
10
11
11
```
12
- --all If specified, lists all API keys for all platform users
13
- -h, --help help for list
12
+ --all If specified, lists all API keys for all platform users
13
+ -h, --help help for list
14
+ --user string user id for the specified action
14
15
```
15
16
16
17
### Options inherited from parent commands
@@ -30,7 +31,6 @@ ecctl user key list --user=<user id>|--all [flags]
30
31
--region string Elasticsearch Service region
31
32
--timeout duration Timeout to use on all HTTP calls (default 30s)
32
33
--trace Enables tracing saves the trace to trace-20060102150405
33
- --user string Username to use to authenticate (If empty will look for EC_USER environment variable)
34
34
--verbose Enable verbose mode
35
35
--verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text
36
36
--verbose-file string When set, the verbose request/response trail will be written to the defined file
You can’t perform that action at this time.
0 commit comments