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

Method GetRuntime

pkg/controller/rtctrl/runtime_dispatcher.go:141–151  ·  view source on GitHub ↗
(runtimeID string)

Source from the content-addressed store, hash-verified

139}
140
141func (m *RuntimeManager) GetRuntime(runtimeID string) (ri *RuntimeInfo, err error) {
142 val, loaded := m.rtMap.Load(runtimeID)
143 if !loaded {
144 return nil, RuntimeNotExist{RuntimeID: runtimeID}
145 }
146 rt, ok := val.(*RuntimeInfo)
147 if !ok {
148 return nil, RuntimeInfoError{RuntimeID: runtimeID}
149 }
150 return rt, nil
151}
152
153func (m *RuntimeManager) RuntimeStatistics() (cold, inUse, all int) {
154 rtlist := m.RuntimeList()

Callers 3

TestRunnerHandlerFunction · 0.95
SyncRuntimeResourceMethod · 0.95
TestRuntimeMapFunction · 0.95

Calls 1

LoadMethod · 0.80

Tested by 2

TestRunnerHandlerFunction · 0.76
TestRuntimeMapFunction · 0.76