lib/util
Index
Namespaces
| Namespace | Description |
|---|---|
| auth | - |
| units | - |
Interfaces
| Interface | Description |
|---|---|
| TimeAgoOptions | - |
Type Aliases
| Type alias | Description |
|---|---|
| DateFormatOptions | - |
| DateParam | - |
Variables
| Variable | Description |
|---|---|
| CLUSTER_ACTION_GRACE_PERIOD | - |
Functions
| Function | Description |
|---|---|
| combineClusterListErrors | Combines errors per cluster. |
| compareUnits | - |
| filterGeneric | Filters a generic item based on the filter state. |
| filterResource | Filters a resource based on the filter state. |
| flattenClusterListItems | This function joins a list of items per cluster into a single list of items. |
| formatDuration | Format a duration in milliseconds to a human-readable string. |
| getCluster | Get the currently selected cluster name. |
| getClusterGroup | Gets clusters. |
| getClusterPrefixedPath | - |
| getPercentStr | - |
| getReadyReplicas | - |
| getResourceMetrics | - |
| getResourceStr | - |
| getTotalReplicas | - |
| localeDate | - |
| normalizeUnit | - |
| timeAgo | Show the time passed since the given date, in the desired format. |
| useErrorState | - |
| useFilterFunc | Get a function to filter kube resources based on the current global filter state. |
| useId | Creates 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. |
| useURLState | A hook to manage a state variable that is also stored in the URL. |