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

Method UpdateContainerStreamMode

pkg/funclet/container.go:118–125  ·  view source on GitHub ↗
(id string, streamMode bool)

Source from the content-addressed store, hash-verified

116}
117
118func (m *ContainerMap) UpdateContainerStreamMode(id string, streamMode bool) (err error) {
119 info, exist := m.Exist(id)
120 if !exist {
121 return ContainerNotExists
122 }
123 info.WithStreamMode = streamMode
124 return nil
125}
126
127func InitContainerMap(podName string, num int) *ContainerMap {
128 cMap := &ContainerMap{

Callers 2

WarmUpMethod · 0.80
InitContainerMethod · 0.80

Calls 1

ExistMethod · 0.95

Tested by

no test coverage detected