Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fetch command to get manifest of an artifact #449

Merged
merged 65 commits into from
Aug 15, 2022
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
04bfc87
Add get-manifest command with pretty option
qweeah Jul 18, 2022
c1da0e9
Add error
qweeah Jul 18, 2022
78b1e66
Rename to fetch
qweeah Jul 19, 2022
269bb01
Add media type support and refactor
qweeah Jul 19, 2022
e87f4af
Add platform and media type
qweeah Jul 20, 2022
b902a7f
Moving multi-arch options into a dedicated type.
qweeah Jul 20, 2022
b79f8e4
Enhance platform
qweeah Jul 20, 2022
994f495
Updage long description
qweeah Jul 20, 2022
8c263ba
Refactor platform
qweeah Jul 20, 2022
ad97af8
Add get-manifest command with pretty option
qweeah Jul 18, 2022
f5877e5
Add error
qweeah Jul 18, 2022
46f032d
Rename to fetch
qweeah Jul 19, 2022
4bac348
Add media type support and refactor
qweeah Jul 19, 2022
3bed958
Add platform and media type
qweeah Jul 20, 2022
d0640c7
Moving multi-arch options into a dedicated type.
qweeah Jul 20, 2022
25b5e51
Enhance platform
qweeah Jul 20, 2022
9a5dbe7
Updage long description
qweeah Jul 20, 2022
19f4451
Refactor platform
qweeah Jul 20, 2022
2d11906
Combine platform parsing
qweeah Jul 22, 2022
7908bf6
Merge branch 'get-manifest' of https://github.com/qweeah/oras into ge…
qweeah Jul 22, 2022
6da78a2
Add tests for platform.parse
qweeah Jul 23, 2022
5849406
Add os version example
qweeah Jul 24, 2022
4c7b117
Add manifest and fetch subcommand
qweeah Jul 26, 2022
bc2428b
Merge remote-tracking branch 'origin_src' into get-manifest
qweeah Jul 27, 2022
cd9ed13
Restructured
qweeah Jul 27, 2022
864bb08
Merge remote-tracking branch 'origin_src/main' into get-manifest
qweeah Jul 27, 2022
275b801
Use reference fetcher
qweeah Jul 27, 2022
d905883
Use FetchReference and promoted content.FetchAll
qweeah Jul 27, 2022
3369ac3
Add mocked unit test
qweeah Jul 27, 2022
0af3746
Refactor and add unit tests
qweeah Jul 27, 2022
1553423
More coverage
qweeah Jul 27, 2022
bc5ce3e
Resolve comment
qweeah Jul 28, 2022
b3ae291
Add fetch descriptor
qweeah Jul 28, 2022
7c6d00b
Add fetching descriptor
qweeah Jul 28, 2022
8fc62b5
Add test for fetch descriptor
qweeah Jul 28, 2022
7b0989c
Use unmerged branch
qweeah Aug 2, 2022
f59912e
Add coverage
qweeah Aug 2, 2022
7145418
Add mock package
qweeah Aug 2, 2022
516526e
Code clean
qweeah Aug 3, 2022
d58db42
Code clean
qweeah Aug 3, 2022
00ed116
Merge remote-tracking branch 'origin_src/main' into get-manifest
qweeah Aug 10, 2022
cd910f3
Use strings.Cut
qweeah Aug 10, 2022
bc503e9
Code clean
qweeah Aug 10, 2022
89b2747
Merge remote-tracking branch 'origin_src/main' into get-manifest
qweeah Aug 10, 2022
c9157c8
Merge remote-tracking branch 'origin_src/main' into get-manifest
qweeah Aug 15, 2022
96b88d6
Add caching
qweeah Aug 15, 2022
983d7b8
Code clean
qweeah Aug 15, 2022
3eb653f
Merge remote-tracking branch 'origin_src/main' into get-manifest
qweeah Aug 15, 2022
037561a
Remod
qweeah Aug 15, 2022
81bf60f
Remod to rc 2
qweeah Aug 15, 2022
335ee91
Code clean
qweeah Aug 15, 2022
b219e00
Refactor: move cas to a dedicated package
qweeah Aug 15, 2022
1722b16
Merge branch 'main' into get-manifest
qweeah Aug 15, 2022
39a71da
Code clean
qweeah Aug 15, 2022
b0a5fb2
Add code coverage
qweeah Aug 15, 2022
2168f22
Add descriptor example
qweeah Aug 15, 2022
b2223d0
Add platform example
qweeah Aug 15, 2022
7957e58
Code clean
qweeah Aug 15, 2022
f05e7fa
Code clean
qweeah Aug 15, 2022
2ac5fce
Code clean
qweeah Aug 15, 2022
349160f
Change media type to array
qweeah Aug 15, 2022
3a09ca7
Refactor fetching
qweeah Aug 15, 2022
2574a80
Add default arch if not provided
qweeah Aug 15, 2022
e3f2c90
Code clean
qweeah Aug 15, 2022
851356f
Fix unit test
qweeah Aug 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add error
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Jul 22, 2022
commit f5877e533d68a0193dbc7166c33d7e71c43d6876
2 changes: 1 addition & 1 deletion cmd/oras/get-manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func getManifest(opts getManifestOptions) error {
return err
}
if desc.Size != int64(len(manifest)) || !verifier.Verified() {
errors.New("digest verification failed")
return errors.New("digest verification failed")
}

// Output
Expand Down