(ctx context.Context, id string)
| 350 | } |
| 351 | |
| 352 | func (i *imlStrategyModule) Delete(ctx context.Context, id string) error { |
| 353 | _, err := i.strategyService.LatestStrategyCommit(ctx, strategy_dto.ScopeGlobal, "", id) |
| 354 | if err != nil { |
| 355 | if !errors.Is(err, gorm.ErrRecordNotFound) { |
| 356 | return nil |
| 357 | } |
| 358 | return i.strategyService.Delete(ctx, id) |
| 359 | } |
| 360 | return i.strategyService.SortDelete(ctx, id) |
| 361 | } |
| 362 | |
| 363 | func (i *imlStrategyModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error { |
| 364 | commits, err := i.strategyService.ListLatestStrategyCommit(ctx, strategy_dto.ScopeGlobal, "") |
nothing calls this directly
no test coverage detected