mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added image filter
This commit is contained in:
@@ -32,5 +32,6 @@ func ApplyAppFilter(app *App, filter *AppFilter) bool {
|
||||
|
||||
func ApplyRouteFilter(route *Route, filter *RouteFilter) bool {
|
||||
return (filter.Path == "" || route.Path == filter.Path) &&
|
||||
(filter.AppName == "" || route.AppName == filter.AppName)
|
||||
(filter.AppName == "" || route.AppName == filter.AppName) &&
|
||||
(filter.Image == "" || route.Image == filter.Image) &&
|
||||
}
|
||||
|
||||
@@ -64,4 +64,5 @@ func (r *Route) Validate() error {
|
||||
type RouteFilter struct {
|
||||
Path string
|
||||
AppName string
|
||||
Image string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user