UNPKG

@alauda-fe/custom-resource-quota

Version:

custom resource

20 lines (19 loc) 868 B
import { StringMap, Workspace } from '@alauda-fe/common'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ResourceQuota } from './types'; import * as i0 from "@angular/core"; export declare class CustomResourceQuotaService { httpClient: HttpClient; private readonly k8sUtil; private readonly k8sApi; private readonly resourceQuota$Cache; getResourceQuota$(cluster: string, namespace: string): Observable<{ resourceQuota: ResourceQuota; customResourceConfigs: StringMap[]; }>; getAvailableCustomResourceKeysInNodes(workspace: Workspace): Observable<string[]>; removeCache(cluster: string, namespace: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<CustomResourceQuotaService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CustomResourceQuotaService>; }