code: func FindResources(tx ReadTx, by By) ([]*api.Resource, error) {
  	checkType := func(by By) error {
  		switch by.(type) {
  		case byIDPrefix, byName, byNamePrefix, byKind, byCustom, byCustomPrefix:
  			return nil
  		default:
  			return ErrInvalidFindBy
  		}
  	}
  
  	resourceList := []*api.Resource{}
  	appendResult := func(o api.StoreObject) {
  		resourceList = append(resourceList, o.(resourceEntry).Resource)
  	}
  
  	err := tx.find(tableResource, by, checkType, appendResult)
  	return resourceList, err
  }
docs: // FindResources selects a set of resource objects and returns them.