@alauda-fe/common
Version:
Alauda frontend team common codes.
27 lines (26 loc) • 1.18 kB
TypeScript
import { HttpClient } from '@angular/common/http';
import { KubernetesResource, KubernetesResourceList, StringMap } from '../core/public-api';
import { K8sApiResourceService } from './k8s-api-resource.service';
import * as i0 from "@angular/core";
/**
* 对应后端组件 archon 的`通用`高级 API 实现
* 对应 API Gateway 前缀为 /acp/v1
*
* /acp/v1 包含多个 api 路径: /kubernetes, /alb, /oam, /metallb;
* 其中一部分是平台是通用的,在 libs/common 下实现。
*/
export declare class AcpCommonApiService {
private readonly httpClient;
private readonly k8sApiResource;
constructor(httpClient: HttpClient, k8sApiResource: K8sApiResourceService);
getResourcesByProject<T extends KubernetesResource>(project: string, resourceParams: {
cluster?: string;
namespace?: string;
name?: string;
type?: string;
apiGroup?: string;
apiVersion?: string;
}, queryParams?: StringMap): import("rxjs").Observable<KubernetesResourceList<T>>;
static ɵfac: i0.ɵɵFactoryDeclaration<AcpCommonApiService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AcpCommonApiService>;
}