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

Function GetPathConfig

pkg/funclet/helper.go:37–49  ·  view source on GitHub ↗
(o *options.FuncletOptions)

Source from the content-addressed store, hash-verified

35)
36
37func GetPathConfig(o *options.FuncletOptions) *file.PathConfig {
38 return &file.PathConfig{
39 RunnerDataPath: o.RunnerDataPath,
40 RunnerSpecPath: o.RunnerSpecPath,
41 RunnerTmpPath: tmp.RunnersTmpPath,
42 CodeWorkspacePath: tmp.CodeWorkspacePath,
43 EtcPath: o.RunnerSpecOption.EtcPath,
44 ConfPath: o.RunnerSpecOption.ConfPath,
45 CodePath: o.RunnerSpecOption.CodePath,
46 RuntimePath: o.RunnerSpecOption.RuntimePath,
47 RunningMode: o.RunningMode,
48 }
49}
50
51func ReaderToLog(r io.ReadCloser, logger *logs.Logger) {
52 logger.Info("start logger")

Callers 1

InitFuncletFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected