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

Push progress #16

Merged
merged 1 commit into from Jul 19, 2022
Merged

Push progress #16

merged 1 commit into from Jul 19, 2022

Conversation

vvoland
Copy link
Collaborator

@vvoland vvoland commented Jul 11, 2022

Follow up to:

Add progress for push. This shares code with pull progress and I extracted common things to other file to avoid cluttering service.go.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland force-pushed the containerd-push-progress branch 3 times, most recently from 71b8c20 to 5f268e3 Compare July 12, 2022 09:34
@rumpl
Copy link
Owner

rumpl commented Jul 13, 2022

Can be rebased :)

@vvoland vvoland marked this pull request as ready for review July 14, 2022 12:38
func showProgress(ctx context.Context, ongoing *jobs, cs content.Store, w io.Writer, stop chan struct{}) {
type updateProgressFunc func(ctx context.Context, ongoing *jobs, output progress.Output, start time.Time) error

func ShowProgress(ctx context.Context, ongoing *jobs, w io.Writer, updateFunc updateProgressFunc) func() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't have to be an exported function, can be showProgress

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@thaJeztah
Copy link
Collaborator

When upstreaming:

combine with one or more of;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
3 participants