Documentation ¶
Index ¶
- Constants
- func NewStatusBackoff() *wait.Backoff
- type AtomicBool
- type Logger
- func (l *Logger) CancelJobLogger(jobID string)
- func (l *Logger) IsMuted() bool
- func (l *Logger) Mute()
- func (l *Logger) RegisterArtifacts(artifacts []graph.Artifact)
- func (l *Logger) RegisterJob(id string)
- func (l *Logger) SetSince(time.Time)
- func (l *Logger) Start(ctx context.Context, out io.Writer) error
- func (l *Logger) Stop()
- func (l *Logger) Unmute()
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 ¶
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 Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(ctx context.Context, tracker *tracker.JobTracker, labeller *label.DefaultLabeller, kubeContext string) *Logger
func (*Logger) CancelJobLogger ¶ added in v2.5.1
func (*Logger) RegisterArtifacts ¶
func (*Logger) RegisterJob ¶
Click to show internal directories.
Click to hide internal directories.