From 7da2311c6c3a269231603ae4fe2ee932a2c98f57 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Fri, 19 Aug 2022 10:44:02 -0400 Subject: [PATCH] cmd lint --- cmd/zrok/client.go | 15 --------------- cmd/zrok/main.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 cmd/zrok/client.go diff --git a/cmd/zrok/client.go b/cmd/zrok/client.go deleted file mode 100644 index e14b44b9..00000000 --- a/cmd/zrok/client.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/openziti-test-kitchen/zrok/rest_client_zrok" -) - -func newZrokClient() *rest_client_zrok.Zrok { - transport := httptransport.New(endpoint, "/api/v1", nil) - transport.Producers["application/zrok.v1+json"] = runtime.JSONProducer() - transport.Consumers["application/zrok.v1+json"] = runtime.JSONConsumer() - return rest_client_zrok.New(transport, strfmt.Default) -} diff --git a/cmd/zrok/main.go b/cmd/zrok/main.go index fb3b81b8..5ac7c13f 100644 --- a/cmd/zrok/main.go +++ b/cmd/zrok/main.go @@ -1,7 +1,11 @@ package main import ( + "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/michaelquigley/pfxlog" + "github.com/openziti-test-kitchen/zrok/rest_client_zrok" "github.com/sirupsen/logrus" "github.com/spf13/cobra" "os" @@ -38,3 +42,10 @@ func main() { panic(err) } } + +func newZrokClient() *rest_client_zrok.Zrok { + transport := httptransport.New(endpoint, "/api/v1", nil) + transport.Producers["application/zrok.v1+json"] = runtime.JSONProducer() + transport.Consumers["application/zrok.v1+json"] = runtime.JSONConsumer() + return rest_client_zrok.New(transport, strfmt.Default) +}