pachyderm: github.com/pachyderm/pachyderm/src/server/pkg/progress Index | Files

package progress

import "github.com/pachyderm/pachyderm/src/server/pkg/progress"

Index

Package Files

progress.go

Variables

var (
    Template pb.ProgressBarTemplate = "" /* 140 byte string literal not displayed */

    PipeTemplate pb.ProgressBarTemplate = "" /* 222 byte string literal not displayed */

)

type File Uses

type File struct {
    *os.File
    // contains filtered or unexported fields
}

File is a wrapper around a file which updates a progress bar as it's read.

func Open Uses

func Open(path string) (*File, error)

Open is identical to os.Open except that file is wrapped in a progress bar that updates as you read from it .

func Stdin Uses

func Stdin() *File

Stdin returns os.Stdin except that it's wrapped in a progress bar that updates as you read from it.

func (*File) Close Uses

func (f *File) Close() error

Close closes the wrapped file and finishes the progress bar.

func (*File) Finish Uses

func (f *File) Finish()

Finish finishes the progress bar without closing the wrapped file, this should be used if the wrapped file is something you don't want to close (for example stdin), but you don't want future reads to be printed as progress.

func (*File) Read Uses

func (f *File) Read(p []byte) (int, error)

Read reads bytes from wrapped file and adds amount of bytes to progress bar

func (*File) Seek Uses

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek seeks the wrapped file and updates the progress bar.

Package progress imports 3 packages (graph) and is imported by 3 packages. Updated 2020-08-12. Refresh now. Tools for package owners.