jobservice

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJobContext

type MockJobContext struct {
	mock.Mock
}

MockJobContext mocks job context interface. TODO: Maybe moved to a separate `mock` pkg for sharing in future.

func (*MockJobContext) Build

func (mjc *MockJobContext) Build(tracker job.Tracker) (job.Context, error)

Build ...

func (*MockJobContext) Checkin

func (mjc *MockJobContext) Checkin(status string) error

Checkin ...

func (*MockJobContext) Get

func (mjc *MockJobContext) Get(prop string) (interface{}, bool)

Get ...

func (*MockJobContext) GetLogger

func (mjc *MockJobContext) GetLogger() logger.Interface

GetLogger ...

func (*MockJobContext) OPCommand

func (mjc *MockJobContext) OPCommand() (job.OPCommand, bool)

OPCommand ...

func (*MockJobContext) SystemContext

func (mjc *MockJobContext) SystemContext() context.Context

SystemContext ...

func (*MockJobContext) Tracker

func (mjc *MockJobContext) Tracker() job.Tracker

Tracker ...

type MockJobLogger

type MockJobLogger struct {
	mock.Mock
}

MockJobLogger mocks the job logger interface. TODO: Maybe moved to a separate `mock` pkg for sharing in future.

func (*MockJobLogger) Debug

func (mjl *MockJobLogger) Debug(v ...interface{})

Debug ...

func (*MockJobLogger) Debugf

func (mjl *MockJobLogger) Debugf(format string, v ...interface{})

Debugf ...

func (*MockJobLogger) Error

func (mjl *MockJobLogger) Error(v ...interface{})

Error ...

func (*MockJobLogger) Errorf

func (mjl *MockJobLogger) Errorf(format string, v ...interface{})

Errorf ...

func (*MockJobLogger) Fatal

func (mjl *MockJobLogger) Fatal(v ...interface{})

Fatal ...

func (*MockJobLogger) Fatalf

func (mjl *MockJobLogger) Fatalf(format string, v ...interface{})

Fatalf ...

func (*MockJobLogger) Info

func (mjl *MockJobLogger) Info(v ...interface{})

Info ...

func (*MockJobLogger) Infof

func (mjl *MockJobLogger) Infof(format string, v ...interface{})

Infof ...

func (*MockJobLogger) Warning

func (mjl *MockJobLogger) Warning(v ...interface{})

Warning ...

func (*MockJobLogger) Warningf

func (mjl *MockJobLogger) Warningf(format string, v ...interface{})

Warningf ...

Jump to

Keyboard shortcuts

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