package
0.0.0-20250402025314-898447b66097
Repository: https://github.com/openshift/insights-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
CountLines reads the remainder of the reader and counts the number of lines.
ErrorsToStrings turns error slice to string slice.
No description provided by the author
GetClusterBaseDomain returns a base domain for the cluster.
MaxInt returns maximum value of ints.
MinInt returns minimal value of ints.
No description provided by the author
No description provided by the author
No description provided by the author
NewLineLimitReader returns a Reader that reads from `r` but stops with EOF after `n` lines.
No description provided by the author
ReadAllLinesWithPrefix reads lines from the given reader and returns those that begin with the specified prefix.
ShouldBeProcessedNow useful function for gatherers with custom period.
SortAndRemoveDuplicates sorts the slice pointed by the provided pointer given the provided less function and removes repeated elements.
StringInSlice simply checks if the string is present in slice.
No description provided by the author
TakeLastNItemsFromByteArray takes last N items from provided byte array or adds zeros to the beginning if there not enough space.
UniqueErrors filters out the duplicates in the input slice of errors and returns a single error when the error strings are joined by comma character.
UniqueStrings returns a new string slice where each element exists maximum once, the order of items is preserved (e.g.

# Variables

MetricsLineSep is the line separator used by the alerts metric.

# Structs

A LineLimitedReader reads from R but limits the amount of data returned to just N lines.