diff --git a/vendor.conf b/vendor.conf index 994433b9..5e90ef1c 100644 --- a/vendor.conf +++ b/vendor.conf @@ -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 diff --git a/vendor/github.com/rancher/norman/types/condition.go b/vendor/github.com/rancher/norman/types/condition.go index aebe36e4..64dbd433 100644 --- a/vendor/github.com/rancher/norman/types/condition.go +++ b/vendor/github.com/rancher/norman/types/condition.go @@ -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, diff --git a/vendor/github.com/rancher/norman/types/server_types.go b/vendor/github.com/rancher/norman/types/server_types.go index b10fcbed..0c609f25 100644 --- a/vendor/github.com/rancher/norman/types/server_types.go +++ b/vendor/github.com/rancher/norman/types/server_types.go @@ -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)