progress

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromReader

func FromReader(w Writer, name string, rc io.Reader)

func Wrap

func Wrap(name string, l Logger, fn func(SubLogger) error) (err error)

func Write

func Write(w Writer, name string, f func() error)

Types

type Logger

type Logger func(*client.SolveStatus)

type MultiWriter

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

func NewMultiWriter

func NewMultiWriter(pw Writer) *MultiWriter

func (*MultiWriter) Done

func (mw *MultiWriter) Done() <-chan struct{}

func (*MultiWriter) Err

func (mw *MultiWriter) Err() error

func (*MultiWriter) Status

func (mw *MultiWriter) Status() chan *client.SolveStatus

func (*MultiWriter) WithPrefix

func (mw *MultiWriter) WithPrefix(pfx string, force bool) Writer

type SubLogger

type SubLogger interface {
	Wrap(name string, fn func() error) error
	Log(stream int, dt []byte)
}

type Writer

type Writer interface {
	Done() <-chan struct{}
	Err() error
	Status() chan *client.SolveStatus
}

func NewPrinter

func NewPrinter(ctx context.Context, out console.File, mode string) Writer

func ResetTime

func ResetTime(in Writer) Writer

Jump to

Keyboard shortcuts

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