MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / UnzipCode

Method UnzipCode

pkg/funclet/code/unzip.go:28–34  ·  view source on GitHub ↗

UnzipCode

(ctx *context.Context, filename, target string)

Source from the content-addressed store, hash-verified

26
27// UnzipCode
28func (codeMgr *Manager) UnzipCode(ctx *context.Context, filename, target string) error {
29 defer ctx.Logger.TimeTrack(time.Now(), fmt.Sprintf("Unzip code target %s", target))
30 if err := zip.Unzip(filename, target); err != nil {
31 return err
32 }
33 return nil
34}

Callers

nothing calls this directly

Calls 2

UnzipFunction · 0.92
TimeTrackMethod · 0.80

Tested by

no test coverage detected