Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 19 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
	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) *Writer

NewWriter returns the new instance of LogWriter

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