doctor

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Overview

Package doctor contains more in-depth healthchecks that can be run to aid in diagnosing Tailscale issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks(ctx context.Context, log logger.Logf, checks ...Check)

RunChecks runs a list of checks in parallel, and logs any returned errors after all checks have returned.

Types

type Check

type Check interface {
	// Name should return a name describing this check, in lower-kebab-case
	// (i.e. "my-check", not "MyCheck" or "my_check").
	Name() string
	// Run executes the check, logging diagnostic information to the
	// provided logger function.
	Run(context.Context, logger.Logf) error
}

Check is the interface defining a singular check.

A check should log information that it gathers using the provided log function, and should attempt to make as much progress as possible in error conditions.

func CheckFunc

func CheckFunc(name string, run func(context.Context, logger.Logf) error) Check

CheckFunc creates a Check from a name and a function.

Directories

Path Synopsis
Package ethtool provides a doctor.Check that prints diagnostic information obtained from the 'ethtool' utility on the current system.
Package ethtool provides a doctor.Check that prints diagnostic information obtained from the 'ethtool' utility on the current system.
Package permissions provides a doctor.Check that prints the process permissions for the running process.
Package permissions provides a doctor.Check that prints the process permissions for the running process.
Package routetable provides a doctor.Check that dumps the current system's route table to the log.
Package routetable provides a doctor.Check that dumps the current system's route table to the log.

Jump to

Keyboard shortcuts

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