It sounds like a sebaceous cyst; when they're on the eyelids/near the eye they are usually called 'styes' (or hordeola (hordeolum, singular) in medical terms, if you're curious).
Essentially, these are the inflammation and blockage of a sebaceous gland (these glands produce the oily sebum the moisturises and helps protect skin and hair), usually by a minor bacterial infection. These often occur on the eyelid close to the eyelashes, since the eyelashes are supplied by their own sebaceous glands; the infection and blockage results in an accumulation of sebum ('pus') inside forming a small hard lump, and if near the surface looking like a whitehead - indeed they are virtually the same thing.
Don't pop it. You just don't want to risk these things near your eyes; infection and all. The best possible advice is to bathe it in warm water to keep it clean, and if you are careful, remove the eyelash which it is linked to carefully with tweezers, which may help reduce the pressure in it. If it where a whitehead anywhere else, it may be alright to lance it with a clean (properly clean - sterilised with an alcohol wipe at least) needle to release the sebum, and wash it regularly to prevent infection in the area, however I can't responsibly recommend that since if you were to have just the smallest accident, you could stick a needle in your eye.
The obstruction of your vision is simply the stye being in front of your eye as it is swollen. If it doesn't resolve itself with or without some of the basic care I suggested in a few days, see your doctor.
Essentially, these are the inflammation and blockage of a sebaceous gland (these glands produce the oily sebum the moisturises and helps protect skin and hair), usually by a minor bacterial infection. These often occur on the eyelid close to the eyelashes, since the eyelashes are supplied by their own sebaceous glands; the infection and blockage results in an accumulation of sebum ('pus') inside forming a small hard lump, and if near the surface looking like a whitehead - indeed they are virtually the same thing.
Don't pop it. You just don't want to risk these things near your eyes; infection and all. The best possible advice is to bathe it in warm water to keep it clean, and if you are careful, remove the eyelash which it is linked to carefully with tweezers, which may help reduce the pressure in it. If it where a whitehead anywhere else, it may be alright to lance it with a clean (properly clean - sterilised with an alcohol wipe at least) needle to release the sebum, and wash it regularly to prevent infection in the area, however I can't responsibly recommend that since if you were to have just the smallest accident, you could stick a needle in your eye.
The obstruction of your vision is simply the stye being in front of your eye as it is swollen. If it doesn't resolve itself with or without some of the basic care I suggested in a few days, see your doctor.