Repository navigation
feat: add fetch command to get manifest of an artifact - #449
Merged
Merged
Conversation
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
qweeah
marked this pull request as draft
July 18, 2022 14:14
Contributor
Author
|
|
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
sajayantony
reviewed
Jul 19, 2022
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
qweeah
marked this pull request as ready for review
July 20, 2022 03:04
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
binbin-li
reviewed
Jul 22, 2022
Signed-off-by: Billy Zha <[email protected]>
fetch command to get manifest conent of an artifactfetch command to get manifest of an artifact
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
qweeah
marked this pull request as ready for review
August 15, 2022 07:15
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
shizhMSFT
reviewed
Aug 15, 2022
| "oras.land/oras/cmd/oras/internal/option" | ||
| ) | ||
|
|
||
| func Cmd() *cobra.Command { |
Contributor
There was a problem hiding this comment.
Should we call it Command()?
| Use: "fetch [flags] <name:tag|name@digest>", | ||
| Short: "[Preview] Fetch manifest of the target artifact", | ||
| Long: `[Preview] Fetch manifest of the target artifact | ||
| ** This command is in preview and under development. ** |
Contributor
There was a problem hiding this comment.
An example for --descriptor would be better.
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
Signed-off-by: Billy Zha <[email protected]>
TerryHowe
pushed a commit
to TerryHowe/oras
that referenced
this pull request
Feb 2, 2023
…t#449) Signed-off-by: Billy Zha <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an new command
manifestand a subcommandfetchfor displaying the manifest of an artifact reference with below changes:Moves
manifestrelated code into a new folder. Cobra related code should be put in thecmd.goand functional code should be put in the<sub-command-name>.go. This practice can be applied when we have more sub-commands inblobandrepositoryin the future.Adds a new mocking package to mock repository level operations (e.g. fetch, fetch reference, resolve), add used it for unit testing.
Resolves #301, #463