This repo contains a simple Java Function that can be built using Function Buildpacks and deployed as a TAP serverless workload.
This function utilizes the buildpacks provided by 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:
my-java-fn
└── 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.