joblogger

package
v0.3.70-rc-48ac640 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobLogger

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

func New

func New(clusters []string, namespace string, opts ...Option) (*JobLogger, error)

func (*JobLogger) Logs

func (srv *JobLogger) Logs() map[string]*bytes.Buffer

func (*JobLogger) PrintLogs

func (srv *JobLogger) PrintLogs()

func (*JobLogger) Run

func (srv *JobLogger) Run(ctx context.Context) error

type Option

type Option func(logger *JobLogger)

func WithJobSetId

func WithJobSetId(jobSetId string) Option

func WithOutput

func WithOutput(output io.Writer) Option

func WithQueue

func WithQueue(queue string) Option

Jump to

Keyboard shortcuts

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