MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / DeleteCheck

Method DeleteCheck

agent/app/service/runtime.go:273–283  ·  view source on GitHub ↗
(runTimeId uint)

Source from the content-addressed store, hash-verified

271}
272
273func (r *RuntimeService) DeleteCheck(runTimeId uint) ([]dto.AppResource, error) {
274 var res []dto.AppResource
275 websites, _ := websiteRepo.GetBy(websiteRepo.WithRuntimeID(runTimeId))
276 for _, website := range websites {
277 res = append(res, dto.AppResource{
278 Type: "website",
279 Name: website.PrimaryDomain,
280 })
281 }
282 return res, nil
283}
284
285func (r *RuntimeService) Delete(runtimeDelete request.RuntimeDelete) error {
286 runtime, err := runtimeRepo.GetFirst(context.Background(), repo.WithByID(runtimeDelete.ID))

Callers

nothing calls this directly

Calls 2

GetByMethod · 0.65
WithRuntimeIDMethod · 0.65

Tested by

no test coverage detected