log

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LogTypePipeline = "pipeline"
	LogTypeTask     = "task"
)
View Source
const (
	MsgTRNotFoundErr = "Unable to get TaskRun"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Pipeline        string
	Task            string
	TaskDisplayName string
	Step            string
	Log             string
}

Log represents data to write on log channel

type Reader

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

func NewReader

func NewReader(logType string, opts *options.LogOptions) (*Reader, error)

func (*Reader) Read

func (r *Reader) Read() (<-chan Log, <-chan error, error)

type Writer

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

Writer helps logging pod"s log

func NewWriter

func NewWriter(logType string, prefixing bool) *Writer

NewWriter returns the new instance of LogWriter

func (*Writer) WithDisplayName added in v0.45.0

func (lw *Writer) WithDisplayName(displayName bool) *Writer

WithDisplayName sets the display name

func (*Writer) Write

func (lw *Writer) Write(s *cli.Stream, logC <-chan Log, errC <-chan error)

Write formatted pod's logs

Jump to

Keyboard shortcuts

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