1
0
mirror of https://github.com/rancher/types.git synced 2025-09-23 02:47:07 +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

@@ -3,5 +3,5 @@ github.com/rancher/types
k8s.io/kubernetes v1.8.3 transitive=true,staging=true
bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git
github.com/rancher/norman 9e6ea5644226d126f222b39ff81edbb81f6df35b
github.com/rancher/norman 986c94965f9b4bbf8cfcb3f99fee66768ebb3bca
golang.org/x/sync fd80eb99c8f653c847d294a001bdf2a3a6f768f5

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)