diagnose

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 26 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 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 WithPollGPMEvents

func WithPollGPMEvents(b bool) OpOption

func WithPollXidEvents

func WithPollXidEvents(b bool) OpOption

Jump to

Keyboard shortcuts

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