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: support warning in remote targets #1057

Merged
merged 56 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
eb25c8d
feat: pack OCI image spec v1.1 manifests
qweeah Aug 8, 2023
f8be004
fix e2e
qweeah Aug 8, 2023
125f185
fix line
qweeah Aug 8, 2023
e65ee37
fix e2e
qweeah Aug 8, 2023
e068e8d
use pack type
qweeah Aug 8, 2023
9520375
update e2e go mod
qweeah Aug 8, 2023
84e3b16
feat: support warning in remote targets
qweeah Aug 9, 2023
157c4f9
Merge remote-tracking branch 'origin_src/main' into image-spec/rc4
qweeah Aug 9, 2023
09755f2
remove PackManifestTypeImageV1_1_0_RC2
qweeah Aug 9, 2023
ac14ef8
Merge branch 'image-spec/rc4' into warning
qweeah Aug 9, 2023
e298234
fix artifact push without subject
qweeah Aug 9, 2023
3e03906
add data
qweeah Aug 9, 2023
9e801c5
check returned error
qweeah Aug 9, 2023
a2646a5
Merge remote-tracking branch 'origin_src/main' into image-spec/rc4
qweeah Aug 9, 2023
a71ad66
Merge branch 'image-spec/rc4' into warning
qweeah Aug 9, 2023
93b66b8
default to unknown artifact type when not provided
qweeah Aug 10, 2023
2117e45
fix pack type
qweeah Aug 10, 2023
64b3ab5
fix e2e
qweeah Aug 10, 2023
552f655
fix e2e
qweeah Aug 10, 2023
34da8f6
remove examples
qweeah Aug 10, 2023
4a01645
Merge branch 'main' into image-spec/rc4
qweeah Aug 10, 2023
55b4595
Merge branch 'image-spec/rc4' into warning
qweeah Aug 10, 2023
8c906c2
fix e2e
qweeah Aug 10, 2023
88fd272
fix e2e
qweeah Aug 10, 2023
04dd969
Merge branch 'image-spec/rc4' into warning
qweeah Aug 10, 2023
b4cb666
Merge remote-tracking branch 'origin_src/main' into warning
qweeah Aug 10, 2023
e261f7b
Merge remote-tracking branch 'origin_src/main' into image-spec/rc4
qweeah Aug 10, 2023
098bcbc
fix merging
qweeah Aug 10, 2023
399265d
fix lint
qweeah Aug 10, 2023
5413dd3
fix lint
qweeah Aug 10, 2023
177a19a
bug fix
qweeah Aug 10, 2023
7cc3bf8
add index support
qweeah Aug 10, 2023
788398b
resolve comment
qweeah Aug 10, 2023
93d7a8a
remove duplicated function
qweeah Aug 10, 2023
21f8d41
Merge branch 'image-spec/rc4' into warning
qweeah Aug 11, 2023
c706fb6
Merge remote-tracking branch 'origin_src/main' into warning
qweeah Aug 18, 2023
db9a803
fix `blob delete` and `login`
qweeah Aug 18, 2023
72b5f05
add warning to readonly targets
qweeah Aug 18, 2023
d11b379
deduplicated based on warning value
qweeah Aug 18, 2023
87de8df
udpate options to avoid copylocks error
qweeah Aug 18, 2023
6fcd346
resolve comments
qweeah Aug 21, 2023
aca52ff
fix warning
qweeah Aug 22, 2023
0a044a2
fix windows test error
qweeah Aug 22, 2023
bbb0546
fix error
qweeah Aug 22, 2023
3d3b8a7
add field to logger
qweeah Aug 22, 2023
7b777ea
nit
qweeah Aug 22, 2023
6de7c57
Merge branch 'main' into warning
qweeah Aug 22, 2023
46220d6
fix unit test
qweeah Aug 22, 2023
698f5fb
refactor and make warning depulicated via registry
qweeah Aug 22, 2023
11c46b7
make map a point and init when parsing
qweeah Aug 22, 2023
e8a3a30
deduplicate warning while copying
qweeah Aug 22, 2023
1ff46ff
reorder parameters
qweeah Aug 23, 2023
9a9b387
lazy initialized dedup map
qweeah Aug 23, 2023
8eedab4
update target parsing
qweeah Aug 23, 2023
9f62b98
revert
qweeah Aug 23, 2023
be42427
code clean
qweeah Aug 23, 2023
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
remove examples
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Aug 10, 2023
commit 34da8f6ae2071418f70502f15e6254ffd75c032f
4 changes: 0 additions & 4 deletions cmd/oras/root/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ func attachCmd() *cobra.Command {
Example - Attach file 'hi.txt' with type 'doc/example' to manifest 'hello:v1' in registry 'localhost:5000':
oras attach --artifact-type doc/example localhost:5000/hello:v1 hi.txt

Example - Attach file "hi.txt" with specific media type when building the manifest:
oras attach --artifact-type doc/example --image-spec v1.1-image localhost:5000/hello:v1 hi.txt # OCI image
oras attach --artifact-type doc/example --image-spec v1.1-artifact localhost:5000/hello:v1 hi.txt # OCI artifact

Example - Attach file "hi.txt" using a specific method for the Referrers API:
oras attach --artifact-type doc/example --distribution-spec v1.1-referrers-api localhost:5000/hello:v1 hi.txt # via API
oras attach --artifact-type doc/example --distribution-spec v1.1-referrers-tag localhost:5000/hello:v1 hi.txt # via tag scheme
Expand Down
4 changes: 0 additions & 4 deletions cmd/oras/root/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ Example - Push file "hi.txt" with config type "application/vnd.me.config":
Example - Push file "hi.txt" with the custom manifest config "config.json" of the custom media type "application/vnd.me.config":
oras push --config config.json:application/vnd.me.config localhost:5000/hello:v1 hi.txt

Example - Push file "hi.txt" with specific media type when building the manifest:
oras push --image-spec v1.1-image localhost:5000/hello:v1 hi.txt # OCI image
oras push --image-spec v1.1-artifact localhost:5000/hello:v1 hi.txt # OCI artifact

Example - Push file to the insecure registry:
oras push --insecure localhost:5000/hello:v1 hi.txt

Expand Down