1
0
Fork 0

feat(docker): add HealthCheck labels.

This commit is contained in:
Fernandez Ludovic 2017-12-16 13:24:07 +01:00 committed by Traefiker
parent 9ee642a7db
commit c26b9b1a5d
6 changed files with 52 additions and 17 deletions

View file

@ -192,6 +192,12 @@ func getFuncStringLabel(labelName string, defaultValue string) func(container do
}
}
func getFuncIntLabel(labelName string, defaultValue int) func(container dockerData) int {
return func(container dockerData) int {
return label.GetIntValue(container.Labels, labelName, defaultValue)
}
}
func getFuncBoolLabel(labelName string, defaultValue bool) func(container dockerData) bool {
return func(container dockerData) bool {
return label.GetBoolValue(container.Labels, labelName, defaultValue)