Documentation ¶
Index ¶
- func NewSinkLogger(name string, level *int32, writer io.Writer) logr.Logger
- func RetrieveSourceImageLogger(ctx context.Context) plainimage.Logger
- func StashProgressBarLogger(ctx context.Context, logger ProgressLogger) context.Context
- func StashSourceImageLogger(ctx context.Context, logger plainimage.Logger) context.Context
- type NoopLogger
- type ProgressLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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
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
Click to show internal directories.
Click to hide internal directories.