Skip to main content

lib/util

Index

Namespaces

NamespaceDescription
auth-
units-

Interfaces

InterfaceDescription
TimeAgoOptions-

Type Aliases

Type aliasDescription
DateFormatOptions-
DateParam-

Variables

VariableDescription
CLUSTER_ACTION_GRACE_PERIOD-

Functions

FunctionDescription
compareUnits-
filterGenericFilters a generic item based on the filter state.
filterResourceFilters a resource based on the filter state.
formatDurationFormat a duration in milliseconds to a human-readable string.
getCluster-
getClusterPrefixedPath-
getPercentStr-
getReadyReplicas-
getResourceMetrics-
getResourceStr-
getTotalReplicas-
localeDate-
normalizeUnit-
timeAgoShow the time passed since the given date, in the desired format.
useErrorState-
useFilterFuncGet a function to filter kube resources based on the current global filter state.
useIdCreates a unique ID, with the given prefix. If UNDER_TEST is set to true, it will return the same ID every time, so snapshots do not get invalidated.
useURLStateA hook to manage a state variable that is also stored in the URL.