From d4debaa16db2d35de07e11d7d4b68cfef0f1b19f Mon Sep 17 00:00:00 2001 From: Akash Chetty Date: Wed, 31 Jan 2024 20:23:10 +0530 Subject: [PATCH] chore: module name to be as cp-sdk (#14) --- cmd/sampleapp/main.go | 4 ++-- go.mod | 2 +- internal/cache/cache.go | 4 ++-- internal/cache/cache_test.go | 4 ++-- internal/clients/admin/client.go | 2 +- internal/clients/namespace/client.go | 8 ++++---- internal/clients/workspace/client.go | 8 ++++---- internal/poller/mocks/poller.go | 2 +- internal/poller/poller.go | 2 +- internal/poller/poller_test.go | 6 +++--- modelv2/parser/parser.go | 2 +- modelv2/parser/parser_test.go | 4 ++-- modelv2/workspaceconfigs_test.go | 2 +- options.go | 2 +- sdk.go | 18 +++++++++--------- 15 files changed, 35 insertions(+), 35 deletions(-) diff --git a/cmd/sampleapp/main.go b/cmd/sampleapp/main.go index ad25e82..f5b52be 100644 --- a/cmd/sampleapp/main.go +++ b/cmd/sampleapp/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - cpsdk "github.com/rudderlabs/rudder-control-plane-sdk" - "github.com/rudderlabs/rudder-control-plane-sdk/identity" + cpsdk "github.com/rudderlabs/rudder-cp-sdk" + "github.com/rudderlabs/rudder-cp-sdk/identity" "github.com/rudderlabs/rudder-go-kit/config" "github.com/rudderlabs/rudder-go-kit/logger" ) diff --git a/go.mod b/go.mod index bdd3371..cb1073e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/rudderlabs/rudder-control-plane-sdk +module github.com/rudderlabs/rudder-cp-sdk go 1.20 diff --git a/internal/cache/cache.go b/internal/cache/cache.go index f181e8a..6daf712 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -3,8 +3,8 @@ package cache import ( "sync" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" - "github.com/rudderlabs/rudder-control-plane-sdk/notifications" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/notifications" ) type WorkspaceConfigCache struct { diff --git a/internal/cache/cache_test.go b/internal/cache/cache_test.go index 71801a1..848f80b 100644 --- a/internal/cache/cache_test.go +++ b/internal/cache/cache_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/cache" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/internal/cache" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" "github.com/stretchr/testify/assert" ) diff --git a/internal/clients/admin/client.go b/internal/clients/admin/client.go index 7603931..fc35e0c 100644 --- a/internal/clients/admin/client.go +++ b/internal/clients/admin/client.go @@ -1,7 +1,7 @@ package admin import ( - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/base" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/base" ) type Client struct { diff --git a/internal/clients/namespace/client.go b/internal/clients/namespace/client.go index f49389e..5f8d5ae 100644 --- a/internal/clients/namespace/client.go +++ b/internal/clients/namespace/client.go @@ -6,10 +6,10 @@ import ( "net/http" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/identity" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/base" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2/parser" + "github.com/rudderlabs/rudder-cp-sdk/identity" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/base" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2/parser" ) type Client struct { diff --git a/internal/clients/workspace/client.go b/internal/clients/workspace/client.go index bf26fa8..53a8328 100644 --- a/internal/clients/workspace/client.go +++ b/internal/clients/workspace/client.go @@ -6,10 +6,10 @@ import ( "net/http" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/identity" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/base" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2/parser" + "github.com/rudderlabs/rudder-cp-sdk/identity" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/base" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2/parser" ) type Client struct { diff --git a/internal/poller/mocks/poller.go b/internal/poller/mocks/poller.go index 56e4bea..48ea0cb 100644 --- a/internal/poller/mocks/poller.go +++ b/internal/poller/mocks/poller.go @@ -10,7 +10,7 @@ import ( time "time" gomock "github.com/golang/mock/gomock" - modelv2 "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + modelv2 "github.com/rudderlabs/rudder-cp-sdk/modelv2" ) // MockClient is a mock of Client interface. diff --git a/internal/poller/poller.go b/internal/poller/poller.go index 8f56642..bd39e85 100644 --- a/internal/poller/poller.go +++ b/internal/poller/poller.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" "github.com/rudderlabs/rudder-go-kit/logger" ) diff --git a/internal/poller/poller_test.go b/internal/poller/poller_test.go index 84bf64b..8cd08cf 100644 --- a/internal/poller/poller_test.go +++ b/internal/poller/poller_test.go @@ -8,9 +8,9 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/poller" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/poller/mocks" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/internal/poller" + "github.com/rudderlabs/rudder-cp-sdk/internal/poller/mocks" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" "github.com/stretchr/testify/require" ) diff --git a/modelv2/parser/parser.go b/modelv2/parser/parser.go index 5939210..82b3b5c 100644 --- a/modelv2/parser/parser.go +++ b/modelv2/parser/parser.go @@ -2,7 +2,7 @@ package parser import ( jsoniter "github.com/json-iterator/go" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" ) var json = jsoniter.ConfigCompatibleWithStandardLibrary diff --git a/modelv2/parser/parser_test.go b/modelv2/parser/parser_test.go index aed93c1..81fdf2e 100644 --- a/modelv2/parser/parser_test.go +++ b/modelv2/parser/parser_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2/parser" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2/parser" "github.com/stretchr/testify/require" ) diff --git a/modelv2/workspaceconfigs_test.go b/modelv2/workspaceconfigs_test.go index 2db9411..5971d82 100644 --- a/modelv2/workspaceconfigs_test.go +++ b/modelv2/workspaceconfigs_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" "github.com/stretchr/testify/assert" ) diff --git a/options.go b/options.go index a0f621c..550858a 100644 --- a/options.go +++ b/options.go @@ -5,7 +5,7 @@ import ( "net/url" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/identity" + "github.com/rudderlabs/rudder-cp-sdk/identity" "github.com/rudderlabs/rudder-go-kit/logger" ) diff --git a/sdk.go b/sdk.go index 19eddf4..c1cdd1b 100644 --- a/sdk.go +++ b/sdk.go @@ -7,15 +7,15 @@ import ( "net/url" "time" - "github.com/rudderlabs/rudder-control-plane-sdk/identity" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/cache" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/admin" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/base" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/namespace" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/clients/workspace" - "github.com/rudderlabs/rudder-control-plane-sdk/internal/poller" - "github.com/rudderlabs/rudder-control-plane-sdk/modelv2" - "github.com/rudderlabs/rudder-control-plane-sdk/notifications" + "github.com/rudderlabs/rudder-cp-sdk/identity" + "github.com/rudderlabs/rudder-cp-sdk/internal/cache" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/admin" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/base" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/namespace" + "github.com/rudderlabs/rudder-cp-sdk/internal/clients/workspace" + "github.com/rudderlabs/rudder-cp-sdk/internal/poller" + "github.com/rudderlabs/rudder-cp-sdk/modelv2" + "github.com/rudderlabs/rudder-cp-sdk/notifications" "github.com/rudderlabs/rudder-go-kit/logger" )