Add label support to Swarm

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-10-22 20:57:51 +01:00
parent 6584b8225b
commit e4a1ef2d6b
2 changed files with 15 additions and 4 deletions

View File

@ -30,6 +30,10 @@ type CreateFunctionRequest struct {
// Secrets list of secrets to be made available to function
Secrets []string `json:"secrets"`
// 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"`
}
// DeleteFunctionRequest delete a deployed function