From cc4475cab7a8c753c3c9ee3c2b904c5e9ea26312 Mon Sep 17 00:00:00 2001 From: swapnil-signoz Date: Tue, 17 Mar 2026 23:10:15 +0530 Subject: [PATCH] refactor: updating store methods --- pkg/types/cloudintegrationtypes/store.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/types/cloudintegrationtypes/store.go b/pkg/types/cloudintegrationtypes/store.go index c13b400058..a40e976c27 100644 --- a/pkg/types/cloudintegrationtypes/store.go +++ b/pkg/types/cloudintegrationtypes/store.go @@ -22,7 +22,7 @@ type Store interface { // GetConnectedAccounts returns all the cloud integration accounts for the org and cloud provider GetConnectedAccounts(ctx context.Context, orgID valuer.UUID, provider CloudProviderType) ([]*StorableCloudIntegration, error) - // GetConnectedAccount for given provider + // GetConnectedAccount for a given provider GetConnectedAccount(ctx context.Context, orgID valuer.UUID, provider CloudProviderType, providerAccountID string) (*StorableCloudIntegration, error) // cloud_integration_service related methods @@ -30,11 +30,11 @@ type Store interface { // GetServiceByServiceID returns the cloud integration service for the given cloud integration id and service id GetServiceByServiceID(ctx context.Context, cloudIntegrationID valuer.UUID, serviceID ServiceID) (*StorableCloudIntegrationService, error) - // CreateService creates a new cloud integration service for the given cloud integration id and service type - CreateService(ctx context.Context, cloudIntegrationID valuer.UUID, service *StorableCloudIntegrationService) (*StorableCloudIntegrationService, error) + // CreateService creates a new cloud integration service + CreateService(ctx context.Context, service *StorableCloudIntegrationService) (*StorableCloudIntegrationService, error) - // UpdateService updates an existing cloud integration service for the given cloud integration id and service type - UpdateService(ctx context.Context, cloudIntegrationID valuer.UUID, service *StorableCloudIntegrationService) error + // UpdateService updates an existing cloud integration service + UpdateService(ctx context.Context, service *StorableCloudIntegrationService) error // GetServices returns all the cloud integration services for the given cloud integration id GetServices(ctx context.Context, cloudIntegrationID valuer.UUID) ([]*StorableCloudIntegrationService, error)