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

Method close

agent/app/service/backup_compose.go:413–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411}
412
413func (c *composeBackupContext) close() {
414 if c.dockerClient != nil {
415 _ = c.dockerClient.Close()
416 c.dockerClient = nil
417 }
418 if c.tmpDir != "" {
419 _ = os.RemoveAll(c.tmpDir)
420 c.tmpDir = ""
421 }
422}
423
424func stepPrepareComposeBackup(composeCtx *composeBackupContext) error {
425 if err := os.MkdirAll(composeCtx.backupDir, os.ModePerm); err != nil {

Callers 3

MessageFunction · 0.45
closeWebSocketFunction · 0.45
handleComposeBackupFunction · 0.45

Calls 2

RemoveAllMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected