The key decision was calling off the rest of the stack on the turn after CO's All-in. With top pair plus 12 outs at 13 BB, that call is clearly +EV, and the whole line was solid. The only upgrade is taking the initiative yourself instead of check-calling.
Street-by-Street Analysis
Preflop (9/10)
Defending 10♦8♦ suited in the BB against a CO min-raise, with the ante in the pot, is an easy call at this price. A shove is also reasonable at 13 BB, but flatting keeps CO's weaker opens in.
Flop (7/10)
With Top Pair (8 kicker), a gutshot and a backdoor flush on a two-club board, check-call is fine. At this stack depth, a check-raise for your stack is the higher-EV option: it denies equity to club draws and overcards, and your hand is strong enough to happily get it in.
Turn (8/10)
The 2♦ gave you Top Pair (8 kicker) plus a Flush Draw and a Gutshot, 12 total outs. Calling CO's All-in is mandatory. Your worst case is about 25% against top set, and you have 34–36% against top pair top kicker or an overpair, so the price easily covers it. Leading for your stack would have been slightly better, since it wins the pot immediately against CO's air and weak draws.
Hindsight: CO had 5♦3♦, a semi-bluff with a weaker diamond draw. Your call was far ahead, and the result matched the process.