mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-04 02:30:29 +00:00
16 lines
378 B
Go
16 lines
378 B
Go
package hostsensorutils
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kubescape/opa-utils/objectsenvelopes/hostsensor"
|
|
"github.com/kubescape/opa-utils/reporthandling/apis"
|
|
)
|
|
|
|
type IHostSensor interface {
|
|
Init(ctx context.Context) error
|
|
TearDown() error
|
|
CollectResources(context.Context) ([]hostsensor.HostSensorDataEnvelope, map[string]apis.StatusInfo, error)
|
|
GetNamespace() string
|
|
}
|