A Quindanning man who held a knife to his former partner’s throat and punched a police officer in the face has been jailed for two years.