mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 04:56:38 +00:00
Return labels in functions list endpoint
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -67,6 +67,10 @@ type Function struct {
|
||||
InvocationCount float64 `json:"invocationCount"` // TODO: shouldn't this be int64?
|
||||
Replicas uint64 `json:"replicas"`
|
||||
EnvProcess string `json:"envProcess"`
|
||||
|
||||
// Labels are metadata for functions which may be used by the
|
||||
// back-end for making scheduling or routing decisions
|
||||
Labels *map[string]string `json:"labels"`
|
||||
}
|
||||
|
||||
// AsyncReport is the report from a function executed on a queue worker.
|
||||
|
Reference in New Issue
Block a user