-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor get_resource and get_resource_version for multiple hub support
No functionality change in this PR. Prior to this change, the Hub CLI supports only 1 type of Hub (Tekton Hub). This commit 1) refactors the `ResourceResult` and `ResourceVersionResult` to interfaces; 2) creates THResourceResult and THResourceVersionResult structs implementing the interfaces, keeping original support for Tekton Hub; 3) creates AHResourceResult and AHResourceVersionResult for Artifact Hub, implementations will be added in later PRs.
- Loading branch information
1 parent
0762ee1
commit b3b8ff3
Showing
2 changed files
with
148 additions
and
89 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