From dbfc485560b675e2c0422d354d4dc72ac9521af8 Mon Sep 17 00:00:00 2001 From: Leonardo Luz Almeida Date: Wed, 16 Oct 2024 11:11:55 -0400 Subject: [PATCH] chore: generator package refactoring (#42) Signed-off-by: Leonardo Luz Almeida --- internal/{pkg => backend}/generator/generator.go | 0 internal/{pkg => backend}/generator/generator_test.go | 2 +- internal/backend/service.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename internal/{pkg => backend}/generator/generator.go (100%) rename internal/{pkg => backend}/generator/generator_test.go (96%) diff --git a/internal/pkg/generator/generator.go b/internal/backend/generator/generator.go similarity index 100% rename from internal/pkg/generator/generator.go rename to internal/backend/generator/generator.go diff --git a/internal/pkg/generator/generator_test.go b/internal/backend/generator/generator_test.go similarity index 96% rename from internal/pkg/generator/generator_test.go rename to internal/backend/generator/generator_test.go index 1a34945..cb40354 100644 --- a/internal/pkg/generator/generator_test.go +++ b/internal/backend/generator/generator_test.go @@ -3,7 +3,7 @@ package generator_test import ( "testing" - "github.com/argoproj-labs/ephemeral-access/internal/pkg/generator" + "github.com/argoproj-labs/ephemeral-access/internal/backend/generator" "github.com/stretchr/testify/assert" ) diff --git a/internal/backend/service.go b/internal/backend/service.go index 4d302e4..51c393c 100644 --- a/internal/backend/service.go +++ b/internal/backend/service.go @@ -8,7 +8,7 @@ import ( "time" api "github.com/argoproj-labs/ephemeral-access/api/ephemeral-access/v1alpha1" - "github.com/argoproj-labs/ephemeral-access/internal/pkg/generator" + "github.com/argoproj-labs/ephemeral-access/internal/backend/generator" "github.com/argoproj-labs/ephemeral-access/pkg/log" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"