mirror of
https://github.com/openziti/zrok.git
synced 2025-06-22 18:51:33 +02:00
cmd lint
This commit is contained in:
parent
6fa4fc2973
commit
7da2311c6c
@ -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)
|
|
||||||
}
|
|
@ -1,7 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/go-openapi/runtime"
|
||||||
|
httptransport "github.com/go-openapi/runtime/client"
|
||||||
|
"github.com/go-openapi/strfmt"
|
||||||
"github.com/michaelquigley/pfxlog"
|
"github.com/michaelquigley/pfxlog"
|
||||||
|
"github.com/openziti-test-kitchen/zrok/rest_client_zrok"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"os"
|
"os"
|
||||||
@ -38,3 +42,10 @@ func main() {
|
|||||||
panic(err)
|
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)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user