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