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

Method DeleteCheck

agent/app/service/agents.go:799–805  ·  view source on GitHub ↗
(req dto.AgentIDReq)

Source from the content-addressed store, hash-verified

797}
798
799func (a AgentService) DeleteCheck(req dto.AgentIDReq) ([]dto.AppResource, error) {
800 agent, err := agentRepo.GetFirst(repo.WithByID(req.AgentID))
801 if err != nil {
802 return nil, err
803 }
804 return a.deleteCheckByAgent(agent)
805}
806
807func (a AgentService) deleteCheckByAgent(agent *model.Agent) ([]dto.AppResource, error) {
808 if agent == nil || agent.WebsiteID == 0 {

Callers

nothing calls this directly

Calls 3

deleteCheckByAgentMethod · 0.95
GetFirstMethod · 0.65
WithByIDMethod · 0.65

Tested by

no test coverage detected