UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

18 lines (17 loc) 890 B
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { K8sApiService } from '../../api/k8s-api.service'; import { Project } from '../../core/public-api'; import { KubernetesResourceList, Namespace, ResourceType } from '../../core/types/public-api'; import * as i0 from "@angular/core"; export declare class ProjectService { private readonly http; private readonly k8sApi; constructor(http: HttpClient, k8sApi: K8sApiService<ResourceType>); getProjects(cluster?: string | Observable<string>, fallback?: boolean): Observable<Project[]>; getNamespacesByProjectAndCluster(project: string, cluster: string, params?: { continue?: string; }): Observable<KubernetesResourceList<Namespace>>; static ɵfac: i0.ɵɵFactoryDeclaration<ProjectService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ProjectService>; }