report

package
v11.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrRetry

func NewErrRetry(message string, args ...any) error

Types

type ErrRetry

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

func (ErrRetry) Error

func (err ErrRetry) Error() string

func (ErrRetry) Is

func (err ErrRetry) Is(target error) bool

type Reporter

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

func NewReporter

func NewReporter(ctx context.Context, cancel context.CancelFunc, c client.Client, task *runnerv1.Task, reportInterval time.Duration) *Reporter

func (*Reporter) Close

func (r *Reporter) Close(runErr error) error

func (*Reporter) Fire

func (r *Reporter) Fire(entry *log.Entry) error

func (*Reporter) Levels

func (r *Reporter) Levels() []log.Level

func (*Reporter) Logf

func (r *Reporter) Logf(format string, a ...any)

func (*Reporter) ReportLog

func (r *Reporter) ReportLog(noMore bool) error

func (*Reporter) ReportState

func (r *Reporter) ReportState() error

func (*Reporter) ResetSteps

func (r *Reporter) ResetSteps(l int)

func (*Reporter) RunDaemon

func (r *Reporter) RunDaemon()

Jump to

Keyboard shortcuts

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