Documentation
¶
Index ¶
Constants ¶
View Source
const EventRelevanceTime = 1800 * time.Second
EventRelevanceTime is the time in which events are relevant for us
View Source
const HeaderChar = "="
HeaderChar is the header char used
View Source
const HeaderWidth = 80
HeaderWidth is the width of the header
View Source
const IgnoreRestartsSince = time.Hour * 2
IgnoreRestartsSince if they happened 2 hours or later ago
View Source
const MinimumPodAge = 10 * time.Second
MinimumPodAge is the minimum amount of time that a pod should be old
View Source
const PaddingLeft = 2
PaddingLeft is the left padding of the report
View Source
const WaitTimeout = 120 * time.Second
WaitTimeout is the amount of time to wait for a pod to start
Variables ¶
This section is empty.
Functions ¶
func ReportToString ¶
func ReportToString(report []*ReportItem) string
ReportToString transforms a report to a string
Types ¶
type Analyzer ¶
type Analyzer interface {
Analyze(namespace string, noWait bool) error
CreateReport(namespace string, noWait bool) ([]*ReportItem, error)
}
Analyzer is the interface for analyzing
type ReportItem ¶
ReportItem is the struct that holds the problems
Click to show internal directories.
Click to hide internal directories.