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

Function Operate

agent/utils/compose/compose.go:208–216  ·  view source on GitHub ↗
(filePath, operation string)

Source from the content-addressed store, hash-verified

206}
207
208func Operate(filePath, operation string) (string, error) {
209 if err := checkCmd(); err != nil {
210 return "", err
211 }
212 base, extra := getComposeBaseCmd()
213 args := append(extra, loadFiles(filePath)...)
214 args = append(args, operation)
215 return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...)
216}
217
218func DownAndUp(filePath string) (string, error) {
219 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