mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Set shortcodes in trigger response entities based on config or request URL (#1099)
* adding trigger short code injection * more annotation provider stuff * fixed up tests * Fix validator
This commit is contained in:
@@ -10,6 +10,9 @@ import (
|
||||
"github.com/fnproject/fn/api/common"
|
||||
)
|
||||
|
||||
// For want of a better place to put this it's here
|
||||
const TriggerHTTPEndpointAnnotation = "fnproject.io/trigger/httpEndpoint"
|
||||
|
||||
type Trigger struct {
|
||||
ID string `json:"id" db:"id"`
|
||||
Name string `json:"name" db:"name"`
|
||||
@@ -50,7 +53,9 @@ func (t *Trigger) EqualsWithAnnotationSubset(t2 *Trigger) bool {
|
||||
return eq
|
||||
}
|
||||
|
||||
var triggerTypes = []string{"http"}
|
||||
const TriggerTypeHTTP = "http"
|
||||
|
||||
var triggerTypes = []string{TriggerTypeHTTP}
|
||||
|
||||
func ValidTriggerTypes() []string {
|
||||
return triggerTypes
|
||||
|
||||
Reference in New Issue
Block a user