lynis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ScannerName = "lynis"

Variables

This section is empty.

Functions

func New

func New(c job_manager.IsConfig, logger *log.Entry, resultChan chan job_manager.Result) job_manager.Job

Types

type DBTestEntry

type DBTestEntry struct {
	Category    string
	Description string
}

type ReportParser

type ReportParser struct {
	// contains filtered or unexported fields
}

func NewReportParser

func NewReportParser(testdb *TestDB) *ReportParser

func (*ReportParser) ParseLynisReport

func (a *ReportParser) ParseLynisReport(scanPath string, reportPath string) ([]types.Misconfiguration, error)

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func (*Scanner) Run

func (a *Scanner) Run(sourceType utils.SourceType, userInput string) error

type TestDB

type TestDB struct {
	// contains filtered or unexported fields
}

func NewTestDB

func NewTestDB(logger *log.Entry, lynisInstallPath string) (*TestDB, error)

func (*TestDB) GetCategoryForTestID

func (a *TestDB) GetCategoryForTestID(testid string) string

func (*TestDB) GetDescriptionForTestID

func (a *TestDB) GetDescriptionForTestID(testid string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL