Documentation ¶
Index ¶
- func BuildDefaultUploadTagRef(item WithDigest, importRepo regname.Repository) (regname.Tag, error)
- func Retry(doFunc func() error) error
- type LogLevel
- type NonRetryableError
- type ProgressBarLogger
- type ProgressBarNoTTYLogger
- type ProgressLogger
- type Throttle
- type UILevelWriter
- func (l UILevelWriter) Debugf(msg string, args ...interface{})
- func (l UILevelWriter) Errorf(msg string, args ...interface{})
- func (l UILevelWriter) Logf(msg string, args ...interface{})
- func (l UILevelWriter) Tracef(msg string, args ...interface{})
- func (l UILevelWriter) Warnf(msg string, args ...interface{})
- type UIPrefixWriter
- type UIWithLevels
- type WithDigest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDefaultUploadTagRef ¶
func BuildDefaultUploadTagRef(item WithDigest, importRepo regname.Repository) (regname.Tag, error)
BuildDefaultUploadTagRef Builds a tag from the digest Algorithm and Digest
Types ¶
type NonRetryableError ¶
type NonRetryableError struct {
Message string
}
func (NonRetryableError) Error ¶
func (n NonRetryableError) Error() string
type ProgressBarLogger ¶
type ProgressBarLogger struct {
// contains filtered or unexported fields
}
func (*ProgressBarLogger) End ¶
func (l *ProgressBarLogger) End()
func (*ProgressBarLogger) Start ¶
func (l *ProgressBarLogger) Start(progressChan <-chan regv1.Update)
type ProgressBarNoTTYLogger ¶
type ProgressBarNoTTYLogger struct {
// contains filtered or unexported fields
}
func (*ProgressBarNoTTYLogger) End ¶
func (l *ProgressBarNoTTYLogger) End()
func (*ProgressBarNoTTYLogger) Start ¶
func (l *ProgressBarNoTTYLogger) Start(progressChan <-chan regv1.Update)
type ProgressLogger ¶
func NewProgressBar ¶
func NewProgressBar(ui goui.UI, finalMessage, errorMessagePrefix string) ProgressLogger
NewProgressBar constructor to build a ProgressLogger responsible for printing out a progress bar using updates when writing to a registry via ggcr
type Throttle ¶
type Throttle struct {
// contains filtered or unexported fields
}
func NewThrottle ¶
type UILevelWriter ¶
UILevelWriter allows specifying a log level to a ui.UI
func NewUILevelLogger ¶
func NewUILevelLogger(level LogLevel, ui goui.UI) *UILevelWriter
NewUILevelLogger is a UILevelWriter constructor, wrapping a ui.UI with a specific log level
func (UILevelWriter) Debugf ¶
func (l UILevelWriter) Debugf(msg string, args ...interface{})
Debugf used to log debug related messages
func (UILevelWriter) Errorf ¶
func (l UILevelWriter) Errorf(msg string, args ...interface{})
Errorf used to log error related messages
func (UILevelWriter) Logf ¶
func (l UILevelWriter) Logf(msg string, args ...interface{})
Logf logs the provided message
func (UILevelWriter) Tracef ¶
func (l UILevelWriter) Tracef(msg string, args ...interface{})
Tracef used to log trace related messages
func (UILevelWriter) Warnf ¶
func (l UILevelWriter) Warnf(msg string, args ...interface{})
Warnf used to log warning related messages
type UIPrefixWriter ¶
UIPrefixWriter prints a prefix when the underlying ui prints a message
func NewUIPrefixedWriter ¶
func NewUIPrefixedWriter(prefix string, ui goui.UI) *UIPrefixWriter
NewUIPrefixedWriter constructor for building a UI with a prefix when logging a message
func (*UIPrefixWriter) BeginLinef ¶
func (w *UIPrefixWriter) BeginLinef(msg string, args ...interface{})
BeginLinef writes a message and args adding a configured prefix
type UIWithLevels ¶
type UIWithLevels interface { Errorf(msg string, args ...interface{}) Warnf(msg string, args ...interface{}) Debugf(msg string, args ...interface{}) Tracef(msg string, args ...interface{}) }
UIWithLevels wraps a ui.UI with logging levels
type WithDigest ¶
WithDigest are items that Digest() can be called on