code: func UpdateResource(tx Tx, r *api.Resource) error {
  	if err := confirmExtension(tx, r); err != nil {
  		return err
  	}
  	return tx.update(tableResource, resourceEntry{r})
  }
docs: // UpdateResource updates an existing resource object in the store.
  // Returns ErrNotExist if the object doesn't exist.