mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
The changes aim to be as minimal as possible: * Remove no longer available options * Add a schema version to the file for validation * Add trigger list block
18 lines
491 B
Markdown
18 lines
491 B
Markdown
# Trigger
|
|
|
|
A Trigger represents an entry point for function invocations. Each type of Trigger requires specific configuration. They should be defined within the func.yaml file, as specified in [FUNC YAML](func-file.md).
|
|
|
|
## Types
|
|
|
|
### http
|
|
|
|
Configures a http endpoint for function invocation.
|
|
|
|
```
|
|
name: triggerOne
|
|
type: http
|
|
source: /trigger-path
|
|
```
|
|
|
|
This will cause the system to route requests arriving at the fn service at `/trigger-path` to the function specified in the fn.yaml file.
|