Moon and I

When the moon is full I am whole. When the moon is crescent I am halfed, When there is an eclipse I am gone. What am I?