joblogger

package
v0.15.11 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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