getlog

package
v0.0.121 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry added in v0.0.33

func Retry(maxElapsedTime time.Duration, f func() error) error

Retry retries with exponential backoff the given function

Types

type CLILogWriter

type CLILogWriter struct {
}

CLILogWriter is an implementation of logs.LogWriter that will show logs in the standard output

type Options

type Options struct {
	options.BaseOptions

	ScmDiscover             scmhelpers.Options
	Args                    []string
	Format                  string
	Namespace               string
	Tail                    bool
	Wait                    bool
	CurrentFolder           bool
	FailIfPodFails          bool
	WaitForPipelineDuration time.Duration
	BuildFilter             tektonlog.BuildPodInfoFilter
	KubeClient              kubernetes.Interface
	JXClient                versioned.Interface
	TektonClient            tektonclient.Interface
	TektonLogger            *tektonlog.TektonLogger
	Input                   input.Interface
	Out                     io.Writer
}

Options the command line options

func NewCmdGetBuildLogs

func NewCmdGetBuildLogs() (*cobra.Command, *Options)

NewCmdGetBuildLogs creates the command

func (*Options) Run

func (o *Options) Run() error

Run implements this command

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies things are setup correctly

Jump to

Keyboard shortcuts

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