mirror of
https://github.com/rancher/types.git
synced 2025-08-31 21:00:16 +00:00
Update vendor
This commit is contained in:
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