The sentence means that he was a friend of yours. He was also a mentor from whom you get advice and guidance. At the same time, he was a confidant, someone you trust and confide in (tell him things ...