checks

package
v0.0.0-...-70f6bb7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AntivirusProduct

type AntivirusProduct struct {
	DisplayName              string      `json:"displayName"`
	InstanceGuid             string      `json:"instanceGuid"`
	PathToSignedProductExe   string      `json:"pathToSignedProductExe"`
	PathToSignedReportingExe string      `json:"pathToSignedReportingExe"`
	ProductState             json.Number `json:"productState"`
	Timestamp                string      `json:"timestamp"`
}

type AutomaticUpdatesCheck

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

func (*AutomaticUpdatesCheck) FailedMessage

func (a *AutomaticUpdatesCheck) FailedMessage() string

func (*AutomaticUpdatesCheck) IsRunnable

func (a *AutomaticUpdatesCheck) IsRunnable() bool

func (*AutomaticUpdatesCheck) Name

func (a *AutomaticUpdatesCheck) Name() string

func (*AutomaticUpdatesCheck) Passed

func (a *AutomaticUpdatesCheck) Passed() bool

func (*AutomaticUpdatesCheck) PassedMessage

func (a *AutomaticUpdatesCheck) PassedMessage() string

func (*AutomaticUpdatesCheck) RequiresRoot

func (a *AutomaticUpdatesCheck) RequiresRoot() bool

func (*AutomaticUpdatesCheck) Run

func (a *AutomaticUpdatesCheck) Run() error

func (*AutomaticUpdatesCheck) Status

func (a *AutomaticUpdatesCheck) Status() string

func (*AutomaticUpdatesCheck) UUID

func (a *AutomaticUpdatesCheck) UUID() string

type DiskEncryption

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

func (*DiskEncryption) FailedMessage

func (d *DiskEncryption) FailedMessage() string

FailedMessage returns the message to return if the check failed

func (*DiskEncryption) IsRunnable

func (d *DiskEncryption) IsRunnable() bool

IsRunnable returns whether the check can run

func (*DiskEncryption) Name

func (d *DiskEncryption) Name() string

Name returns the name of the check

func (*DiskEncryption) Passed

func (d *DiskEncryption) Passed() bool

Passed returns the status of the check

func (*DiskEncryption) PassedMessage

func (d *DiskEncryption) PassedMessage() string

PassedMessage returns the message to return if the check passed

func (*DiskEncryption) RequiresRoot

func (d *DiskEncryption) RequiresRoot() bool

RequiresRoot returns whether the check requires root access

func (*DiskEncryption) Run

func (d *DiskEncryption) Run() error

Run executes the check

func (*DiskEncryption) Status

func (d *DiskEncryption) Status() string

Status returns the status of the check

func (*DiskEncryption) UUID

func (d *DiskEncryption) UUID() string

UUID returns the UUID of the check

type EDRProduct

type EDRProduct struct {
	Name         string
	Processes    []string
	Services     []string
	RegistryKeys []string
	InstallPaths []string
}

type PasswordManagerCheck

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

func (*PasswordManagerCheck) FailedMessage

func (pmc *PasswordManagerCheck) FailedMessage() string

func (*PasswordManagerCheck) IsRunnable

func (pmc *PasswordManagerCheck) IsRunnable() bool

func (*PasswordManagerCheck) Name

func (pmc *PasswordManagerCheck) Name() string

func (*PasswordManagerCheck) Passed

func (pmc *PasswordManagerCheck) Passed() bool

func (*PasswordManagerCheck) PassedMessage

func (pmc *PasswordManagerCheck) PassedMessage() string

func (*PasswordManagerCheck) RequiresRoot

func (pmc *PasswordManagerCheck) RequiresRoot() bool

func (*PasswordManagerCheck) Run

func (pmc *PasswordManagerCheck) Run() error

func (*PasswordManagerCheck) Status

func (pmc *PasswordManagerCheck) Status() string

func (*PasswordManagerCheck) UUID

func (pmc *PasswordManagerCheck) UUID() string

type ScreensaverPassword

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

ScreensaverPassword checks if password is required after sleep or screen off on Windows

func (*ScreensaverPassword) FailedMessage

func (p *ScreensaverPassword) FailedMessage() string

FailedMessage returns the message for when the check fails

func (*ScreensaverPassword) IsRunnable

func (p *ScreensaverPassword) IsRunnable() bool

IsRunnable returns whether this check can run on the current platform

func (*ScreensaverPassword) Name

func (p *ScreensaverPassword) Name() string

Name returns the check name

func (*ScreensaverPassword) Passed

func (p *ScreensaverPassword) Passed() bool

Passed returns whether the check passed

func (*ScreensaverPassword) PassedMessage

func (p *ScreensaverPassword) PassedMessage() string

PassedMessage returns the message for when the check passes

func (*ScreensaverPassword) RequiresRoot

func (p *ScreensaverPassword) RequiresRoot() bool

RequiresRoot returns whether this check needs elevated privileges

func (*ScreensaverPassword) Run

func (p *ScreensaverPassword) Run() error

Run executes the check

func (*ScreensaverPassword) Status

func (p *ScreensaverPassword) Status() string

Status returns the detailed status message

func (*ScreensaverPassword) UUID

func (p *ScreensaverPassword) UUID() string

UUID returns the unique identifier for this check (same as macOS PasswordAfterSleep)

type ScreensaverTimeout

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

ScreensaverTimeout checks if screen turns off or device sleeps within 20 minutes on Windows

func (*ScreensaverTimeout) FailedMessage

func (s *ScreensaverTimeout) FailedMessage() string

FailedMessage returns the message for when the check fails

func (*ScreensaverTimeout) IsRunnable

func (s *ScreensaverTimeout) IsRunnable() bool

IsRunnable returns whether this check can run on the current platform

func (*ScreensaverTimeout) Name

func (s *ScreensaverTimeout) Name() string

Name returns the check name

func (*ScreensaverTimeout) Passed

func (s *ScreensaverTimeout) Passed() bool

Passed returns whether the check passed

func (*ScreensaverTimeout) PassedMessage

func (s *ScreensaverTimeout) PassedMessage() string

PassedMessage returns the message for when the check passes

func (*ScreensaverTimeout) RequiresRoot

func (s *ScreensaverTimeout) RequiresRoot() bool

RequiresRoot returns whether this check needs elevated privileges

func (*ScreensaverTimeout) Run

func (s *ScreensaverTimeout) Run() error

Run executes the check

func (*ScreensaverTimeout) Status

func (s *ScreensaverTimeout) Status() string

Status returns the detailed status message

func (*ScreensaverTimeout) UUID

func (s *ScreensaverTimeout) UUID() string

UUID returns the unique identifier for this check (same as macOS)

type WindowsDefender

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

func (*WindowsDefender) FailedMessage

func (d *WindowsDefender) FailedMessage() string

func (*WindowsDefender) IsRunnable

func (d *WindowsDefender) IsRunnable() bool

func (*WindowsDefender) Name

func (d *WindowsDefender) Name() string

func (*WindowsDefender) Passed

func (d *WindowsDefender) Passed() bool

func (*WindowsDefender) PassedMessage

func (d *WindowsDefender) PassedMessage() string

func (*WindowsDefender) RequiresRoot

func (d *WindowsDefender) RequiresRoot() bool

func (*WindowsDefender) Run

func (d *WindowsDefender) Run() error

func (*WindowsDefender) Status

func (d *WindowsDefender) Status() string

func (*WindowsDefender) UUID

func (d *WindowsDefender) UUID() string

type WindowsFirewall

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

func (*WindowsFirewall) FailedMessage

func (f *WindowsFirewall) FailedMessage() string

func (*WindowsFirewall) IsRunnable

func (f *WindowsFirewall) IsRunnable() bool

func (*WindowsFirewall) Name

func (f *WindowsFirewall) Name() string

func (*WindowsFirewall) Passed

func (f *WindowsFirewall) Passed() bool

func (*WindowsFirewall) PassedMessage

func (f *WindowsFirewall) PassedMessage() string

func (*WindowsFirewall) RequiresRoot

func (f *WindowsFirewall) RequiresRoot() bool

func (*WindowsFirewall) Run

func (f *WindowsFirewall) Run() error

func (*WindowsFirewall) Status

func (f *WindowsFirewall) Status() string

func (*WindowsFirewall) UUID

func (f *WindowsFirewall) UUID() string

Jump to

Keyboard shortcuts

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