Skip to content

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 force-pushed the containerd-push-progress branch from 5f268e3 to 718770f Compare July 14, 2022 09:36
@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 <[email protected]>
@vvoland vvoland force-pushed the containerd-push-progress branch from 718770f to bae9267 Compare July 18, 2022 09:25
@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

Development

Successfully merging this pull request may close these issues.

3 participants