Cardiff manager Malky Mackay has vowed that he will not resign despite an ultimatum from owner Vincent Tan to step down or be sacked.