importreporter

package
v0.0.0-...-64c179a Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// AddPending adds a number of pending steps
	AddPending(pending int)

	// Completed marks a number of steps as completed
	Completed(completed int)

	// Create creates a new Interface instance that is nested within the current one.
	// This is useful for reporting importreporter of a part of the operation.
	Create(name string) Interface
}

Interface is an interface for reporting the importreporter of an import operation.

func NewBar

func NewBar(
	name string,
	progress *mpb.Progress,
	done chan struct{},
) Interface

NewBar creates a new import reporter that displays an on-screen progress bar on the console.

func NewDiscard

func NewDiscard() Interface

NewDiscard creates a new import reporter that discards all updates.

func NewLog

func NewLog(
	name string,
	log logr.Logger,
	done chan struct{},
) Interface

NewLog creates a new import reporter using a log to report progress.

Jump to

Keyboard shortcuts

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