Guided liquid Simulation
I think you are looking for Fluid Control.

I recommend reading the fluid simulation documentation in it's entirety.  It's not long, but covers the topic well and highlights some things to watch out for i.e making sure your obstacles are within the domain.

There are also endless tutorials on youtube and clones.