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

Method SetNetwork

pkg/funclet/init.go:170–176  ·  view source on GitHub ↗
(pid int)

Source from the content-addressed store, hash-verified

168}
169
170func (f *Funclet) SetNetwork(pid int) error {
171 if err := f.NetworkManager.SetContainerNet(pid); err != nil {
172 return fmt.Errorf("set container net failed: %s", err)
173 }
174
175 return nil
176}
177
178func (f *Funclet) initializeIO(containerID string) (std *stdio, err error) {
179 var pr1, pr2 io.ReadCloser

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
SetContainerNetMethod · 0.65

Tested by

no test coverage detected