triage

package
v0.0.0-...-2c6f1e0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: UPL-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceSymptomInfo

type ResourceSymptomInfo[T any] struct {
	Resource *T
	Symptoms []*Symptom
}

ResourceSymptomInfo has the symptoms and other info that helps in triage

func NewEventSymptomInfo

func NewEventSymptomInfo(ev *v1.Event) *ResourceSymptomInfo[v1.Event]

func NewNodeSymptomInfo

func NewNodeSymptomInfo(node *v1.Node) *ResourceSymptomInfo[v1.Node]

func NewPodSymptomInfo

func NewPodSymptomInfo(pod *v1.Pod) *ResourceSymptomInfo[v1.Pod]

func (*ResourceSymptomInfo[T]) AddSymptom

func (s *ResourceSymptomInfo[T]) AddSymptom(msg string)

type Symptom

type Symptom struct {
	Message string
}

func (*Symptom) AddMsg

func (s *Symptom) AddMsg(msg string)

type SymptomAppender

type SymptomAppender interface {
	AddMsg(msg string)
}

Jump to

Keyboard shortcuts

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