Add agent key struct to represent an agent

Issue: Add a new struct for representing agent key (#705 - closed)

Introduce a new struct AgentKey which consists of the agent's id and type.

Update the type of agentID in the entire codebase to api.AgentKey. The variable names in the codebase have not been updated in this MR to to control the MR size and make it easier for reviewing. A followup MR will update agentID variable names(and other related things) in the codebase with agentKey to clean this up.

Edited by Vishal Tak

Merge request reports

Loading