How do you attach a glass table top to a nontraditional base?

My husband and I have had the idea to create a dining table by using a large barrel with a glass table top. How would you attach the glass to the barrel?