mirror of
https://github.com/rancher/types.git
synced 2025-09-23 02:47:07 +00:00
Update vendor
This commit is contained in:
@@ -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
|
||||
|
4
vendor/github.com/rancher/norman/types/condition.go
generated
vendored
4
vendor/github.com/rancher/norman/types/condition.go
generated
vendored
@@ -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,
|
||||
|
2
vendor/github.com/rancher/norman/types/server_types.go
generated
vendored
2
vendor/github.com/rancher/norman/types/server_types.go
generated
vendored
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user