probes

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(name string, impl ProbeImpl, requiredRawData []checknames.CheckName)

func MustRegisterIndependent

func MustRegisterIndependent(name string, impl IndependentProbeImpl)

Types

type IndependentProbeImpl

type IndependentProbeImpl func(*checker.CheckRequest) ([]finding.Finding, string, error)

type Probe

type Probe struct {
	Name                      string
	Implementation            ProbeImpl
	IndependentImplementation IndependentProbeImpl
	RequiredRawData           []checknames.CheckName
}

func Get

func Get(name string) (Probe, error)

type ProbeImpl

type ProbeImpl func(*checker.RawResults) ([]finding.Finding, string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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