mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Add annotations to routes and apps (#866)
Adds 'annotations' attribute to Routes and Apps
This commit is contained in:
2
vendor/github.com/fnproject/fn_go/VERSION
generated
vendored
2
vendor/github.com/fnproject/fn_go/VERSION
generated
vendored
@@ -1 +1 @@
|
||||
0.2.4
|
||||
0.2.6
|
||||
|
||||
5
vendor/github.com/fnproject/fn_go/models/app.go
generated
vendored
5
vendor/github.com/fnproject/fn_go/models/app.go
generated
vendored
@@ -17,7 +17,10 @@ import (
|
||||
// swagger:model App
|
||||
type App struct {
|
||||
|
||||
// Application configuration, applied to all routes.
|
||||
// Application annotations - this is a map of annotations attached to this app, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes
|
||||
Annotations map[string]interface{} `json:"annotations,omitempty"`
|
||||
|
||||
// Application function configuration, applied to all routes.
|
||||
Config map[string]string `json:"config,omitempty"`
|
||||
|
||||
// Time when app was created. Always in UTC.
|
||||
|
||||
3
vendor/github.com/fnproject/fn_go/models/route.go
generated
vendored
3
vendor/github.com/fnproject/fn_go/models/route.go
generated
vendored
@@ -19,6 +19,9 @@ import (
|
||||
// swagger:model Route
|
||||
type Route struct {
|
||||
|
||||
// Route annotations - this is a map of annotations attached to this route, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes
|
||||
Annotations map[string]interface{} `json:"annotations,omitempty"`
|
||||
|
||||
// Route configuration - overrides application configuration
|
||||
Config map[string]string `json:"config,omitempty"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user