1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 21:00:16 +00:00

Update vendor

This commit is contained in:
Darren Shepherd
2018-01-17 22:48:15 -07:00
parent fa817f5f21
commit 5355db005d
3 changed files with 6 additions and 2 deletions

View File

@@ -90,6 +90,10 @@ func ValidMod(mod ModifierType) bool {
return ok
}
func EQ(key, value string) *QueryCondition {
return NewConditionFromString(key, ModifierEQ, value)
}
func NewConditionFromString(field string, mod ModifierType, values ...string) *QueryCondition {
q := &QueryCondition{
Field: field,

View File

@@ -50,7 +50,7 @@ type RequestHandler func(request *APIContext) error
type QueryFilter func(opts *QueryOptions, data []map[string]interface{}) []map[string]interface{}
type Validator func(request *APIContext, data map[string]interface{}) error
type Validator func(request *APIContext, schema *Schema, data map[string]interface{}) error
type Formatter func(request *APIContext, resource *RawResource)