UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

32 lines (31 loc) 1.33 kB
/** * @packageDocumentation * @module common-layout */ import { OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { KubernetesResource, K8sUtilService, ProductEntry } from '../../../core/public-api'; import { CommonLayoutContextService } from './context.service'; import * as i0 from "@angular/core"; export interface Group { cluster: KubernetesResource; namespaces: KubernetesResource[]; } export declare class CommonLayoutStoreService implements OnDestroy { private readonly context; private readonly k8sUtil; private readonly fetch$; private readonly projects$; private readonly products$; private readonly subscriptions; constructor(context: CommonLayoutContextService, k8sUtil: K8sUtilService); ngOnDestroy(): void; refetch(): void; selectAllProducts(): Observable<ProductEntry[]>; selectProductByName(name: string): Observable<ProductEntry>; selectAllProjects(): Observable<KubernetesResource[]>; selectProjectByName(name: string): Observable<KubernetesResource>; selectNamespacesByProjectName(name: string): Observable<Array<[KubernetesResource, KubernetesResource[]]>>; static ɵfac: i0.ɵɵFactoryDeclaration<CommonLayoutStoreService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CommonLayoutStoreService>; }