(namespace, name string)
| 248 | } |
| 249 | |
| 250 | func (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 | |
| 264 | func (fm *functionManagerImpl) ListFunctions() (result []string) { |
| 265 | fm.functionsLock.Lock() |
nothing calls this directly
no test coverage detected