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

Function Stop

agent/utils/compose/compose.go:188–196  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

186}
187
188func Stop(filePath string) (string, error) {
189 if err := checkCmd(); err != nil {
190 return "", err
191 }
192 base, extra := getComposeBaseCmd()
193 args := append(extra, loadFiles(filePath)...)
194 args = append(args, "stop")
195 return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...)
196}
197
198func Restart(filePath string) (string, error) {
199 if err := checkCmd(); err != nil {

Callers

nothing calls this directly

Calls 4

checkCmdFunction · 0.85
getComposeBaseCmdFunction · 0.85
loadFilesFunction · 0.85
RunWithStdoutMethod · 0.45

Tested by

no test coverage detected