plugins: generate api reports

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-17 11:00:16 +02:00
parent 5429bfa69e
commit d8d7226fce
54 changed files with 5209 additions and 0 deletions
+197
View File
@@ -0,0 +1,197 @@
## API Report File for "@backstage/plugin-gitops-profiles"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { ApiRef } from '@backstage/core';
import { BackstagePlugin } from '@backstage/core';
import { RouteRef } from '@backstage/core';
// @public (undocumented)
export interface ApplyProfileRequest {
// (undocumented)
gitHubToken: string;
// (undocumented)
gitHubUser: string;
// (undocumented)
profiles: string[];
// (undocumented)
targetOrg: string;
// (undocumented)
targetRepo: string;
}
// @public (undocumented)
export interface ChangeClusterStateRequest {
// (undocumented)
clusterState: 'present' | 'absent';
// (undocumented)
gitHubToken: string;
// (undocumented)
gitHubUser: string;
// (undocumented)
targetOrg: string;
// (undocumented)
targetRepo: string;
}
// @public (undocumented)
export interface CloneFromTemplateRequest {
// (undocumented)
gitHubToken: string;
// (undocumented)
gitHubUser: string;
// (undocumented)
secrets: {
awsAccessKeyId: string;
awsSecretAccessKey: string;
};
// (undocumented)
targetOrg: string;
// (undocumented)
targetRepo: string;
// (undocumented)
templateRepository: string;
}
// @public (undocumented)
export interface ClusterStatus {
// (undocumented)
conclusion: string;
// (undocumented)
link: string;
// (undocumented)
name: string;
// (undocumented)
runStatus: Status[];
// (undocumented)
status: string;
}
// @public (undocumented)
export class FetchError extends Error {
// (undocumented)
static forResponse(resp: Response): Promise<FetchError>;
// (undocumented)
get name(): string;
}
// @public (undocumented)
export interface GithubUserInfoRequest {
// (undocumented)
accessToken: string;
}
// @public (undocumented)
export interface GithubUserInfoResponse {
// (undocumented)
login: string;
}
// @public (undocumented)
export type GitOpsApi = {
url: string;
fetchLog(req: PollLogRequest): Promise<StatusResponse>;
changeClusterState(req: ChangeClusterStateRequest): Promise<any>;
cloneClusterFromTemplate(req: CloneFromTemplateRequest): Promise<any>;
applyProfiles(req: ApplyProfileRequest): Promise<any>;
listClusters(req: ListClusterRequest): Promise<ListClusterStatusesResponse>;
fetchUserInfo(req: GithubUserInfoRequest): Promise<GithubUserInfoResponse>;
};
// @public (undocumented)
export const gitOpsApiRef: ApiRef<GitOpsApi>;
// @public (undocumented)
export const GitopsProfilesClusterListPage: () => JSX.Element;
// @public (undocumented)
export const GitopsProfilesClusterPage: () => JSX.Element;
// @public (undocumented)
export const GitopsProfilesCreatePage: () => JSX.Element;
// @public (undocumented)
const gitopsProfilesPlugin: BackstagePlugin<{
listPage: RouteRef<undefined>;
detailsPage: RouteRef<{
owner: string;
repo: string;
}>;
createPage: RouteRef<undefined>;
}, {}>;
export { gitopsProfilesPlugin }
export { gitopsProfilesPlugin as plugin }
// @public (undocumented)
export class GitOpsRestApi implements GitOpsApi {
constructor(url?: string);
// (undocumented)
applyProfiles(req: ApplyProfileRequest): Promise<any>;
// (undocumented)
changeClusterState(req: ChangeClusterStateRequest): Promise<any>;
// (undocumented)
cloneClusterFromTemplate(req: CloneFromTemplateRequest): Promise<any>;
// (undocumented)
fetchLog(req: PollLogRequest): Promise<StatusResponse>;
// (undocumented)
fetchUserInfo(req: GithubUserInfoRequest): Promise<GithubUserInfoResponse>;
// (undocumented)
listClusters(req: ListClusterRequest): Promise<ListClusterStatusesResponse>;
// (undocumented)
url: string;
}
// @public (undocumented)
export interface ListClusterRequest {
// (undocumented)
gitHubToken: string;
// (undocumented)
gitHubUser: string;
}
// @public (undocumented)
export interface ListClusterStatusesResponse {
// (undocumented)
result: ClusterStatus[];
}
// @public (undocumented)
export interface PollLogRequest {
// (undocumented)
gitHubToken: string;
// (undocumented)
gitHubUser: string;
// (undocumented)
targetOrg: string;
// (undocumented)
targetRepo: string;
}
// @public (undocumented)
export interface Status {
// (undocumented)
conclusion: string;
// (undocumented)
message: string;
// (undocumented)
status: string;
}
// @public (undocumented)
export interface StatusResponse {
// (undocumented)
link: string;
// (undocumented)
result: Status[];
// (undocumented)
status: string;
}
// (No @packageDocumentation comment for this package)
```