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

Method UpdateContainerPid

pkg/funclet/container.go:109–116  ·  view source on GitHub ↗
(id string, pid int)

Source from the content-addressed store, hash-verified

107}
108
109func (m *ContainerMap) UpdateContainerPid(id string, pid int) (err error) {
110 info, exist := m.Exist(id)
111 if !exist {
112 return ContainerNotExists
113 }
114 info.HostPid = pid
115 return nil
116}
117
118func (m *ContainerMap) UpdateContainerStreamMode(id string, streamMode bool) (err error) {
119 info, exist := m.Exist(id)

Callers 3

WarmUpMethod · 0.80
InitContainerMethod · 0.80
IDEWarmUpMethod · 0.80

Calls 1

ExistMethod · 0.95

Tested by

no test coverage detected