MCPcopy Index your code
hub / github.com/serverless/serverless / getFunction

Method getFunction

packages/serverless/lib/classes/service.js:305–313  ·  view source on GitHub ↗
(functionName)

Source from the content-addressed store, hash-verified

303 }
304
305 getFunction(functionName) {
306 if (functionName in this.functions) {
307 return this.functions[functionName]
308 }
309 throw new ServerlessError(
310 `Function "${functionName}" doesn't exist in this Service`,
311 'FUNCTION_MISSING_IN_SERVICE',
312 )
313 }
314
315 getLayer(layerName) {
316 if (layerName in this.layers) {

Callers 15

getAllFunctionsNamesMethod · 0.95
getEventInFunctionMethod · 0.95
packageServiceFunction · 0.45
packageFunctionFunction · 0.45
resolveFilePathsFunctionFunction · 0.45
getLambdaFunctionsMethod · 0.45
pruneFunctionsMethod · 0.45
extendedValidateMethod · 0.45
extendedValidateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected