wrench::Function
-
class Function
A class that implements the notion of a function that can be invoked at a serverless compute service.
Public Functions
Constructs a Function object.
- Parameters:
name – The name of the function.
lambda – The function logic implemented as a lambda.
image – The file location of the function’s container image.
Executes the function with the provided input and storage service.
- Parameters:
input – The input string for the function.
storage_service – A shared pointer to a StorageService instance.
- Returns:
The output of the function execution.
-
std::shared_ptr<FileLocation> getImage() const
Gets the image associated to the function.
- Returns:
An image’s file location
-
std::string getName() const
Gets the name of the function.
- Returns:
The name of the function.