MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / DeleteFunction

Method DeleteFunction

fs/manager.go:250–262  ·  view source on GitHub ↗
(namespace, name string)

Source from the content-addressed store, hash-verified

248}
249
250func (fm *functionManagerImpl) DeleteFunction(namespace, name string) error {
251 fm.functionsLock.Lock()
252 defer fm.functionsLock.Unlock()
253 instances, exist := fm.functions[GetNamespacedName(namespace, name)]
254 if !exist {
255 return common.ErrorFunctionNotFound
256 }
257 delete(fm.functions, GetNamespacedName(namespace, name))
258 for _, instance := range instances {
259 instance.Stop()
260 }
261 return nil
262}
263
264func (fm *functionManagerImpl) ListFunctions() (result []string) {
265 fm.functionsLock.Lock()

Callers

nothing calls this directly

Calls 2

GetNamespacedNameFunction · 0.85
StopMethod · 0.65

Tested by

no test coverage detected