intf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailedResult

type FailedResult struct {
	Name   string `json:"name"`
	Reason string `json:"reason"`
}

FailedResult is the result returned by a plugin if it fails to perform the diagnosis for any reason.

type Plugin

type Plugin interface {
	// Name returns the name of the plugin
	Name() string
	// Diagnose performs diagnosis and returns the result. If it fails
	// to do the diagnosis for any reason, it gets the detailed reason
	// included in the diagnosis result.
	Diagnose() any
}

Jump to

Keyboard shortcuts

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