GetFilter returns the filter contained within the validator.
()
| 113 | |
| 114 | // GetFilter returns the filter contained within the validator. |
| 115 | func (v Validator) GetFilter() filter.Expression { |
| 116 | return v.filter |
| 117 | } |
| 118 | |
| 119 | // PassesFilter checks whether given resources passes the filter. |
| 120 | func (v Validator) PassesFilter(resource map[string]interface{}) error { |