diff --git a/internal/cli/atlas/performanceadvisor/namespaces/list.go b/internal/cli/atlas/performanceadvisor/namespaces/list.go index d21cfc453a..db245b2cd7 100644 --- a/internal/cli/atlas/performanceadvisor/namespaces/list.go +++ b/internal/cli/atlas/performanceadvisor/namespaces/list.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/performanceadvisor/namespaces/list_test.go b/internal/cli/atlas/performanceadvisor/namespaces/list_test.go index b0c24bddf9..62300077a8 100644 --- a/internal/cli/atlas/performanceadvisor/namespaces/list_test.go +++ b/internal/cli/atlas/performanceadvisor/namespaces/list_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/pointer" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable.go b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable.go index 8645cd0c83..9f5e9aa198 100644 --- a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable.go +++ b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" ) diff --git a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable_test.go b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable_test.go index 20cc855f82..86d250c122 100644 --- a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable_test.go +++ b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/disable_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" ) diff --git a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable.go b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable.go index 45334f7e43..361c065ec2 100644 --- a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable.go +++ b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" ) diff --git a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable_test.go b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable_test.go index 7d5bfecca3..9481647ee5 100644 --- a/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable_test.go +++ b/internal/cli/atlas/performanceadvisor/slowoperationthreshold/enable_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" ) diff --git a/internal/cli/atlas/performanceadvisor/slowquerylogs/list.go b/internal/cli/atlas/performanceadvisor/slowquerylogs/list.go index b1267a7473..3ded87beaa 100644 --- a/internal/cli/atlas/performanceadvisor/slowquerylogs/list.go +++ b/internal/cli/atlas/performanceadvisor/slowquerylogs/list.go @@ -23,7 +23,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/performanceadvisor/slowquerylogs/list_test.go b/internal/cli/atlas/performanceadvisor/slowquerylogs/list_test.go index 0c69750e8b..18f3b732a2 100644 --- a/internal/cli/atlas/performanceadvisor/slowquerylogs/list_test.go +++ b/internal/cli/atlas/performanceadvisor/slowquerylogs/list_test.go @@ -23,7 +23,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" "github.com/stretchr/testify/assert" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/performanceadvisor/suggestedindexes/list.go b/internal/cli/atlas/performanceadvisor/suggestedindexes/list.go index 8caa040a3a..ae58d8f012 100644 --- a/internal/cli/atlas/performanceadvisor/suggestedindexes/list.go +++ b/internal/cli/atlas/performanceadvisor/suggestedindexes/list.go @@ -23,7 +23,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/performanceadvisor/suggestedindexes/list_test.go b/internal/cli/atlas/performanceadvisor/suggestedindexes/list_test.go index 8d12f6d01c..c2a4d3e109 100644 --- a/internal/cli/atlas/performanceadvisor/suggestedindexes/list_test.go +++ b/internal/cli/atlas/performanceadvisor/suggestedindexes/list_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/pointer" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/delete.go b/internal/cli/atlas/projects/invitations/delete.go index db45fb5016..d4f4f2b9b7 100644 --- a/internal/cli/atlas/projects/invitations/delete.go +++ b/internal/cli/atlas/projects/invitations/delete.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" ) diff --git a/internal/cli/atlas/projects/invitations/delete_test.go b/internal/cli/atlas/projects/invitations/delete_test.go index 5a6aa23e6e..203586031c 100644 --- a/internal/cli/atlas/projects/invitations/delete_test.go +++ b/internal/cli/atlas/projects/invitations/delete_test.go @@ -22,7 +22,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" ) diff --git a/internal/cli/atlas/projects/invitations/describe.go b/internal/cli/atlas/projects/invitations/describe.go index 3f0e912945..69978d0d21 100644 --- a/internal/cli/atlas/projects/invitations/describe.go +++ b/internal/cli/atlas/projects/invitations/describe.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" ) diff --git a/internal/cli/atlas/projects/invitations/describe_test.go b/internal/cli/atlas/projects/invitations/describe_test.go index c5ff4d194f..bfdcf74303 100644 --- a/internal/cli/atlas/projects/invitations/describe_test.go +++ b/internal/cli/atlas/projects/invitations/describe_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/pointer" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/invite.go b/internal/cli/atlas/projects/invitations/invite.go index 8e218078e6..2b67aa6585 100644 --- a/internal/cli/atlas/projects/invitations/invite.go +++ b/internal/cli/atlas/projects/invitations/invite.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/invite_test.go b/internal/cli/atlas/projects/invitations/invite_test.go index 19d83696f0..8d0f5d14aa 100644 --- a/internal/cli/atlas/projects/invitations/invite_test.go +++ b/internal/cli/atlas/projects/invitations/invite_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" ) diff --git a/internal/cli/atlas/projects/invitations/list.go b/internal/cli/atlas/projects/invitations/list.go index f80fcc0218..df4681e8a5 100644 --- a/internal/cli/atlas/projects/invitations/list.go +++ b/internal/cli/atlas/projects/invitations/list.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/require" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/list_test.go b/internal/cli/atlas/projects/invitations/list_test.go index 488eee45cb..2caf740fd9 100644 --- a/internal/cli/atlas/projects/invitations/list_test.go +++ b/internal/cli/atlas/projects/invitations/list_test.go @@ -21,7 +21,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/pointer" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/update.go b/internal/cli/atlas/projects/invitations/update.go index 6777c1f9bc..cfaeade7d7 100644 --- a/internal/cli/atlas/projects/invitations/update.go +++ b/internal/cli/atlas/projects/invitations/update.go @@ -22,7 +22,7 @@ import ( "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - store "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/usage" "github.com/spf13/cobra" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" diff --git a/internal/cli/atlas/projects/invitations/update_test.go b/internal/cli/atlas/projects/invitations/update_test.go index 1b430fb3aa..b3f052df8f 100644 --- a/internal/cli/atlas/projects/invitations/update_test.go +++ b/internal/cli/atlas/projects/invitations/update_test.go @@ -22,7 +22,7 @@ import ( "github.com/golang/mock/gomock" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" - mocks "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks/atlas" + "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/mocks" "github.com/mongodb/mongodb-atlas-cli/atlascli/internal/test" atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" ) diff --git a/internal/mocks/atlas/mock_performance_advisor.go b/internal/mocks/mock_performance_advisor.go similarity index 97% rename from internal/mocks/atlas/mock_performance_advisor.go rename to internal/mocks/mock_performance_advisor.go index b29a670aad..5d3e155b52 100644 --- a/internal/mocks/atlas/mock_performance_advisor.go +++ b/internal/mocks/mock_performance_advisor.go @@ -1,8 +1,8 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas (interfaces: PerformanceAdvisorNamespacesLister,PerformanceAdvisorSlowQueriesLister,PerformanceAdvisorIndexesLister,PerformanceAdvisorSlowOperationThresholdEnabler,PerformanceAdvisorSlowOperationThresholdDisabler) +// Source: github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store (interfaces: PerformanceAdvisorNamespacesLister,PerformanceAdvisorSlowQueriesLister,PerformanceAdvisorIndexesLister,PerformanceAdvisorSlowOperationThresholdEnabler,PerformanceAdvisorSlowOperationThresholdDisabler) -// Package atlas is a generated GoMock package. -package atlas +// Package mocks is a generated GoMock package. +package mocks import ( reflect "reflect" diff --git a/internal/mocks/atlas/mock_project_invitations.go b/internal/mocks/mock_project_invitations.go similarity index 97% rename from internal/mocks/atlas/mock_project_invitations.go rename to internal/mocks/mock_project_invitations.go index a00dff6e3e..24df58dc7b 100644 --- a/internal/mocks/atlas/mock_project_invitations.go +++ b/internal/mocks/mock_project_invitations.go @@ -1,8 +1,8 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas (interfaces: ProjectInvitationLister,ProjectInvitationDescriber,ProjectInvitationDeleter,ProjectInviter,ProjectInvitationUpdater) +// Source: github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store (interfaces: ProjectInvitationLister,ProjectInvitationDescriber,ProjectInvitationDeleter,ProjectInviter,ProjectInvitationUpdater) -// Package atlas is a generated GoMock package. -package atlas +// Package mocks is a generated GoMock package. +package mocks import ( reflect "reflect" diff --git a/internal/store/atlas/performance_advisor.go b/internal/store/performance_advisor.go similarity index 91% rename from internal/store/atlas/performance_advisor.go rename to internal/store/performance_advisor.go index 06168b10e6..b0037d262d 100644 --- a/internal/store/atlas/performance_advisor.go +++ b/internal/store/performance_advisor.go @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package atlas +package store import ( atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" ) -//go:generate mockgen -destination=../../mocks/atlas/mock_performance_advisor.go -package=atlas github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas PerformanceAdvisorNamespacesLister,PerformanceAdvisorSlowQueriesLister,PerformanceAdvisorIndexesLister,PerformanceAdvisorSlowOperationThresholdEnabler,PerformanceAdvisorSlowOperationThresholdDisabler +//go:generate mockgen -destination=../mocks/mock_performance_advisor.go -package=mocks github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store PerformanceAdvisorNamespacesLister,PerformanceAdvisorSlowQueriesLister,PerformanceAdvisorIndexesLister,PerformanceAdvisorSlowOperationThresholdEnabler,PerformanceAdvisorSlowOperationThresholdDisabler type PerformanceAdvisorNamespacesLister interface { PerformanceAdvisorNamespaces(opts *atlasv2.ListSlowQueryNamespacesApiParams) (*atlasv2.Namespaces, error) } diff --git a/internal/store/atlas/project_invitations.go b/internal/store/project_invitations.go similarity index 91% rename from internal/store/atlas/project_invitations.go rename to internal/store/project_invitations.go index d6d248930b..f396267151 100644 --- a/internal/store/atlas/project_invitations.go +++ b/internal/store/project_invitations.go @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package atlas +package store import ( atlasv2 "go.mongodb.org/atlas-sdk/v20231115007/admin" ) -//go:generate mockgen -destination=../../mocks/atlas/mock_project_invitations.go -package=atlas github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store/atlas ProjectInvitationLister,ProjectInvitationDescriber,ProjectInvitationDeleter,ProjectInviter,ProjectInvitationUpdater +//go:generate mockgen -destination=../mocks/mock_project_invitations.go -package=mocks github.com/mongodb/mongodb-atlas-cli/atlascli/internal/store ProjectInvitationLister,ProjectInvitationDescriber,ProjectInvitationDeleter,ProjectInviter,ProjectInvitationUpdater type ProjectInvitationLister interface { ProjectInvitations(*atlasv2.ListProjectInvitationsApiParams) ([]atlasv2.GroupInvitation, error)