code: func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
  	event, ok := obj.(*api.Event)
  	if !ok {
  		return nil, nil, fmt.Errorf("not an event")
  	}
  	return labels.Set(event.Labels), EventToSelectableFields(event), nil
  }
docs: // GetAttrs returns labels and fields of a given object for filtering purposes.