scanner

package
Version: v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitModules

func InitModules() error

func RegisterFileScanner

func RegisterFileScanner(s FileScanner)

RegisterFileScanner is called by a file scanner module's init() function to register the module so that it is called via the ScanFile function

func RegisterSystemScanner

func RegisterSystemScanner(s SystemScanner)

RegisterSystemScanner is called by a system scanner module's init() function to register the module so that it is called via the ScanSystem function

func ScanFile

func ScanFile(f afero.File) (err error)

func ScanSystem

func ScanSystem() (err error)

Types

type FileScanner

type FileScanner interface {
	Name() string
	Init() error
	ScanFile(afero.File) error
}

FileScanner scans are run after SystemScanner scans. The Scan method is run for every file.

type SystemScanner

type SystemScanner interface {
	Name() string
	Init() error
	Scan() error
}

SystemScanner scans are run right after Spyre initialization. They are desgined to check for "simple" queryable facts such as Mutexes etc.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL