getlog

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

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