Add annotations to routes and apps (#866)

Adds 'annotations' attribute to Routes and Apps
This commit is contained in:
Owen Cliffe
2018-03-20 18:02:49 +00:00
committed by GitHub
parent 845f40ee86
commit d25b5af59d
31 changed files with 1838 additions and 669 deletions

View File

@@ -1 +1 @@
0.2.4
0.2.6

View File

@@ -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.

View File

@@ -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"`