mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 14:25:16 +03:00
19 lines
523 B
Go
19 lines
523 B
Go
package hub_service
|
|
|
|
import (
|
|
domainHub "github.com/lorsanstand/HomeOps-Hub/hub/internal/domain"
|
|
"github.com/lorsanstand/HomeOps-Hub/shared/domain"
|
|
)
|
|
|
|
func toCreateAgentModel(agent domain.RegisterAgentRequest) domainHub.CreateAgentModel {
|
|
return domainHub.CreateAgentModel{
|
|
AgentID: agent.AgentID,
|
|
AgentName: agent.AgentName,
|
|
Architecture: agent.Host.Arch,
|
|
System: agent.Host.System,
|
|
Hostname: agent.Host.Hostname,
|
|
Version: agent.AgentVersion,
|
|
Capabilities: agent.Capabilities,
|
|
}
|
|
}
|