mirror of
https://github.com/rancher/norman.git
synced 2025-09-17 07:40:10 +00:00
Add ByID param so transformer to known
This commit is contained in:
@@ -30,7 +30,11 @@ func (s *Store) ByID(apiContext *types.APIContext, schema *types.Schema, id stri
|
|||||||
if s.Transformer == nil {
|
if s.Transformer == nil {
|
||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
return s.Transformer(apiContext, data, nil)
|
return s.Transformer(apiContext, data, &types.QueryOptions{
|
||||||
|
Options: map[string]string{
|
||||||
|
"ByID": "true",
|
||||||
|
},
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error) {
|
func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error) {
|
||||||
|
Reference in New Issue
Block a user