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

Method UnLockContainerWithLog

pkg/funclet/container.go:74–84  ·  view source on GitHub ↗
(id string, ctx *funcletCtx.Context)

Source from the content-addressed store, hash-verified

72}
73
74func (m *ContainerManager) UnLockContainerWithLog(id string, ctx *funcletCtx.Context) (err error) {
75 ctx.Logger.V(9).Infof("start unlock container %s", id)
76 defer ctx.Logger.V(9).Infof("finish unlock container %s", id)
77 info, err := m.ContainerMap.GetContainer(id)
78 if err != nil {
79 ctx.Logger.Errorf("get container %s status err %s", id, err)
80 return
81 }
82 info.EventLock.UnLock()
83 return
84}
85
86type ContainerMap struct {
87 CMap sync.Map

Callers 4

WarmUpContainerEventMethod · 0.80
ResetContainerEventMethod · 0.80
InitContainerEventMethod · 0.80

Calls 5

InfofMethod · 0.80
VMethod · 0.80
GetContainerMethod · 0.80
ErrorfMethod · 0.80
UnLockMethod · 0.80

Tested by

no test coverage detected