Skip to content

Commit

Permalink
fix: more linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmocanu-ionos committed Jan 29, 2025
1 parent b8fd635 commit bb2a725
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/dbaas/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func (c *PsqlClient) GetCluster(ctx context.Context, clusterId string) (psql.Clu
}

// GetCluster Retrieves a Mongo cluster
func (c *MongoClient) GetCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *shared.APIResponse, error) {
cluster, apiResponse, err := c.sdkClient.ClustersApi.ClustersFindById(ctx, clusterId).Execute()
func (c *MongoClient) GetCluster(ctx context.Context, clusterID string) (mongo.ClusterResponse, *shared.APIResponse, error) {
cluster, apiResponse, err := c.sdkClient.ClustersApi.ClustersFindById(ctx, clusterID).Execute()
apiResponse.LogInfo()
return cluster, apiResponse, err
}
Expand Down Expand Up @@ -72,13 +72,13 @@ func (c *MongoClient) CreateCluster(ctx context.Context, cluster mongo.CreateClu
return clusterResponse, apiResponse, err
}

func (c *MongoClient) UpdateCluster(ctx context.Context, clusterId string, cluster mongo.PatchClusterRequest) (mongo.ClusterResponse, *shared.APIResponse, error) {
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersPatch(ctx, clusterId).PatchClusterRequest(cluster).Execute()
// UpdateCluster Updates a Mongo cluster
func (c *MongoClient) UpdateCluster(ctx context.Context, clusterID string, cluster mongo.PatchClusterRequest) (mongo.ClusterResponse, *shared.APIResponse, error) {
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersPatch(ctx, clusterID).PatchClusterRequest(cluster).Execute()
apiResponse.LogInfo()
return clusterResponse, apiResponse, err
}

// UpdateCluster Updates a Mongo cluster
func (c *PsqlClient) UpdateCluster(ctx context.Context, clusterId string, cluster psql.PatchClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error) {
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersPatch(ctx, clusterId).PatchClusterRequest(cluster).Execute()
apiResponse.LogInfo()
Expand All @@ -92,8 +92,8 @@ func (c *PsqlClient) DeleteCluster(ctx context.Context, clusterId string) (psql.
}

// DeleteCluster Deletes a Mongo cluster
func (c *MongoClient) DeleteCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *shared.APIResponse, error) {
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersDelete(ctx, clusterId).Execute()
func (c *MongoClient) DeleteCluster(ctx context.Context, clusterID string) (mongo.ClusterResponse, *shared.APIResponse, error) {
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersDelete(ctx, clusterID).Execute()
apiResponse.LogInfo()
return clusterResponse, apiResponse, err
}
Expand Down

0 comments on commit bb2a725

Please sign in to comment.