progress

package
v1.7.0-integrations Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PBar

type PBar interface {
	Start()
	Close() error
}

PBar is the interface for the types of available progress bars (Circle ,Counter) Start initializes the Progress Bar execution Close stops the Progress Bar execution

type PbBuilder

type PbBuilder struct {
	Silent bool
}

PbBuilder is the struct that contains the progress bar Builders Silent is set to true when all progress bars should be silent

func InitializePbBuilder

func InitializePbBuilder(noProgress, ci, silentFlag bool) *PbBuilder

InitializePbBuilder creates an instace of a PbBuilder

func (*PbBuilder) BuildCircle

func (i *PbBuilder) BuildCircle(label string) PBar

BuildCircle builds and returns a Circle Progress Bar

func (*PbBuilder) BuildCounter

func (i *PbBuilder) BuildCounter(label string, total int, wg *sync.WaitGroup, progressChannel chan int64) PBar

BuildCounter builds and returns a Counter Progress Bar

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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