While rummaging in my molecular model kit, I noticed that it contains a surprising number of $180^\circ$ oxygen atoms, i.e., oxygen that is meant to be covalently bonded to two partners in a linear geometry. Obviously this isn't a hard reference, but since the geometries contained in the kit usually represent common types of bonds, I started wondering when this actually occurs.
It's been a while since my organic chemistry course, but based on VSEPR, the first configuration I could imagine is a doubly positive oxygen with two double bonds on either side, that is, the isoelectronic configuration to carbon with a double bond on either side (as in $\ce{CO_2}$). But $\ce{O^{2+}}$ seems like quite an exotic configuration that I've never heard of. Alternatively, according to the Wikipedia article on linear configurations, the same might be possible in a linear (quasi-trigonal bipyramid) geometry given a central $\ce{O^{2-}}$ atom with two single bonds, isoelectronic to $\ce{Xe}$ in $\ce{XeF_2}$, which seems more in line with my intuition.
Are there other, more common linear oxygen configurations are there? And what are real-life examples of such bonds occurring?