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

Method GetContainer

pkg/funclet/container.go:90–95  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

88}
89
90func (m *ContainerMap) GetContainer(id string) (info *api.ContainerInfo, err error) {
91 if info, exist := m.Exist(id); exist {
92 return info, nil
93 }
94 return nil, ContainerNotExists
95}
96
97func (m *ContainerMap) Exist(id string) (info *api.ContainerInfo, exist bool) {
98 val, ok := m.CMap.Load(id)

Callers 9

WarmUpContainerEventMethod · 0.80
ResetContainerEventMethod · 0.80
ResetContainersMethod · 0.80
InitContainerEventMethod · 0.80
LockContainerMethod · 0.80
UnLockContainerMethod · 0.80
BulkGetContainersMethod · 0.80

Calls 1

ExistMethod · 0.95

Tested by

no test coverage detected