pbJSONFilterToPkg converts a v1.JSONFilter to a jsonfilter.JSONFilter.
(filter *v1.JSONFilter)
| 355 | |
| 356 | // pbJSONFilterToPkg converts a v1.JSONFilter to a jsonfilter.JSONFilter. |
| 357 | func pbJSONFilterToPkg(filter *v1.JSONFilter) *jsonfilter.JSONFilter { |
| 358 | return &jsonfilter.JSONFilter{ |
| 359 | FieldPath: filter.GetFieldPath(), |
| 360 | Value: filter.GetValue(), |
| 361 | Operator: pbJSONFilterOperatorToPkg(filter.GetOperator()), |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | // pbJSONFilterOperatorToPkg converts a v1.JSONOperator to a jsonfilter.JSONOperator. |
| 366 | func pbJSONFilterOperatorToPkg(operator v1.JSONOperator) jsonfilter.JSONOperator { |
no test coverage detected