mirror of https://github.com/knative/func.git
* chore: update CA bundle Signed-off-by: Matej Vašek <mvasek@redhat.com> * style: add EoLs Signed-off-by: Matej Vašek <mvasek@redhat.com> * style: removed trailing whitespace Signed-off-by: Matej Vašek <mvasek@redhat.com> --------- Signed-off-by: Matej Vašek <mvasek@redhat.com> |
||
---|---|---|
.. | ||
Procfile | ||
README.md | ||
app.sh | ||
func.py | ||
manifest.yaml | ||
requirements.txt | ||
test_func.py |
README.md
Python CloudEvents Function
Welcome to your new Python function project! The boilerplate function
code can be found in func.py
. This function is meant
to respond to Cloud Events.
Endpoints
Running this function will expose three endpoints.
/
The endpoint for your function./health/readiness
The endpoint for a readiness health check/health/liveness
The endpoint for a liveness health check
The health checks can be accessed in your browser at http://localhost:8080/health/readiness and http://localhost:8080/health/liveness.
You can use func invoke
to send an event to the function endpoint.
Testing
This function project includes a unit test. Update this as you add business logic to your function in order to test its behavior.
python test_func.py