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

Function checkIsLinkApp

agent/app/service/website_utils.go:1211–1220  ·  view source on GitHub ↗
(website model.Website)

Source from the content-addressed store, hash-verified

1209}
1210
1211func checkIsLinkApp(website model.Website) bool {
1212 if website.Type == constant.Deployment {
1213 return true
1214 }
1215 if website.Type == constant.Runtime {
1216 runtime, _ := runtimeRepo.GetFirst(context.Background(), repo.WithByID(website.RuntimeID))
1217 return runtime.Resource == constant.ResourceAppstore
1218 }
1219 return false
1220}
1221
1222func chownRootDir(path string) error {
1223 cmdMgr := cmd.NewCommandMgr(cmd.WithTimeout(1 * time.Second))

Callers 1

DeleteWebsiteMethod · 0.85

Calls 2

GetFirstMethod · 0.65
WithByIDMethod · 0.65

Tested by

no test coverage detected