logger

package
v0.12.0-build.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSinkLogger

func NewSinkLogger(name string, level *int32, writer io.Writer) logr.Logger

func RetrieveSourceImageLogger added in v0.9.0

func RetrieveSourceImageLogger(ctx context.Context) plainimage.Logger

func StashProgressBarLogger added in v0.10.0

func StashProgressBarLogger(ctx context.Context, logger ProgressLogger) context.Context

func StashSourceImageLogger added in v0.9.0

func StashSourceImageLogger(ctx context.Context, logger plainimage.Logger) context.Context

Types

type NoopLogger added in v0.9.0

type NoopLogger struct{}

NoopLogger this logger will not print

func NewNoopLogger added in v0.9.0

func NewNoopLogger() *NoopLogger

NewNoopLogger creates a new noop logger

func (NoopLogger) Logf added in v0.9.0

func (n NoopLogger) Logf(string, ...interface{})

Logf does nothing

type ProgressLogger added in v0.10.0

type ProgressLogger interface {
	Start(ctx context.Context, progress <-chan regv1.Update)
	End()
}

ProgressLogger interface should match with imgpkg util Progress logger

func NewProgressBar added in v0.10.0

func NewProgressBar() ProgressLogger

NewProgressBar constructor to build a ProgressLogger responsible for printing out a progress bar using updates when writing to a registry via ggcr

func RetrieveProgressBarLogger added in v0.10.0

func RetrieveProgressBarLogger(ctx context.Context) ProgressLogger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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