# Functions
No description provided by the author
No description provided by the author
Clamp returns value itself if min < value < max; min if value < min; max if value > max.
CmpBool compares booleans, placing true before false.
CmpError compares errors, placing not nil before nil.
CmpFloat64 compares float64s, placing greater before smaller.
CmpInt32 compares int32s, placing greater before smaller.
CmpString compares strings, placing greater before smaller.
ConvertBytesToPages return pages number from bytes.
No description provided by the author
No description provided by the author
DedupStringSlice return deduplicated string slice from original.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FilterPodAnnotationKeptKeys filter keys kept in qrm state.
FormatMemoryQuantity aligned to Gi Mi Ki.
No description provided by the author
No description provided by the author
GetOneExistPath is to get one of exist paths.
GetOneExistPathUntilExist returns a path until one provided path exists.
No description provided by the author
No description provided by the author
GetSortedMapKeys returns a slice containing sorted keys for the given map.
No description provided by the author
GetUniqueLock is a wrapper function for getUniqueLockWithTimeout with default configurations.
GetValueWithDefault gets value from the given map, and returns default if key not exist.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsNameEnabled check if a specified name enabled or not.
IsPathExists is to check this path whether exists.
No description provided by the author
IsUnmarshalTypeError check whether is json unmarshal type error.
JsonPathEmpty is used to check whether the given str is empty for json-patch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MergeMap merges the contents from override into the src.
MergeMapInt merges the contents from override into the src.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAverageWithTTLSmoothWindow create a smooth window with ttl and window size, and the window size is the sample count while the ttl is the valid lifetime of each sample, and the usedMillValue means whether calculate the result with milli-value.
NewCappedSmoothWindow creates a capped SmoothWindow, which.
No description provided by the author
NewMultiSorter returns a Sorter that sorts using the cmp functions, in order.
NewPercentileWithTTLSmoothWindow create a smooth window with ttl and window size, and the window size is the sample count while the ttl is the valid lifetime of each sample, and the usedMillValue means whether calculate the result with milli-value.
No description provided by the author
ParseMapWithPrefix converts selector string to label map and validates keys and values.
No description provided by the author
No description provided by the author
ReadFileIntoInt read contents from the given file, and parse them into integer.
ReadFileIntoLines read contents from the given file, and parse them into string slice; each string indicates a line in the file.
RegisterFileEventWatcher inotify the given file and report the changed information to the caller through returned channel.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReleaseUniqueLock release the given file lock.
No description provided by the author
SetDefaultLoggingPackage should only be called by flags, and should not be alerted dynamically.
SliceContains returns true if an element is present in a slice.
No description provided by the author
No description provided by the author
SumUpMapValues accumulates total values for the given map.
SumUpMultipleMapValues accumulates total values for the given multi-level map.
ToString transform to string for better display etc.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
HealthzCheckModeHeartBeat in this mode, caller should update the check status regularly like a heartbeat, once the heartbeat stops for more than TimeoutPeriod or the state is not HealthzCheckStateReady for more than GracePeriod, this rule will be considered as unhealthy.
HealthzCheckModeReport in this mode, caller only reports the failed state when the function does not work well.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
common errors.
common errors.
NativeEndian is the native endian.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MultiSorter implements the Sort interface, sorting changes within.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
SmoothWindow is used to smooth the resource.
No description provided by the author
# Type aliases
No description provided by the author
HealthzCheckFunc defined as a common function to define whether the corresponding component is healthy.
No description provided by the author
HealthzCheckName describes which rule name for this check.
HealthzCheckState describes the checking results.
No description provided by the author
No description provided by the author