logger

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// RetryDelay is the time to wait in between polling the status of the cloud build
	RetryDelay = 1 * time.Second

	// BackoffFactor is the exponent for exponential backoff during build status polling
	BackoffFactor = 1.5

	// BackoffSteps is the number of times we increase the backoff time during exponential backoff
	BackoffSteps = 10

	// RetryTimeout is the max amount of time to retry getting the status of the build before erroring
	RetryTimeout = 3 * time.Minute
)

Variables

This section is empty.

Functions

func NewStatusBackoff

func NewStatusBackoff() *wait.Backoff

Types

type AtomicBool

type AtomicBool struct {
	// contains filtered or unexported fields
}

func (*AtomicBool) Get

func (b *AtomicBool) Get() bool

func (*AtomicBool) Set

func (b *AtomicBool) Set(value bool)

type DockerLogFormatter

type DockerLogFormatter struct {
	// contains filtered or unexported fields
}

func NewDockerLogFormatter

func NewDockerLogFormatter(colorPicker output.ColorPicker, tracker tracker.Tracker, isMuted func() bool, id string) *DockerLogFormatter

func (*DockerLogFormatter) Name

func (d *DockerLogFormatter) Name() string

func (*DockerLogFormatter) PrintLine

func (d *DockerLogFormatter) PrintLine(out io.Writer, line string)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(ctx context.Context, tracker *tracker.ContainerTracker, cfg docker.Config, shouldInterruptLogs bool) (*Logger, error)

func (*Logger) IsMuted

func (l *Logger) IsMuted() bool

func (*Logger) Mute

func (l *Logger) Mute()

Mute mutes the logs.

func (*Logger) RegisterArtifacts

func (l *Logger) RegisterArtifacts(artifacts []graph.Artifact)

func (*Logger) SetSince

func (l *Logger) SetSince(time.Time)

func (*Logger) Start

func (l *Logger) Start(ctx context.Context, out io.Writer) error

func (*Logger) Stop

func (l *Logger) Stop()

func (*Logger) Unmute

func (l *Logger) Unmute()

Unmute unmutes the logs.

Jump to

Keyboard shortcuts

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