validator

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrNotFullCoverage

type ErrNotFullCoverage struct {
	Measured    types.References
	NonMeasured types.References
}

func (ErrNotFullCoverage) Error

func (e ErrNotFullCoverage) Error() string

type Issue

type Issue struct {
	StepIdx uint
	bootengine.StepIssue
}

Issue is a single problem reported by a Validator.

func (Issue) String

func (issue Issue) String() string

String implements fmt.Stringer.

type Issues

type Issues []Issue

Issues is a slice of Issue-s.

type Validator

type Validator interface {
	Validate(context.Context, *types.State, bootengine.Log) Issues
}

Validator is an abstract validator, which checks if there are any problems in a boot process (using its log after the boot process finished).

type ValidatorActorsAreProtected

type ValidatorActorsAreProtected struct{}

ValidatorActorsAreProtected validates if the code of an Actor is protected, before the Actor is executed.

func (ValidatorActorsAreProtected) Validate

Validate implements Validator.

type ValidatorFinalCoverageIsComplete

type ValidatorFinalCoverageIsComplete struct{}

ValidatorFinalCoverageIsComplete check if all PE32 files are protected.

func (ValidatorFinalCoverageIsComplete) Validate

Validate implements Validator.

type ValidatorNoIssues

type ValidatorNoIssues struct{}

ValidatorNoIssues validates if there were no issues while processing the boot flow.

func (ValidatorNoIssues) Validate

Validate implements Validator.

type Validators

type Validators []Validator

Validators is a slice of Validator-s

func All

func All() Validators

All returns a copy to all known Validator-s.

func (Validators) Validate

func (vs Validators) Validate(ctx context.Context, s *types.State, l bootengine.Log) Issues

Validate implements Validator.

Jump to

Keyboard shortcuts

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