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

Method InitAllContainers

pkg/funclet/funclet.go:129–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (f *Funclet) InitAllContainers() {
130 for i := 0; i < f.Options.ContainerNum; i++ {
131 id := generateContainerID(f.PodName, i)
132 if err := f.InitContainerEvent(id); err != nil {
133 f.logger.Errorf("init container %s failed: %+v", id, err)
134 }
135 }
136}
137
138// tools to reset node
139func (f *Funclet) Reset() (err error) {

Callers 1

InitFuncletFunction · 0.80

Calls 3

InitContainerEventMethod · 0.95
generateContainerIDFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected