Skip to content

Commit b8fd635

Browse files
committed
fix: linter changes
1 parent 3ad384b commit b8fd635

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

services/dbaas/cluster.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func (c *PsqlClient) GetCluster(ctx context.Context, clusterId string) (psql.Clu
2424
return cluster, apiResponse, err
2525
}
2626

27+
// GetCluster Retrieves a Mongo cluster
2728
func (c *MongoClient) GetCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *shared.APIResponse, error) {
2829
cluster, apiResponse, err := c.sdkClient.ClustersApi.ClustersFindById(ctx, clusterId).Execute()
2930
apiResponse.LogInfo()
@@ -40,6 +41,7 @@ func (c *PsqlClient) ListClusters(ctx context.Context, filterName string) (psql.
4041
return clusters, apiResponse, err
4142
}
4243

44+
// ListClusters Lists Mongo clusters
4345
func (c *MongoClient) ListClusters(ctx context.Context, filterName string) (mongo.ClusterList, *shared.APIResponse, error) {
4446
request := c.sdkClient.ClustersApi.ClustersGet(ctx)
4547
if filterName != "" {
@@ -50,6 +52,7 @@ func (c *MongoClient) ListClusters(ctx context.Context, filterName string) (mong
5052
return clusters, apiResponse, err
5153
}
5254

55+
// GetTemplates Lists Mongo templates
5356
func (c *MongoClient) GetTemplates(ctx context.Context) (mongo.TemplateList, *shared.APIResponse, error) {
5457
templates, apiResponse, err := c.sdkClient.TemplatesApi.TemplatesGet(ctx).Execute()
5558
apiResponse.LogInfo()
@@ -62,6 +65,7 @@ func (c *PsqlClient) CreateCluster(ctx context.Context, cluster psql.CreateClust
6265
return clusterResponse, apiResponse, err
6366
}
6467

68+
// CreateCluster Creates a Mongo cluster
6569
func (c *MongoClient) CreateCluster(ctx context.Context, cluster mongo.CreateClusterRequest) (mongo.ClusterResponse, *shared.APIResponse, error) {
6670
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersPost(ctx).CreateClusterRequest(cluster).Execute()
6771
apiResponse.LogInfo()
@@ -74,6 +78,7 @@ func (c *MongoClient) UpdateCluster(ctx context.Context, clusterId string, clust
7478
return clusterResponse, apiResponse, err
7579
}
7680

81+
// UpdateCluster Updates a Mongo cluster
7782
func (c *PsqlClient) UpdateCluster(ctx context.Context, clusterId string, cluster psql.PatchClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error) {
7883
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersPatch(ctx, clusterId).PatchClusterRequest(cluster).Execute()
7984
apiResponse.LogInfo()
@@ -86,6 +91,7 @@ func (c *PsqlClient) DeleteCluster(ctx context.Context, clusterId string) (psql.
8691
return clusterResponse, apiResponse, err
8792
}
8893

94+
// DeleteCluster Deletes a Mongo cluster
8995
func (c *MongoClient) DeleteCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *shared.APIResponse, error) {
9096
clusterResponse, apiResponse, err := c.sdkClient.ClustersApi.ClustersDelete(ctx, clusterId).Execute()
9197
apiResponse.LogInfo()
@@ -515,6 +521,7 @@ func GetPsqlClusterConnectionsData(d *schema.ResourceData) *[]psql.Connection {
515521
return &connections
516522
}
517523

524+
// GetMongoClusterConnectionsData creates an sdk object for the Mongo connection list from the plan
518525
func GetMongoClusterConnectionsData(d *schema.ResourceData) ([]mongo.Connection, error) {
519526
connections := make([]mongo.Connection, 0)
520527

0 commit comments

Comments
 (0)