Looks like an infection caused by injury to the eye. You will ned to have Q-tips, saline solution, Vetricin Eye Wash, and an antibiotic for use in eyes. Wet the Q-tip with saline and wipe the infection from the eye as well as possible, rinse the eye with the eye wash, and apply antibiotic. Removing the infection from the eye may involve some pressure around the eye to push it to the open.
It is terribly gross, but very necessary to clean the eye until the infection stops. We had a bird not long ago that required us cleaning the eye every day for over two weeks. I thought the eye was gone it was so bad, but the bird recovered and is well and only suffers partial loss of sight.