Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanupFunc ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewTasksLogger ¶
func NewTasksLogger(ctx context.Context, mode LoggerMode) (*Logger, error)
func (*Logger) AddEntry ¶
func (l *Logger) AddEntry(name string) *LoggerEntry
func (*Logger) CloseAndWait ¶
func (*Logger) Write ¶
func (l *Logger) Write(s *buildkit.SolveStatus)
type LoggerEntry ¶
type LoggerMode ¶
type LoggerMode string
const ( PrinterModeQuiet LoggerMode = "quiet" PrinterModeAuto LoggerMode = "auto" PrinterModeTty LoggerMode = "tty" )
type Task ¶
type Task struct { Name string Ctx context.Context Logs *os.File // contains filtered or unexported fields }
func (*Task) AddToCleanUp ¶
func (t *Task) AddToCleanUp(cleanupFunc CleanupFunc)
type Tasks ¶
type Tasks struct { LoggerMode LoggerMode // contains filtered or unexported fields }
func (*Tasks) Cleanup ¶
Cleanup execute all tasks cleanup function before failed one in reverse order
func (*Tasks) SetLoggerMode ¶
func (ts *Tasks) SetLoggerMode(mode LoggerMode)
Click to show internal directories.
Click to hide internal directories.