code: func (c *FakeEvents) Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*v1.EventList, error) {
  	action := core.NewRootListAction(eventsResource, eventsKind, metav1.ListOptions{})
  	if c.ns != "" {
  		action = core.NewListAction(eventsResource, eventsKind, c.ns, metav1.ListOptions{})
  	}
  	obj, err := c.Fake.Invokes(action, &v1.EventList{})
  	if obj == nil {
  		return nil, err
  	}
  
  	return obj.(*v1.EventList), err
  }
docs: // Search returns a list of events matching the specified object.