Add AndSelectors helper function
Signed-off-by: Monis Khan <mkhan@redhat.com>
This commit is contained in:
		@@ -276,3 +276,8 @@ func parseSelector(selector string, fn TransformFunc) (Selector, error) {
 | 
			
		||||
func OneTermEqualSelector(k, v string) Selector {
 | 
			
		||||
	return &hasTerm{field: k, value: v}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// AndSelectors creates a selector that is the logical AND of all the given selectors
 | 
			
		||||
func AndSelectors(selectors ...Selector) Selector {
 | 
			
		||||
	return andTerm(selectors)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user