mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
28 lines
632 B
Go
28 lines
632 B
Go
package hostsensorutils
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kubescape/opa-utils/objectsenvelopes/hostsensor"
|
|
"github.com/kubescape/opa-utils/reporthandling/apis"
|
|
)
|
|
|
|
type HostSensorHandlerMock struct {
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
func (hshm *HostSensorHandlerMock) GetNamespace() string {
|
|
return ""
|
|
}
|