mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
Merge pull request #145 from openziti/ziti-fabric-list-queries
Let ziti-fabric list services,router, terminators do queries. Default…
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
* Bug Fixes:
|
||||
* [#142](https://github.com/openziti/ziti/issues/142) - fix CLI ca create not defaulting identity roles
|
||||
* [#144](https://github.com/openziti/ziti/issues/144) - ziti-fabric is only returning first 10 results for lists of services, routers and terminators
|
||||
|
||||
|
||||
# Release 0.15.1
|
||||
|
||||
@@ -36,7 +36,13 @@ var listRouters = &cobra.Command{
|
||||
Short: "List routers enrolled on the fabric",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if ch, err := listRoutersClient.Connect(); err == nil {
|
||||
request := &mgmt_pb.ListRoutersRequest{}
|
||||
query := "true limit none"
|
||||
if len(args) > 0 {
|
||||
query = args[0]
|
||||
}
|
||||
request := &mgmt_pb.ListRoutersRequest{
|
||||
Query: query,
|
||||
}
|
||||
body, err := proto.Marshal(request)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@@ -36,7 +36,13 @@ var listServices = &cobra.Command{
|
||||
Short: "Retrieve all service definitions",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if ch, err := listServicesClient.Connect(); err == nil {
|
||||
request := &mgmt_pb.ListServicesRequest{}
|
||||
query := "true limit none"
|
||||
if len(args) > 0 {
|
||||
query = args[0]
|
||||
}
|
||||
request := &mgmt_pb.ListServicesRequest{
|
||||
Query: query,
|
||||
}
|
||||
body, err := proto.Marshal(request)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@@ -36,7 +36,13 @@ var listTerminators = &cobra.Command{
|
||||
Short: "Retrieve terminator definitions",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if ch, err := listTerminatorsClient.Connect(); err == nil {
|
||||
request := &mgmt_pb.ListTerminatorsRequest{}
|
||||
query := "true limit none"
|
||||
if len(args) > 0 {
|
||||
query = args[0]
|
||||
}
|
||||
request := &mgmt_pb.ListTerminatorsRequest{
|
||||
Query: query,
|
||||
}
|
||||
body, err := proto.Marshal(request)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user