let's try embracing more camel case

This commit is contained in:
Michael Quigley 2022-12-14 14:40:45 -05:00
parent 856cf45ddc
commit 65ff0f4f23
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
57 changed files with 107 additions and 107 deletions

View File

@ -3,7 +3,7 @@ package main
import ( import (
"github.com/go-openapi/runtime" "github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client" httptransport "github.com/go-openapi/runtime/client"
"github.com/openziti-test-kitchen/zrok/endpoints/private_frontend" "github.com/openziti-test-kitchen/zrok/endpoints/privateFrontend"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok" "github.com/openziti-test-kitchen/zrok/rest_client_zrok"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/service" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/service"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
@ -78,7 +78,7 @@ func (cmd *accessPrivateCommand) run(_ *cobra.Command, args []string) {
} }
logrus.Infof("allocated frontend '%v'", accessResp.Payload.FrontendToken) logrus.Infof("allocated frontend '%v'", accessResp.Payload.FrontendToken)
cfg := private_frontend.DefaultConfig("backend") cfg := privateFrontend.DefaultConfig("backend")
cfg.SvcToken = svcToken cfg.SvcToken = svcToken
cfg.Address = cmd.bindAddress cfg.Address = cmd.bindAddress
@ -90,7 +90,7 @@ func (cmd *accessPrivateCommand) run(_ *cobra.Command, args []string) {
os.Exit(0) os.Exit(0)
}() }()
frontend, err := private_frontend.NewHTTP(cfg) frontend, err := privateFrontend.NewHTTP(cfg)
if err != nil { if err != nil {
if !panicInstead { if !panicInstead {
showError("unable to create private frontend", err) showError("unable to create private frontend", err)

View File

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/michaelquigley/cf" "github.com/michaelquigley/cf"
"github.com/openziti-test-kitchen/zrok/endpoints/public_frontend" "github.com/openziti-test-kitchen/zrok/endpoints/publicFrontend"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -29,7 +29,7 @@ func newAccessPublicCommand() *accessPublicCommand {
} }
func (self *accessPublicCommand) run(_ *cobra.Command, args []string) { func (self *accessPublicCommand) run(_ *cobra.Command, args []string) {
cfg := public_frontend.DefaultConfig() cfg := publicFrontend.DefaultConfig()
if len(args) == 1 { if len(args) == 1 {
if err := cfg.Load(args[0]); err != nil { if err := cfg.Load(args[0]); err != nil {
if !panicInstead { if !panicInstead {
@ -39,7 +39,7 @@ func (self *accessPublicCommand) run(_ *cobra.Command, args []string) {
} }
} }
logrus.Infof(cf.Dump(cfg, cf.DefaultOptions())) logrus.Infof(cf.Dump(cfg, cf.DefaultOptions()))
frontend, err := public_frontend.NewHTTP(cfg) frontend, err := publicFrontend.NewHTTP(cfg)
if err != nil { if err != nil {
if !panicInstead { if !panicInstead {
showError("unable to create http frontend", err) showError("unable to create http frontend", err)

View File

@ -1,4 +1,4 @@
package endpoint_ui package endpointUi
import "embed" import "embed"

View File

@ -5,8 +5,8 @@ import (
ui "github.com/gizak/termui/v3" ui "github.com/gizak/termui/v3"
"github.com/go-openapi/runtime" "github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client" httptransport "github.com/go-openapi/runtime/client"
"github.com/openziti-test-kitchen/zrok/endpoints/proxy_backend" "github.com/openziti-test-kitchen/zrok/endpoints/proxyBackend"
"github.com/openziti-test-kitchen/zrok/endpoints/web_backend" "github.com/openziti-test-kitchen/zrok/endpoints/webBackend"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok" "github.com/openziti-test-kitchen/zrok/rest_client_zrok"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/service" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/service"
@ -133,7 +133,7 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
switch cmd.backendMode { switch cmd.backendMode {
case "proxy": case "proxy":
cfg := &proxy_backend.Config{ cfg := &proxyBackend.Config{
IdentityPath: zif, IdentityPath: zif,
EndpointAddress: target, EndpointAddress: target,
Service: resp.Payload.SvcToken, Service: resp.Payload.SvcToken,
@ -148,7 +148,7 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
} }
case "web": case "web":
cfg := &web_backend.Config{ cfg := &webBackend.Config{
IdentityPath: zif, IdentityPath: zif,
WebRoot: target, WebRoot: target,
Service: resp.Payload.SvcToken, Service: resp.Payload.SvcToken,
@ -174,8 +174,8 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
} }
} }
func (cmd *sharePrivateCommand) proxyBackendMode(cfg *proxy_backend.Config) (backendHandler, error) { func (cmd *sharePrivateCommand) proxyBackendMode(cfg *proxyBackend.Config) (backendHandler, error) {
be, err := proxy_backend.NewBackend(cfg) be, err := proxyBackend.NewBackend(cfg)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "error creating http proxy backend") return nil, errors.Wrap(err, "error creating http proxy backend")
} }
@ -189,8 +189,8 @@ func (cmd *sharePrivateCommand) proxyBackendMode(cfg *proxy_backend.Config) (bac
return be, nil return be, nil
} }
func (cmd *sharePrivateCommand) webBackendMode(cfg *web_backend.Config) (backendHandler, error) { func (cmd *sharePrivateCommand) webBackendMode(cfg *webBackend.Config) (backendHandler, error) {
be, err := web_backend.NewBackend(cfg) be, err := webBackend.NewBackend(cfg)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "error creating http web backend") return nil, errors.Wrap(err, "error creating http web backend")
} }

View File

@ -7,8 +7,8 @@ import (
"github.com/go-openapi/runtime" "github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client" httptransport "github.com/go-openapi/runtime/client"
tb "github.com/nsf/termbox-go" tb "github.com/nsf/termbox-go"
"github.com/openziti-test-kitchen/zrok/endpoints/proxy_backend" "github.com/openziti-test-kitchen/zrok/endpoints/proxyBackend"
"github.com/openziti-test-kitchen/zrok/endpoints/web_backend" "github.com/openziti-test-kitchen/zrok/endpoints/webBackend"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok" "github.com/openziti-test-kitchen/zrok/rest_client_zrok"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/service" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/service"
@ -154,7 +154,7 @@ func (cmd *sharePublicCommand) run(_ *cobra.Command, args []string) {
var bh backendHandler var bh backendHandler
switch cmd.backendMode { switch cmd.backendMode {
case "proxy": case "proxy":
cfg := &proxy_backend.Config{ cfg := &proxyBackend.Config{
IdentityPath: zif, IdentityPath: zif,
EndpointAddress: target, EndpointAddress: target,
Service: resp.Payload.SvcToken, Service: resp.Payload.SvcToken,
@ -169,7 +169,7 @@ func (cmd *sharePublicCommand) run(_ *cobra.Command, args []string) {
} }
case "web": case "web":
cfg := &web_backend.Config{ cfg := &webBackend.Config{
IdentityPath: zif, IdentityPath: zif,
WebRoot: target, WebRoot: target,
Service: resp.Payload.SvcToken, Service: resp.Payload.SvcToken,
@ -256,8 +256,8 @@ func (cmd *sharePublicCommand) run(_ *cobra.Command, args []string) {
} }
} }
func (cmd *sharePublicCommand) proxyBackendMode(cfg *proxy_backend.Config) (backendHandler, error) { func (cmd *sharePublicCommand) proxyBackendMode(cfg *proxyBackend.Config) (backendHandler, error) {
be, err := proxy_backend.NewBackend(cfg) be, err := proxyBackend.NewBackend(cfg)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "error creating http proxy backend") return nil, errors.Wrap(err, "error creating http proxy backend")
} }
@ -271,8 +271,8 @@ func (cmd *sharePublicCommand) proxyBackendMode(cfg *proxy_backend.Config) (back
return be, nil return be, nil
} }
func (cmd *sharePublicCommand) webBackendMode(cfg *web_backend.Config) (backendHandler, error) { func (cmd *sharePublicCommand) webBackendMode(cfg *webBackend.Config) (backendHandler, error) {
be, err := web_backend.NewBackend(cfg) be, err := webBackend.NewBackend(cfg)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "error creating http web backend") return nil, errors.Wrap(err, "error creating http web backend")
} }

View File

@ -3,7 +3,7 @@ package main
import ( import (
ui "github.com/gizak/termui/v3" ui "github.com/gizak/termui/v3"
httptransport "github.com/go-openapi/runtime/client" httptransport "github.com/go-openapi/runtime/client"
"github.com/openziti-test-kitchen/zrok/endpoints/proxy_backend" "github.com/openziti-test-kitchen/zrok/endpoints/proxyBackend"
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/service" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/service"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/zrokdir" "github.com/openziti-test-kitchen/zrok/zrokdir"
@ -91,7 +91,7 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
} }
panic(err) panic(err)
} }
cfg := &proxy_backend.Config{ cfg := &proxyBackend.Config{
IdentityPath: zif, IdentityPath: zif,
EndpointAddress: targetEndpoint, EndpointAddress: targetEndpoint,
Service: svcToken, Service: svcToken,
@ -115,7 +115,7 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
logrus.Infof("using existing backend proxy endpoint: %v", targetEndpoint) logrus.Infof("using existing backend proxy endpoint: %v", targetEndpoint)
} }
httpProxy, err := proxy_backend.NewBackend(cfg) httpProxy, err := proxyBackend.NewBackend(cfg)
if err != nil { if err != nil {
ui.Close() ui.Close()
if !panicInstead { if !panicInstead {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/opentracing/opentracing-go/log" "github.com/opentracing/opentracing-go/log"
"github.com/openziti-test-kitchen/zrok/cmd/zrok/endpoint_ui" "github.com/openziti-test-kitchen/zrok/cmd/zrok/endpointUi"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"html/template" "html/template"
@ -31,7 +31,7 @@ func newTestEndpointCommand() *testEndpointCommand {
} }
command := &testEndpointCommand{cmd: cmd} command := &testEndpointCommand{cmd: cmd}
var err error var err error
if command.t, err = template.ParseFS(endpoint_ui.FS, "index.gohtml"); err != nil { if command.t, err = template.ParseFS(endpointUi.FS, "index.gohtml"); err != nil {
if !panicInstead { if !panicInstead {
showError("unable to parse index template", err) showError("unable to parse index template", err)
} }

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -96,7 +96,7 @@ func (h *accessHandler) Handle(params service.AccessParams, principal *rest_mode
} }
func createServicePolicyDialForEnvironment(envZId, svcToken, svcZId string, edge *rest_management_api_client.ZitiEdgeManagement, tags ...*rest_model.Tags) error { func createServicePolicyDialForEnvironment(envZId, svcToken, svcZId string, edge *rest_management_api_client.ZitiEdgeManagement, tags ...*rest_model.Tags) error {
allTags := zrok_edge_sdk.ZrokServiceTags(svcToken) allTags := zrokEdgeSdk.ZrokServiceTags(svcToken)
for _, t := range tags { for _, t := range tags {
for k, v := range t.SubTags { for k, v := range t.SubTags {
allTags.SubTags[k] = v allTags.SubTags[k] = v

View File

@ -6,7 +6,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/zrokdir" "github.com/openziti-test-kitchen/zrok/zrokdir"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -196,13 +196,13 @@ func assertIdentity(zId string, edge *rest_management_api_client.ZitiEdgeManagem
} }
func bootstrapIdentity(name string, edge *rest_management_api_client.ZitiEdgeManagement) (string, error) { func bootstrapIdentity(name string, edge *rest_management_api_client.ZitiEdgeManagement) (string, error) {
idc, err := zrok_edge_sdk.CreateIdentity(name, rest_model_edge.IdentityTypeDevice, nil, edge) idc, err := zrokEdgeSdk.CreateIdentity(name, rest_model_edge.IdentityTypeDevice, nil, edge)
if err != nil { if err != nil {
return "", errors.Wrapf(err, "error creating '%v' identity", name) return "", errors.Wrapf(err, "error creating '%v' identity", name)
} }
zId := idc.Payload.Data.ID zId := idc.Payload.Data.ID
cfg, err := zrok_edge_sdk.EnrollIdentity(zId, edge) cfg, err := zrokEdgeSdk.EnrollIdentity(zId, edge)
if err != nil { if err != nil {
return "", errors.Wrapf(err, "error enrolling '%v' identity", name) return "", errors.Wrapf(err, "error enrolling '%v' identity", name)
} }
@ -236,7 +236,7 @@ func assertErpForIdentity(name, zId string, edge *rest_management_api_client.Zit
} }
if len(listResp.Payload.Data) != 1 { if len(listResp.Payload.Data) != 1 {
logrus.Infof("creating erp for '%v' (%v)", name, zId) logrus.Infof("creating erp for '%v' (%v)", name, zId)
if err := zrok_edge_sdk.CreateEdgeRouterPolicy(name, zId, edge); err != nil { if err := zrokEdgeSdk.CreateEdgeRouterPolicy(name, zId, edge); err != nil {
return errors.Wrapf(err, "error creating erp for '%v' (%v)", name, zId) return errors.Wrapf(err, "error creating erp for '%v' (%v)", name, zId)
} }
} }
@ -261,7 +261,7 @@ func assertMetricsService(cfg *Config, edge *rest_management_api_client.ZitiEdge
var svcZId string var svcZId string
if len(listResp.Payload.Data) != 1 { if len(listResp.Payload.Data) != 1 {
logrus.Infof("creating '%v' service", cfg.Metrics.ServiceName) logrus.Infof("creating '%v' service", cfg.Metrics.ServiceName)
svcZId, err = zrok_edge_sdk.CreateService("metrics", nil, nil, edge) svcZId, err = zrokEdgeSdk.CreateService("metrics", nil, nil, edge)
if err != nil { if err != nil {
return "", errors.Wrapf(err, "error creating '%v' service", cfg.Metrics.ServiceName) return "", errors.Wrapf(err, "error creating '%v' service", cfg.Metrics.ServiceName)
} }
@ -289,7 +289,7 @@ func assertMetricsSerp(metricsSvcZId string, cfg *Config, edge *rest_management_
} }
if len(listResp.Payload.Data) != 1 { if len(listResp.Payload.Data) != 1 {
logrus.Infof("creating '%v' serp", cfg.Metrics.ServiceName) logrus.Infof("creating '%v' serp", cfg.Metrics.ServiceName)
_, err := zrok_edge_sdk.CreateServiceEdgeRouterPolicy(cfg.Metrics.ServiceName, metricsSvcZId, nil, edge) _, err := zrokEdgeSdk.CreateServiceEdgeRouterPolicy(cfg.Metrics.ServiceName, metricsSvcZId, nil, edge)
if err != nil { if err != nil {
return errors.Wrapf(err, "error creating '%v' serp", cfg.Metrics.ServiceName) return errors.Wrapf(err, "error creating '%v' serp", cfg.Metrics.ServiceName)
} }
@ -314,7 +314,7 @@ func assertCtrlMetricsBind(ctrlZId, metricsSvcZId string, edge *rest_management_
} }
if len(listResp.Payload.Data) != 1 { if len(listResp.Payload.Data) != 1 {
logrus.Info("creating 'ctrl-metrics-bind' service policy") logrus.Info("creating 'ctrl-metrics-bind' service policy")
if err := zrok_edge_sdk.CreateNamedBindServicePolicy("ctrl-metrics-bind", metricsSvcZId, ctrlZId, edge, zrok_edge_sdk.ZrokTags()); err != nil { if err := zrokEdgeSdk.CreateNamedBindServicePolicy("ctrl-metrics-bind", metricsSvcZId, ctrlZId, edge, zrokEdgeSdk.ZrokTags()); err != nil {
return errors.Wrap(err, "error creating 'ctrl-metrics-bind' service policy") return errors.Wrap(err, "error creating 'ctrl-metrics-bind' service policy")
} }
} }
@ -338,7 +338,7 @@ func assertFrontendMetricsDial(frontendZId, metricsSvcZId string, edge *rest_man
} }
if len(listResp.Payload.Data) != 1 { if len(listResp.Payload.Data) != 1 {
logrus.Info("creating 'frontend-metrics-dial' service policy") logrus.Info("creating 'frontend-metrics-dial' service policy")
if err := zrok_edge_sdk.CreateNamedDialServicePolicy("frontend-metrics-dial", metricsSvcZId, frontendZId, edge, zrok_edge_sdk.ZrokTags()); err != nil { if err := zrokEdgeSdk.CreateNamedDialServicePolicy("frontend-metrics-dial", metricsSvcZId, frontendZId, edge, zrokEdgeSdk.ZrokTags()); err != nil {
return errors.Wrap(err, "error creating 'frontend-metrics-dial' service policy") return errors.Wrap(err, "error creating 'frontend-metrics-dial' service policy")
} }
} }

View File

@ -3,7 +3,7 @@ package controller
import ( import (
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/admin" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/admin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
@ -28,7 +28,7 @@ func (h *createFrontendHandler) Handle(params admin.CreateFrontendParams, princi
} }
zId := params.Body.ZID zId := params.Body.ZID
detail, err := zrok_edge_sdk.GetIdentity(zId, client) detail, err := zrokEdgeSdk.GetIdentity(zId, client)
if err != nil { if err != nil {
logrus.Errorf("error getting identity details for '%v': %v", zId, err) logrus.Errorf("error getting identity details for '%v': %v", zId, err)
return admin.NewCreateFrontendInternalServerError() return admin.NewCreateFrontendInternalServerError()

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/admin" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/admin"
"github.com/openziti/edge/rest_management_api_client/service" "github.com/openziti/edge/rest_management_api_client/service"
@ -34,20 +34,20 @@ func (h *createIdentityHandler) Handle(params admin.CreateIdentityParams, princi
return admin.NewCreateIdentityInternalServerError() return admin.NewCreateIdentityInternalServerError()
} }
idc, err := zrok_edge_sdk.CreateIdentity(name, rest_model_edge.IdentityTypeService, nil, edge) idc, err := zrokEdgeSdk.CreateIdentity(name, rest_model_edge.IdentityTypeService, nil, edge)
if err != nil { if err != nil {
logrus.Errorf("error creating identity: %v", err) logrus.Errorf("error creating identity: %v", err)
return admin.NewCreateIdentityInternalServerError() return admin.NewCreateIdentityInternalServerError()
} }
zId := idc.Payload.Data.ID zId := idc.Payload.Data.ID
idCfg, err := zrok_edge_sdk.EnrollIdentity(zId, edge) idCfg, err := zrokEdgeSdk.EnrollIdentity(zId, edge)
if err != nil { if err != nil {
logrus.Errorf("error enrolling identity: %v", err) logrus.Errorf("error enrolling identity: %v", err)
return admin.NewCreateIdentityInternalServerError() return admin.NewCreateIdentityInternalServerError()
} }
if err := zrok_edge_sdk.CreateEdgeRouterPolicy(name, zId, edge); err != nil { if err := zrokEdgeSdk.CreateEdgeRouterPolicy(name, zId, edge); err != nil {
logrus.Errorf("error creating edge router policy for identity: %v", err) logrus.Errorf("error creating edge router policy for identity: %v", err)
return admin.NewCreateIdentityInternalServerError() return admin.NewCreateIdentityInternalServerError()
} }
@ -73,7 +73,7 @@ func (h *createIdentityHandler) Handle(params admin.CreateIdentityParams, princi
svcZId := *listSvcResp.Payload.Data[0].ID svcZId := *listSvcResp.Payload.Data[0].ID
spName := fmt.Sprintf("%v-%v-dial", name, cfg.Metrics.ServiceName) spName := fmt.Sprintf("%v-%v-dial", name, cfg.Metrics.ServiceName)
if err := zrok_edge_sdk.CreateNamedDialServicePolicy(spName, svcZId, zId, edge); err != nil { if err := zrokEdgeSdk.CreateNamedDialServicePolicy(spName, svcZId, zId, edge); err != nil {
logrus.Errorf("error creating named dial service policy '%v': %v", spName, err) logrus.Errorf("error creating named dial service policy '%v': %v", spName, err)
return admin.NewCreateIdentityInternalServerError() return admin.NewCreateIdentityInternalServerError()
} }

View File

@ -3,7 +3,7 @@ package controller
import ( import (
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/environment" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/environment"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -48,11 +48,11 @@ func (h *disableHandler) Handle(params environment.DisableParams, principal *res
logrus.Errorf("error removing environment: %v", err) logrus.Errorf("error removing environment: %v", err)
return environment.NewDisableInternalServerError() return environment.NewDisableInternalServerError()
} }
if err := zrok_edge_sdk.DeleteEdgeRouterPolicy(env.ZId, edge); err != nil { if err := zrokEdgeSdk.DeleteEdgeRouterPolicy(env.ZId, edge); err != nil {
logrus.Errorf("error deleting edge router policy: %v", err) logrus.Errorf("error deleting edge router policy: %v", err)
return environment.NewDisableInternalServerError() return environment.NewDisableInternalServerError()
} }
if err := zrok_edge_sdk.DeleteIdentity(params.Body.Identity, edge); err != nil { if err := zrokEdgeSdk.DeleteIdentity(params.Body.Identity, edge); err != nil {
logrus.Errorf("error deleting identity: %v", err) logrus.Errorf("error deleting identity: %v", err)
return environment.NewDisableInternalServerError() return environment.NewDisableInternalServerError()
} }
@ -87,19 +87,19 @@ func (h *disableHandler) removeServicesForEnvironment(envId int, tx *sqlx.Tx, ed
for _, svc := range svcs { for _, svc := range svcs {
svcToken := svc.Token svcToken := svc.Token
logrus.Infof("garbage collecting service '%v' for environment '%v'", svcToken, env.ZId) logrus.Infof("garbage collecting service '%v' for environment '%v'", svcToken, env.ZId)
if err := zrok_edge_sdk.DeleteServiceEdgeRouterPolicy(env.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServiceEdgeRouterPolicy(env.ZId, svcToken, edge); err != nil {
logrus.Error(err) logrus.Error(err)
} }
if err := zrok_edge_sdk.DeleteServicePolicyDial(env.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyDial(env.ZId, svcToken, edge); err != nil {
logrus.Error(err) logrus.Error(err)
} }
if err := zrok_edge_sdk.DeleteServicePolicyBind(env.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyBind(env.ZId, svcToken, edge); err != nil {
logrus.Error(err) logrus.Error(err)
} }
if err := zrok_edge_sdk.DeleteConfig(env.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteConfig(env.ZId, svcToken, edge); err != nil {
logrus.Error(err) logrus.Error(err)
} }
if err := zrok_edge_sdk.DeleteService(env.ZId, svc.ZId, edge); err != nil { if err := zrokEdgeSdk.DeleteService(env.ZId, svc.ZId, edge); err != nil {
logrus.Error(err) logrus.Error(err)
} }
logrus.Infof("removed service '%v' for environment '%v'", svc.Token, env.ZId) logrus.Infof("removed service '%v' for environment '%v'", svc.Token, env.ZId)

View File

@ -1,4 +1,4 @@
package email_ui package emailUi
import "embed" import "embed"

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/environment" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/environment"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
@ -36,18 +36,18 @@ func (h *enableHandler) Handle(params environment.EnableParams, principal *rest_
logrus.Errorf("error creating account token: %v", err) logrus.Errorf("error creating account token: %v", err)
return environment.NewEnableInternalServerError() return environment.NewEnableInternalServerError()
} }
ident, err := zrok_edge_sdk.CreateEnvironmentIdentity(principal.Email, accountToken, client) ident, err := zrokEdgeSdk.CreateEnvironmentIdentity(principal.Email, accountToken, client)
if err != nil { if err != nil {
logrus.Error(err) logrus.Error(err)
return environment.NewEnableInternalServerError() return environment.NewEnableInternalServerError()
} }
envZId := ident.Payload.Data.ID envZId := ident.Payload.Data.ID
cfg, err := zrok_edge_sdk.EnrollIdentity(envZId, client) cfg, err := zrokEdgeSdk.EnrollIdentity(envZId, client)
if err != nil { if err != nil {
logrus.Error(err) logrus.Error(err)
return environment.NewEnableInternalServerError() return environment.NewEnableInternalServerError()
} }
if err := zrok_edge_sdk.CreateEdgeRouterPolicy(envZId, envZId, client); err != nil { if err := zrokEdgeSdk.CreateEdgeRouterPolicy(envZId, envZId, client); err != nil {
logrus.Error(err) logrus.Error(err)
return environment.NewEnableInternalServerError() return environment.NewEnableInternalServerError()
} }

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
"github.com/openziti/edge/rest_management_api_client/config" "github.com/openziti/edge/rest_management_api_client/config"
"github.com/openziti/edge/rest_management_api_client/service" "github.com/openziti/edge/rest_management_api_client/service"
@ -72,19 +72,19 @@ func gcServices(edge *rest_management_api_client.ZitiEdgeManagement, liveMap map
for _, svc := range listResp.Payload.Data { for _, svc := range listResp.Payload.Data {
if _, found := liveMap[*svc.Name]; !found { if _, found := liveMap[*svc.Name]; !found {
logrus.Infof("garbage collecting, zitiSvcId='%v', zrokSvcId='%v'", *svc.ID, *svc.Name) logrus.Infof("garbage collecting, zitiSvcId='%v', zrokSvcId='%v'", *svc.ID, *svc.Name)
if err := zrok_edge_sdk.DeleteServiceEdgeRouterPolicy("gc", *svc.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteServiceEdgeRouterPolicy("gc", *svc.Name, edge); err != nil {
logrus.Errorf("error garbage collecting service edge router policy: %v", err) logrus.Errorf("error garbage collecting service edge router policy: %v", err)
} }
if err := zrok_edge_sdk.DeleteServicePolicyDial("gc", *svc.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyDial("gc", *svc.Name, edge); err != nil {
logrus.Errorf("error garbage collecting service dial policy: %v", err) logrus.Errorf("error garbage collecting service dial policy: %v", err)
} }
if err := zrok_edge_sdk.DeleteServicePolicyBind("gc", *svc.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyBind("gc", *svc.Name, edge); err != nil {
logrus.Errorf("error garbage collecting service bind policy: %v", err) logrus.Errorf("error garbage collecting service bind policy: %v", err)
} }
if err := zrok_edge_sdk.DeleteConfig("gc", *svc.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteConfig("gc", *svc.Name, edge); err != nil {
logrus.Errorf("error garbage collecting config: %v", err) logrus.Errorf("error garbage collecting config: %v", err)
} }
if err := zrok_edge_sdk.DeleteService("gc", *svc.ID, edge); err != nil { if err := zrokEdgeSdk.DeleteService("gc", *svc.ID, edge); err != nil {
logrus.Errorf("error garbage collecting service: %v", err) logrus.Errorf("error garbage collecting service: %v", err)
} }
} else { } else {
@ -109,7 +109,7 @@ func gcServiceEdgeRouterPolicies(edge *rest_management_api_client.ZitiEdgeManage
for _, serp := range listResp.Payload.Data { for _, serp := range listResp.Payload.Data {
if _, found := liveMap[*serp.Name]; !found { if _, found := liveMap[*serp.Name]; !found {
logrus.Infof("garbage collecting, svcId='%v'", *serp.Name) logrus.Infof("garbage collecting, svcId='%v'", *serp.Name)
if err := zrok_edge_sdk.DeleteServiceEdgeRouterPolicy("gc", *serp.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteServiceEdgeRouterPolicy("gc", *serp.Name, edge); err != nil {
logrus.Errorf("error garbage collecting service edge router policy: %v", err) logrus.Errorf("error garbage collecting service edge router policy: %v", err)
} }
} else { } else {
@ -136,7 +136,7 @@ func gcServicePolicies(edge *rest_management_api_client.ZitiEdgeManagement, live
if _, found := liveMap[spName]; !found { if _, found := liveMap[spName]; !found {
logrus.Infof("garbage collecting, svcId='%v'", spName) logrus.Infof("garbage collecting, svcId='%v'", spName)
deleteFilter := fmt.Sprintf("id=\"%v\"", *sp.ID) deleteFilter := fmt.Sprintf("id=\"%v\"", *sp.ID)
if err := zrok_edge_sdk.DeleteServicePolicy("gc", deleteFilter, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicy("gc", deleteFilter, edge); err != nil {
logrus.Errorf("error garbage collecting service policy: %v", err) logrus.Errorf("error garbage collecting service policy: %v", err)
} }
} else { } else {
@ -160,7 +160,7 @@ func gcConfigs(edge *rest_management_api_client.ZitiEdgeManagement, liveMap map[
if listResp, err := edge.Config.ListConfigs(listReq, nil); err == nil { if listResp, err := edge.Config.ListConfigs(listReq, nil); err == nil {
for _, c := range listResp.Payload.Data { for _, c := range listResp.Payload.Data {
if _, found := liveMap[*c.Name]; !found { if _, found := liveMap[*c.Name]; !found {
if err := zrok_edge_sdk.DeleteConfig("gc", *c.Name, edge); err != nil { if err := zrokEdgeSdk.DeleteConfig("gc", *c.Name, edge); err != nil {
logrus.Errorf("error garbage collecting config: %v", err) logrus.Errorf("error garbage collecting config: %v", err)
} }
} else { } else {

View File

@ -1,7 +1,7 @@
package controller package controller
import ( import (
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -18,21 +18,21 @@ func (a *privateResourceAllocator) allocate(envZId, svcToken string, params serv
for _, authUser := range params.Body.AuthUsers { for _, authUser := range params.Body.AuthUsers {
authUsers = append(authUsers, &model.AuthUser{authUser.Username, authUser.Password}) authUsers = append(authUsers, &model.AuthUser{authUser.Username, authUser.Password})
} }
cfgId, err := zrok_edge_sdk.CreateConfig(zrokProxyConfigId, envZId, svcToken, params.Body.AuthScheme, authUsers, edge) cfgId, err := zrokEdgeSdk.CreateConfig(zrokProxyConfigId, envZId, svcToken, params.Body.AuthScheme, authUsers, edge)
if err != nil { if err != nil {
return "", nil, err return "", nil, err
} }
svcZId, err = zrok_edge_sdk.CreateShareService(envZId, svcToken, cfgId, edge) svcZId, err = zrokEdgeSdk.CreateShareService(envZId, svcToken, cfgId, edge)
if err != nil { if err != nil {
return "", nil, err return "", nil, err
} }
if err := zrok_edge_sdk.CreateServicePolicyBind(envZId, svcToken, svcZId, edge); err != nil { if err := zrokEdgeSdk.CreateServicePolicyBind(envZId, svcToken, svcZId, edge); err != nil {
return "", nil, err return "", nil, err
} }
if err := zrok_edge_sdk.CreateShareServiceEdgeRouterPolicy(envZId, svcToken, svcZId, edge); err != nil { if err := zrokEdgeSdk.CreateShareServiceEdgeRouterPolicy(envZId, svcToken, svcZId, edge); err != nil {
return "", nil, err return "", nil, err
} }

View File

@ -1,7 +1,7 @@
package controller package controller
import ( import (
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -18,25 +18,25 @@ func (a *publicResourceAllocator) allocate(envZId, svcToken string, frontendZIds
for _, authUser := range params.Body.AuthUsers { for _, authUser := range params.Body.AuthUsers {
authUsers = append(authUsers, &model.AuthUser{authUser.Username, authUser.Password}) authUsers = append(authUsers, &model.AuthUser{authUser.Username, authUser.Password})
} }
cfgId, err := zrok_edge_sdk.CreateConfig(zrokProxyConfigId, envZId, svcToken, params.Body.AuthScheme, authUsers, edge) cfgId, err := zrokEdgeSdk.CreateConfig(zrokProxyConfigId, envZId, svcToken, params.Body.AuthScheme, authUsers, edge)
if err != nil { if err != nil {
return "", nil, err return "", nil, err
} }
svcZId, err = zrok_edge_sdk.CreateShareService(envZId, svcToken, cfgId, edge) svcZId, err = zrokEdgeSdk.CreateShareService(envZId, svcToken, cfgId, edge)
if err != nil { if err != nil {
return "", nil, err return "", nil, err
} }
if err := zrok_edge_sdk.CreateServicePolicyBind(envZId, svcToken, svcZId, edge); err != nil { if err := zrokEdgeSdk.CreateServicePolicyBind(envZId, svcToken, svcZId, edge); err != nil {
return "", nil, err return "", nil, err
} }
if err := zrok_edge_sdk.CreateServicePolicyDial(envZId, svcToken, svcZId, frontendZIds, edge); err != nil { if err := zrokEdgeSdk.CreateServicePolicyDial(envZId, svcToken, svcZId, frontendZIds, edge); err != nil {
return "", nil, err return "", nil, err
} }
if err := zrok_edge_sdk.CreateShareServiceEdgeRouterPolicy(envZId, svcToken, svcZId, edge); err != nil { if err := zrokEdgeSdk.CreateShareServiceEdgeRouterPolicy(envZId, svcToken, svcZId, edge); err != nil {
return "", nil, err return "", nil, err
} }

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -70,7 +70,7 @@ func (h *unaccessHandler) Handle(params service.UnaccessParams, principal *rest_
return service.NewUnaccessNotFound() return service.NewUnaccessNotFound()
} }
if err := zrok_edge_sdk.DeleteServicePolicy(envZId, fmt.Sprintf("tags.zrokServiceToken=\"%v\" and tags.zrokFrontendToken=\"%v\" and type=1", svcToken, feToken), edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicy(envZId, fmt.Sprintf("tags.zrokServiceToken=\"%v\" and tags.zrokFrontendToken=\"%v\" and type=1", svcToken, feToken), edge); err != nil {
logrus.Errorf("error removing access to '%v' for '%v': %v", svcToken, envZId, err) logrus.Errorf("error removing access to '%v' for '%v': %v", svcToken, envZId, err)
return service.NewUnaccessInternalServerError() return service.NewUnaccessInternalServerError()
} }

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/go-openapi/runtime/middleware" "github.com/go-openapi/runtime/middleware"
"github.com/openziti-test-kitchen/zrok/controller/store" "github.com/openziti-test-kitchen/zrok/controller/store"
"github.com/openziti-test-kitchen/zrok/controller/zrok_edge_sdk" "github.com/openziti-test-kitchen/zrok/controller/zrokEdgeSdk"
"github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti-test-kitchen/zrok/rest_model_zrok"
"github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service" "github.com/openziti-test-kitchen/zrok/rest_server_zrok/operations/service"
"github.com/openziti/edge/rest_management_api_client" "github.com/openziti/edge/rest_management_api_client"
@ -123,19 +123,19 @@ func (h *unshareHandler) findServiceZId(svcToken string, edge *rest_management_a
} }
func (h *unshareHandler) deallocateResources(senv *store.Environment, svcToken, svcZId string, edge *rest_management_api_client.ZitiEdgeManagement) error { func (h *unshareHandler) deallocateResources(senv *store.Environment, svcToken, svcZId string, edge *rest_management_api_client.ZitiEdgeManagement) error {
if err := zrok_edge_sdk.DeleteServiceEdgeRouterPolicy(senv.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServiceEdgeRouterPolicy(senv.ZId, svcToken, edge); err != nil {
return err return err
} }
if err := zrok_edge_sdk.DeleteServicePolicyDial(senv.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyDial(senv.ZId, svcToken, edge); err != nil {
return err return err
} }
if err := zrok_edge_sdk.DeleteServicePolicyBind(senv.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteServicePolicyBind(senv.ZId, svcToken, edge); err != nil {
return err return err
} }
if err := zrok_edge_sdk.DeleteConfig(senv.ZId, svcToken, edge); err != nil { if err := zrokEdgeSdk.DeleteConfig(senv.ZId, svcToken, edge); err != nil {
return err return err
} }
if err := zrok_edge_sdk.DeleteService(senv.ZId, svcZId, edge); err != nil { if err := zrokEdgeSdk.DeleteService(senv.ZId, svcZId, edge); err != nil {
return err return err
} }
return nil return nil

View File

@ -2,7 +2,7 @@ package controller
import ( import (
"bytes" "bytes"
"github.com/openziti-test-kitchen/zrok/controller/email_ui" "github.com/openziti-test-kitchen/zrok/controller/emailUi"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/wneessen/go-mail" "github.com/wneessen/go-mail"
@ -63,7 +63,7 @@ func sendVerificationEmail(emailAddress, token string) error {
} }
func mergeTemplate(emailData *verificationEmail, filename string) (string, error) { func mergeTemplate(emailData *verificationEmail, filename string) (string, error) {
t, err := template.ParseFS(email_ui.FS, filename) t, err := template.ParseFS(emailUi.FS, filename)
if err != nil { if err != nil {
return "", errors.Wrapf(err, "error parsing verification email template '%v'", filename) return "", errors.Wrapf(err, "error parsing verification email template '%v'", filename)
} }

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package zrok_edge_sdk package zrokEdgeSdk
import ( import (
"github.com/openziti-test-kitchen/zrok/build" "github.com/openziti-test-kitchen/zrok/build"

View File

@ -1,4 +1,4 @@
package private_frontend package privateFrontend
type Config struct { type Config struct {
IdentityName string IdentityName string

View File

@ -1,10 +1,10 @@
package private_frontend package privateFrontend
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/openziti-test-kitchen/zrok/endpoints" "github.com/openziti-test-kitchen/zrok/endpoints"
"github.com/openziti-test-kitchen/zrok/endpoints/public_frontend/notfound_ui" "github.com/openziti-test-kitchen/zrok/endpoints/publicFrontend/notfound_ui"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/util" "github.com/openziti-test-kitchen/zrok/util"
"github.com/openziti-test-kitchen/zrok/zrokdir" "github.com/openziti-test-kitchen/zrok/zrokdir"

View File

@ -1,4 +1,4 @@
package proxy_backend package proxyBackend
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package proxy_backend package proxyBackend
import ( import (
"net" "net"

View File

@ -1,4 +1,4 @@
package public_frontend package publicFrontend
import ( import (
"github.com/michaelquigley/cf" "github.com/michaelquigley/cf"

View File

@ -1,11 +1,11 @@
package public_frontend package publicFrontend
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/openziti-test-kitchen/zrok/endpoints" "github.com/openziti-test-kitchen/zrok/endpoints"
"github.com/openziti-test-kitchen/zrok/endpoints/public_frontend/health_ui" "github.com/openziti-test-kitchen/zrok/endpoints/publicFrontend/health_ui"
"github.com/openziti-test-kitchen/zrok/endpoints/public_frontend/notfound_ui" "github.com/openziti-test-kitchen/zrok/endpoints/publicFrontend/notfound_ui"
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"
"github.com/openziti-test-kitchen/zrok/util" "github.com/openziti-test-kitchen/zrok/util"
"github.com/openziti-test-kitchen/zrok/zrokdir" "github.com/openziti-test-kitchen/zrok/zrokdir"

View File

@ -1,4 +1,4 @@
package public_frontend package publicFrontend
import ( import (
"github.com/openziti-test-kitchen/zrok/model" "github.com/openziti-test-kitchen/zrok/model"

View File

@ -1,4 +1,4 @@
package public_frontend package publicFrontend
import ( import (
"net" "net"

View File

@ -1,4 +1,4 @@
package web_backend package webBackend
import ( import (
"github.com/openziti/sdk-golang/ziti" "github.com/openziti/sdk-golang/ziti"