code: func (s *Store) IntentionSet(idx uint64, ixn *structs.Intention) error {
  	tx := s.db.Txn(true)
  	defer tx.Abort()
  
  	if err := s.intentionSetTxn(tx, idx, ixn); err != nil {
  		return err
  	}
  
  	tx.Commit()
  	return nil
  }
docs: // IntentionSet creates or updates an intention.