code: func (e *events) List(opts api.ListOptions) (*api.EventList, error) {
  	result := &api.EventList{}
  	err := e.client.Get().
  		NamespaceIfScoped(e.namespace, len(e.namespace) > 0).
  		Resource("events").
  		VersionedParams(&opts, api.Scheme).
  		Do().
  		Into(result)
  	return result, err
  }
docs: // List returns a list of events matching the selectors.