This accelerator generates template files, which enable developers to work with Function Buildpacks and deploy a FaaS experience easily.
These template files are generated from VMware's open-source Function Buildpacks for Knative project.
To begin editing your function, refer to the tree diagram below of the file to modify:
functions-java
└── src/main/java/functions
└── Hire.java // EDIT THIS FILE
└── models/
Inside this file, you will find a main class and function that is invoked by default. Models contains scaffold classes you may edit or delete to build out your Java function. You can change the name of the default class and file, too.
To see samples of code deployable as a Function (FaaS) experience, visit the samples folder.
To add/remove dependencies, you may use Maven or Gradle for dependency management as with any normal Java / Spring development.
Instead of arguments in the function definition, the in
object has attributes that can be populated and accessed.
Please see DEPLOYING.md on how to build, deploy, and test your newly built function.