Add import/export

This commit is contained in:
Ettore Di Giacinto
2024-04-14 00:05:19 +02:00
parent 54de6221d1
commit 7c0f615952
5 changed files with 158 additions and 5 deletions

View File

@@ -465,6 +465,14 @@ func (a *AgentPool) GetAgent(name string) *Agent {
return a.agents[name]
}
func (a *AgentPool) GetConfig(name string) *AgentConfig {
agent, exists := a.pool[name]
if !exists {
return nil
}
return &agent
}
func (a *AgentPool) GetManager(name string) Manager {
return a.managers[name]
}