-
Notifications
You must be signed in to change notification settings - Fork 538
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
Implement remote.Pusher #1633
Implement remote.Pusher #1633
Conversation
c4a9d30
to
4ce245c
Compare
Codecov Report
@@ Coverage Diff @@
## main #1633 +/- ##
==========================================
- Coverage 72.30% 72.06% -0.24%
==========================================
Files 119 120 +1
Lines 9566 9760 +194
==========================================
+ Hits 6917 7034 +117
- Misses 1943 2008 +65
- Partials 706 718 +12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
a07dca2
to
3927b90
Compare
The Pusher handles multiplexing across multiple repositories and deduplicating in-flight uploads. This removes the need to do an awkward dance around re-using auth handshakes by passing custom transports. This also fixes limitations in remote.MultiWrite around streaming layers and multiple repositories.
3927b90
to
dffb52f
Compare
This will be faster than doing the handshake twice.
"github.com/google/go-containerregistry/pkg/v1/types" | ||
"github.com/google/go-containerregistry/pkg/v1/validate" | ||
) | ||
|
||
func streamable(t *testing.T) v1.Layer { | ||
t.Helper() | ||
rl, err := random.Layer(1024, types.OCIUncompressedLayer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a long way to say NopCloser(LimitReader(Rand, n))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted it to be a valid filesystem for some reason.
The Pusher handles multiplexing across multiple repositories and deduplicating in-flight uploads. This removes the need to do an awkward dance around re-using auth handshakes by passing custom transports.
This also fixes limitations in remote.MultiWrite around streaming layers and multiple repositories.