doctor

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoctorCommand

func NewDoctorCommand(
	p *config.KfParams,
	tests []DoctorTest,
	objectTests []troubleshooter.Component,
	closer ComponentCloser,
) *cobra.Command

NewDoctorCommand creates a new doctor command for the given tests. The tests will be executed in the order they appear in the list as long as they're requested by the user.

Types

type ComponentCloser

type ComponentCloser interface {
	Close(component troubleshooter.Component, resourceName string) doctor.Diagnosable
}

ComponentCloser is a function that can bind a Component to a specific object for testing.

type DoctorTest

type DoctorTest struct {
	Name string
	Test doctor.Diagnosable
}

DoctorTest represents a single high-level test. These should be roughly at the granularity of objects e.g. Apps, Service Brokers, Namespaces, and Clusters.

Jump to

Keyboard shortcuts

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