UNPKG

@aonic-ui/pipelines

Version:

The common library for all the components and utils related to Pipelines.

21 lines 2.34 kB
import { PipelineRunKind, TaskRunKind } from '../types'; import { DataType, RecordsList, TektonResultsOptions } from '../types/tekton-results'; import { FetchUtilsType, K8sResourceCommon, MatchExpression, MatchLabels, Selector, TektonConfiguration } from '../types/k8s'; export declare const decodeValue: (value: string) => string; export declare const decodeValueJson: (value: string) => any; export declare const AND: (...expressions: string[]) => string; export declare const OR: (...expressions: string[]) => string; export declare const EQ: (left: string, right: string) => string; export declare const NEQ: (left: string, right: string) => string; export declare const labelsToFilter: (labels?: MatchLabels) => string; export declare const nameFilter: (name?: string) => string; export declare const expressionsToFilter: (expressions: Omit<MatchExpression, 'value'>[]) => string; export declare const selectorToFilter: (selector: Selector) => string; export declare const clearCache: () => void; export declare const createTektonResultsUrl: (namespace: string, dataType: DataType, filter?: string, options?: TektonResultsOptions, nextPageToken?: string, tektonResultsBaseURL?: string) => Promise<string>; export declare const getFilteredRecord: <R extends K8sResourceCommon>(namespace: string, dataType: DataType, tektonResultsBaseURL: string, fetchUtils: FetchUtilsType, filter?: string, options?: TektonResultsOptions, nextPageToken?: string, cacheKey?: string) => Promise<[R[], RecordsList, (boolean | undefined)?]>; export declare const getPipelineRuns: (namespace: string, config: TektonConfiguration, options?: TektonResultsOptions, nextPageToken?: string, cacheKey?: string) => Promise<[PipelineRunKind[], RecordsList, (boolean | undefined)?]>; export declare const getTaskRuns: (namespace: string, config: TektonConfiguration, options?: TektonResultsOptions, nextPageToken?: string, cacheKey?: string) => Promise<[TaskRunKind[], RecordsList, (boolean | undefined)?]>; export declare const createTektonResultsSummaryUrl: (namespace: string, tektonResultsBaseURL: string, options?: TektonResultsOptions, nextPageToken?: string) => Promise<string>; export declare const getTaskRunLog: (namespace: string, taskRunName: string, config: TektonConfiguration) => Promise<string>; //# sourceMappingURL=tekton-results-utils.d.ts.map