mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
In this change I used both claude code and Antigravity. --------- Signed-off-by: Bezalel Brandwine <bez@softwine.net>
30 lines
785 B
Go
30 lines
785 B
Go
package hostsensorutils
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kubescape/opa-utils/objectsenvelopes/hostsensor"
|
|
"github.com/kubescape/opa-utils/reporthandling/apis"
|
|
)
|
|
|
|
// HostSensorHandlerMock is a noop sensor when the host scanner is disabled.
|
|
type HostSensorHandlerMock struct {
|
|
}
|
|
|
|
// NewHostSensorHandlerMock yields a dummy host sensor.
|
|
func NewHostSensorHandlerMock() *HostSensorHandlerMock {
|
|
return &HostSensorHandlerMock{}
|
|
}
|
|
|
|
func (hshm *HostSensorHandlerMock) Init(_ context.Context) error {
|
|
return nil
|
|
}
|
|
|
|
func (hshm *HostSensorHandlerMock) TearDown() error {
|
|
return nil
|
|
}
|
|
|
|
func (hshm *HostSensorHandlerMock) CollectResources(_ context.Context) ([]hostsensor.HostSensorDataEnvelope, map[string]apis.StatusInfo, error) {
|
|
return []hostsensor.HostSensorDataEnvelope{}, nil, nil
|
|
}
|