diagnoses

package
v0.0.0-...-8cb7df0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package diagnoses implements the diagnosis collection for NDM resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnoses

type Diagnoses struct {
	// contains filtered or unexported fields
}

Diagnoses hold diagnoses for a NDM resource

func NewDeviceDiagnoses

func NewDeviceDiagnoses(deviceID string) *Diagnoses

NewDeviceDiagnoses returns a new Diagnoses for a NDM device resource

func (*Diagnoses) Add

func (d *Diagnoses) Add(result string, code string, message string)

Add adds a diagnoses

func (*Diagnoses) Report

func (d *Diagnoses) Report() []metadata.DiagnosisMetadata

Report returns diagnosis metadata

func (*Diagnoses) ReportAsAgentDiagnoses

func (d *Diagnoses) ReportAsAgentDiagnoses() []diagnosis.Diagnosis

ReportAsAgentDiagnoses converts diagnoses to Agent diagnose CLI format

Jump to

Keyboard shortcuts

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