mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Largely a removal job, however many tests, particularly system level ones relied on Routes. These have been migrated to use Fns. * Add 410 response to swagger * No app names in log tags * Adding constraint in GetCall for FnID * Adding test to check FnID is required on call * Add fn_id to call selector * Fix text in docker mem warning * Correct buildConfig func name * Test fix up * Removing CPU setting from Agent test CPU setting has been deprecated, but the code base is still riddled with it. This just removes it from this layer. Really we need to remove it from Call. * Remove fn id check on calls * Reintroduce fn id required on call * Adding fnID to calls for execute test * Correct setting of app id in middleware * Removes root middlewares ability to redirect fun invocations * Add over sized test check * Removing call fn id check
25 lines
802 B
Go
25 lines
802 B
Go
package api
|
|
|
|
const (
|
|
// AppName is the app name context key
|
|
AppName string = "app_name"
|
|
// AppID is the app id context key
|
|
AppID string = "app_id"
|
|
|
|
// ParamAppID is the url path parameter for app id
|
|
ParamAppID string = "appID"
|
|
// ParamAppName is the url path parameter for app name
|
|
ParamAppName string = "appName"
|
|
// ParamTriggerID is the url path parameter for trigger id
|
|
ParamTriggerID string = "triggerID"
|
|
// ParamCallID is the url path parameter for call id
|
|
ParamCallID string = "callID"
|
|
// ParamFnID is the url path parameter for fn id
|
|
ParamFnID string = "fnID"
|
|
// ParamTriggerSource is the triggers source parameter
|
|
ParamTriggerSource string = "triggerSource"
|
|
|
|
//ParamTriggerType is the trigger type parameter - only used in hybrid API
|
|
ParamTriggerType string = "triggerType"
|
|
)
|