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

taskrun

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(p cli.Params) *cobra.Command

Types

type ListOptions added in v0.3.0

type ListOptions struct {
	Limit int
}

type Log

type Log struct {
	Task string
	Step string
	Log  string
}

Log data to write on log channel

type LogOptions

type LogOptions struct {
	TaskrunName string
	AllSteps    bool
	Follow      bool
	Stream      *cli.Stream
	Params      cli.Params
	Streamer    stream.NewStreamerFunc
}

LogOptions provides options on what logs to fetch. An empty LogOptions implies fetching all logs including init steps

func (*LogOptions) Run added in v0.5.0

func (lo *LogOptions) Run() error

type LogReader

type LogReader struct {
	Task     string
	Run      string
	Number   int
	Ns       string
	Clients  *cli.Clients
	Streamer stream.NewStreamerFunc
	Follow   bool
	AllSteps bool
	Stream   *cli.Stream
}

func (*LogReader) Read

func (lr *LogReader) Read() (<-chan Log, <-chan error, error)

type LogWriter

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

func NewLogWriter

func NewLogWriter() *LogWriter

NewLogWriter returns the new instance of LogWriter

func (*LogWriter) Write

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

Jump to

Keyboard shortcuts

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