UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

20 lines (19 loc) 863 B
/** * @packageDocumentation * @module k8s-resource-list */ import { ActivatedRoute } from '@angular/router'; import { Observable } from 'rxjs'; import { ResourceListParams, StringMap, LabelSelectorRequirement } from '../core/public-api'; /** * convert selector.matchLabels to string * refers to: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api */ export declare function matchLabelsToString(params?: StringMap): string; /** * convert string to selector.matchLabels */ export declare function stringToMatchLabels(str?: string): Record<string, string>; export declare function matchExpressionsToString(params: LabelSelectorRequirement[]): string; export declare function extractListParamsFromRoute(route: ActivatedRoute): Observable<ResourceListParams>; export declare function normalizeParams<P extends object>(params: P): P;