mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 14:25:16 +03:00
26 lines
558 B
Go
26 lines
558 B
Go
package agent_service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/lorsanstand/HomeOps-Hub/shared/domain"
|
|
)
|
|
|
|
type CollectorMock struct {
|
|
host domain.HostInfo
|
|
caps []domain.Capability
|
|
}
|
|
|
|
func (c *CollectorMock) GatherInfoSystem() (domain.HostInfo, []domain.Capability) {
|
|
return c.host, c.caps
|
|
}
|
|
|
|
type ConnectionMock struct {
|
|
regAgentErr error
|
|
regResp domain.RegisterAgentResponse
|
|
}
|
|
|
|
func (c *ConnectionMock) RegisterAgent(ctx context.Context, RegisterData domain.RegisterAgentRequest) (domain.RegisterAgentResponse, error) {
|
|
return c.regResp, c.regAgentErr
|
|
}
|