joblog

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobStatus

func JobStatus(j *batchv1.Job) string

Types

type Options

type Options struct {
	options.BaseOptions

	Namespace           string
	JobSelector         string
	GitOperatorSelector string
	ContainerName       string
	CommitSHA           string
	Duration            time.Duration
	PollPeriod          time.Duration
	NoTail              bool
	ShaMode             bool
	WaitMode            bool
	ErrOut              io.Writer
	Out                 io.Writer
	KubeClient          kubernetes.Interface
	Input               input.Interface
	// contains filtered or unexported fields
}

Options contains the command line arguments for this command

func NewCmdJobLog

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

NewCmdJobLog creates the new command

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies the settings are correct and we can lazy create any required resources

Jump to

Keyboard shortcuts

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