code: func FindSecrets(tx ReadTx, by By) ([]*api.Secret, error) {
  	checkType := func(by By) error {
  		switch by.(type) {
  		case byName, byNamePrefix, byIDPrefix, byCustom, byCustomPrefix:
  			return nil
  		default:
  			return ErrInvalidFindBy
  		}
  	}
  
  	secretList := []*api.Secret{}
  	appendResult := func(o api.StoreObject) {
  		secretList = append(secretList, o.(*api.Secret))
  	}
  
  	err := tx.find(tableSecret, by, checkType, appendResult)
  	return secretList, err
  }
docs: // FindSecrets selects a set of secrets and returns them.