Skip to content

Maintained by Function Buildpacks for Knative Team (Cloud Native Runtimes)

License

Notifications You must be signed in to change notification settings

antpensi/java-functions-accelerator

 
 

Repository files navigation

Java Function - Using Function Buildpacks for Knative

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.

Getting Started

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.

Implementation Details (FAQ)

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.

Deploying

Please see DEPLOYING.md on how to build, deploy, and test your newly built function.

About

Maintained by Function Buildpacks for Knative Team (Cloud Native Runtimes)

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 79.4%
  • Starlark 20.6%