diagnose

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package diagnose provides a way to diagnose the system and components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts ...OpOption) error

func Scan

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

Runs the scan operations.

Types

type CommandResult

type CommandResult struct {
	Command string `json:"command"`
	Error   string `json:"error,omitempty"`
}

type Op

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

type OpOption

type OpOption func(*Op)

func WithCreateArchive

func WithCreateArchive(b bool) OpOption

func WithDebug

func WithDebug(b bool) OpOption

func WithDiskcheck added in v0.3.5

func WithDiskcheck(b bool) OpOption

func WithDmesgCheck added in v0.4.0

func WithDmesgCheck(b bool) OpOption

func WithIbstatCommand added in v0.4.0

func WithIbstatCommand(p string) OpOption

Specifies the ibstat binary path to overwrite the default path.

func WithInfinibandClassDirectory added in v0.4.0

func WithInfinibandClassDirectory(p string) OpOption

func WithLines

func WithLines(lines int) OpOption

func WithNetcheck added in v0.1.0

func WithNetcheck(b bool) OpOption

WithNetcheck enables network connectivity checks to global edge/derp servers.

func WithNvidiaSMICommand added in v0.4.0

func WithNvidiaSMICommand(p string) OpOption

Specifies the nvidia-smi binary path to overwrite the default path.

func WithNvidiaSMIQueryCommand added in v0.4.0

func WithNvidiaSMIQueryCommand(p string) OpOption

func WithPollGPMEvents

func WithPollGPMEvents(b bool) OpOption

Jump to

Keyboard shortcuts

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