status

package
v0.0.0-...-6b231d8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DiagnosticType is type name of this Diagnostic
	DiagnosticType = "node-status"
)

Variables

This section is empty.

Functions

func NewDiagnostic

func NewDiagnostic(meta *diagnose.MetaData) diagnose.Diagnostic

NewDiagnostic return a node status diagnostic

Types

type Diagnostic

type Diagnostic struct {
	*diagnose.MetaData
	// contains filtered or unexported fields
}

Diagnostic is a example diagnostic shows how to write a diagnostic

func (*Diagnostic) Complete

func (d *Diagnostic) Complete() error

Complete check and complete config items

func (*Diagnostic) Init

func (d *Diagnostic) Init() error

Init do initialization

func (*Diagnostic) StartDiagnose

func (d *Diagnostic) StartDiagnose(ctx context.Context, param diagnose.StartDiagnoseParam) (chan *diagnose.Result, error)

StartDiagnose return a result chan that will output results

Jump to

Keyboard shortcuts

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