Documentation ¶
Index ¶
- Variables
- func DoScan(scanID string, hostMountPath string, ExtractorConfig cfg.Config, ...)
- func RunGrpcServer(ctx context.Context, socketPath string, impl any, ...) error
- type GRPCScannerServer
- func (s *GRPCScannerServer) GetName(context.Context, *pb.Empty) (*pb.Name, error)
- func (s *GRPCScannerServer) GetUID(context.Context, *pb.Empty) (*pb.Uid, error)
- func (s *GRPCScannerServer) ReportJobsStatus(context.Context, *pb.Empty) (*pb.JobReports, error)
- func (s *GRPCScannerServer) StopScan(c context.Context, req *pb.StopScanRequest) (*pb.StopScanResult, error)
- type MalwareRPCServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MalwareScanDir = "/" HostMountDir = "/fenced/mnt/host" )
Functions ¶
func RunGrpcServer ¶
Types ¶
type GRPCScannerServer ¶
type GRPCScannerServer struct {
HostMountPath, SocketPath string
InactiveThreshold int
ExtractorConfig cfg.Config
YaraRules *yararules.YaraRules
pb.UnimplementedAgentPluginServer
pb.UnimplementedScannersServer
ScanMap sync.Map
// contains filtered or unexported fields
}
func NewGRPCScannerServer ¶
func (*GRPCScannerServer) ReportJobsStatus ¶
func (s *GRPCScannerServer) ReportJobsStatus(context.Context, *pb.Empty) (*pb.JobReports, error)
func (*GRPCScannerServer) StopScan ¶
func (s *GRPCScannerServer) StopScan(c context.Context, req *pb.StopScanRequest) (*pb.StopScanResult, error)
type MalwareRPCServer ¶
type MalwareRPCServer struct { *GRPCScannerServer pb.UnimplementedMalwareScannerServer }
func (*MalwareRPCServer) FindMalwareInfo ¶
func (s *MalwareRPCServer) FindMalwareInfo(c context.Context, r *pb.MalwareRequest) (*pb.MalwareResult, error)
Click to show internal directories.
Click to hide internal directories.