-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
- Loading branch information
Showing
22 changed files
with
749 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*----------------------------------------------------------------------------------------------- | ||
* Copyright (c) Red Hat, Inc. All rights reserved. | ||
* Licensed under the MIT License. See LICENSE file in the project root for license information. | ||
*-----------------------------------------------------------------------------------------------*/ | ||
|
||
import { ResourceData, ResourceVersionData } from '../tekton-hub-client/api'; | ||
|
||
export interface HubTaskInstallation { | ||
url: string; | ||
name: string; | ||
tknVersion?: string; | ||
minPipelinesVersion?: string; | ||
asClusterTask: boolean; | ||
taskVersion?: ResourceVersionData; | ||
} | ||
|
||
export interface HubTaskUninstall { | ||
name: string; | ||
clusterTask: boolean; | ||
} | ||
|
||
export interface InstalledTask extends ResourceData { | ||
installedVersion?: ResourceVersionData; | ||
clusterTask?: boolean; | ||
} | ||
|
||
export type HubTask = InstalledTask | ResourceData | ||
|
||
export function isInstalledTask(task: HubTask): task is InstalledTask { | ||
return (task as InstalledTask).installedVersion !== undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.