client

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyWithContext

func CopyWithContext(ctx context.Context, dst io.Writer, src io.Reader) (written int64, err error)

Types

type DownloadProgressBar

type DownloadProgressBar struct {
	// contains filtered or unexported fields
}

DownloadProgressBar is used for chunked container-library-client downloads.

func (*DownloadProgressBar) Abort

func (pb *DownloadProgressBar) Abort(drop bool)

func (*DownloadProgressBar) IncrBy

func (pb *DownloadProgressBar) IncrBy(n int)

func (*DownloadProgressBar) Init

func (pb *DownloadProgressBar) Init(contentLength int64)

func (*DownloadProgressBar) ProxyReader

func (pb *DownloadProgressBar) ProxyReader(r io.Reader) io.ReadCloser

func (*DownloadProgressBar) Wait

func (pb *DownloadProgressBar) Wait()

type ProgressCallback

type ProgressCallback func(int64, io.Reader, io.Writer) error

ProgressCallback is a function that provides progress information copying from a Reader to a Writer

func ProgressBarCallback

func ProgressBarCallback(ctx context.Context) ProgressCallback

ProgressBarCallback returns a progress bar callback unless e.g. --quiet or lower loglevel is set

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL