Canned? How long is it good for?

You’ve taken the time to prepare and can your own food, then you’ve stored them away on the pantry shelf… but how long is that canned food good for? If you have cans of food on the shelf that have been there for more than a year, are they still good to eat?