checks

package
v0.0.0-...-b56da86 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check interface {
	Name() string
	Run(name string, insecureTLS bool) error
	Remediate() (string, error)
}

Check abstracts the checks to be executed

type GNSS

type GNSS struct {
	Remediation Remediation
}

GNSS check

func (*GNSS) Name

func (p *GNSS) Name() string

Name returns the name of the check

func (*GNSS) Remediate

func (p *GNSS) Remediate() (string, error)

Remediate the check

func (*GNSS) Run

func (p *GNSS) Run(target string, insecureTLS bool) error

Run executes the check

type GNSSRemediation

type GNSSRemediation struct{}

GNSSRemediation is an open source remediation for GNSS check

func (GNSSRemediation) Remediate

func (a GNSSRemediation) Remediate() (string, error)

Remediate remediates the GNSS check failure

type HTTP

type HTTP struct {
	Remediation Remediation
}

HTTP check

func (*HTTP) Name

func (p *HTTP) Name() string

Name returns the name of the check

func (*HTTP) Remediate

func (p *HTTP) Remediate() (string, error)

Remediate the check

func (*HTTP) Run

func (p *HTTP) Run(target string, insecureTLS bool) error

Run executes the check

type HTTPRemediation

type HTTPRemediation struct{}

HTTPRemediation is an open source remediation for HTTP check

func (HTTPRemediation) Remediate

func (a HTTPRemediation) Remediate() (string, error)

Remediate remediates the HTTP check failure

type Module

type Module struct {
	Remediation Remediation
}

Module check

func (*Module) Name

func (m *Module) Name() string

Name returns the name of the check

func (*Module) Remediate

func (m *Module) Remediate() (string, error)

Remediate the check

func (*Module) Run

func (m *Module) Run(target string, insecureTLS bool) error

Run executes the check

type ModuleRemediation

type ModuleRemediation struct{}

ModuleRemediation is an open source remediation for Module check

func (ModuleRemediation) Remediate

func (a ModuleRemediation) Remediate() (string, error)

Remediate remediates the Module check failure

type PSU

type PSU struct {
	Remediation Remediation
}

PSU check

func (*PSU) Name

func (p *PSU) Name() string

Name returns the name of the check

func (*PSU) Remediate

func (p *PSU) Remediate() (string, error)

Remediate the check

func (*PSU) Run

func (p *PSU) Run(target string, insecureTLS bool) error

Run executes the check

type PSURemediation

type PSURemediation struct{}

PSURemediation is an open source remediation for PSU check

func (PSURemediation) Remediate

func (a PSURemediation) Remediate() (string, error)

Remediate remediates the PSU check failure

type Ping

type Ping struct {
	Remediation Remediation
}

Ping check

func (*Ping) Name

func (p *Ping) Name() string

Name returns the name of the check

func (*Ping) Remediate

func (p *Ping) Remediate() (string, error)

Remediate the check

func (*Ping) Run

func (p *Ping) Run(target string, _ bool) error

Run executes the check

type PingRemediation

type PingRemediation struct{}

PingRemediation is an open source action for Ping check

func (PingRemediation) Remediate

func (a PingRemediation) Remediate() (string, error)

Remediate remediates the Ping check failure

type Remediation

type Remediation interface {
	Remediate() (string, error)
}

Remediation interface with check remediation

Jump to

Keyboard shortcuts

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