scan

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package scan provides system scanning functionality for Fleet Intelligence monitoring. This implementation is based on the upstream gpud scan package but maintained independently to give fleetint full control over the scanning behavior.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(ctx context.Context, opts ...Option) error

Scan performs a comprehensive system scan to detect any major issues with Fleet Intelligence, infiniband connectivity, NFS mounts, and other critical components. It returns an error if the scan fails to execute, but prints warnings for detected issues.

Types

type Op

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

Op holds the configuration for a scan operation.

type Option

type Option func(*Op)

Option represents a functional option for configuring the scan operation.

func WithDebug

func WithDebug(b bool) Option

WithDebug enables debug mode for the scan operation.

func WithFailureInjector

func WithFailureInjector(injector *components.FailureInjector) Option

WithFailureInjector sets the failure injector for testing purposes.

func WithInfinibandClassRootDir

func WithInfinibandClassRootDir(p string) Option

WithInfinibandClassRootDir specifies the root directory of the InfiniBand class.

Jump to

Keyboard shortcuts

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