Skip to content

Commit

Permalink
from cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b committed Dec 5, 2023
1 parent 66012c6 commit 618afce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions server/memphis_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -2382,3 +2382,11 @@ func getUsageLimitProduersLimitPerStation(tenantName, stationName string) (float
func (s *Server) GetConnectorsByStationAndPartition(stationID, partitionNumber, numOfPartitions int) ([]map[string]string, error) {
return []map[string]string{}, nil
}

func deleteConnectorsStationResources(tenantName string, stationID int) error {
return nil
}

func deleteConnectorsTenantResources(tenantName string) error {
return nil
}
5 changes: 5 additions & 0 deletions server/memphis_handlers_stations.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func removeStationResources(s *Server, station models.Station, shouldDeleteStrea
return err
}

err = deleteConnectorsStationResources(station.TenantName, station.ID)
if err != nil {
return err
}

return nil
}

Expand Down
6 changes: 5 additions & 1 deletion server/memphis_handlers_user_mgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ func removeTenantResources(tenantName string, user models.User) error {
if err != nil {
return err
}
// TODO: send response of DeleteAndGetAttachedFunctionsByStation to microservice to delete

err = deleteConnectorsTenantResources(tenantName)
if err != nil {
return err
}

err = db.RemoveStationsByTenant(tenantName)
if err != nil {
Expand Down

0 comments on commit 618afce

Please sign in to comment.