Documentation ¶
Index ¶
- type MockJobContext
- func (mjc *MockJobContext) Build(tracker job.Tracker) (job.Context, error)
- func (mjc *MockJobContext) Checkin(status string) error
- func (mjc *MockJobContext) Get(prop string) (interface{}, bool)
- func (mjc *MockJobContext) GetLogger() logger.Interface
- func (mjc *MockJobContext) OPCommand() (job.OPCommand, bool)
- func (mjc *MockJobContext) SystemContext() context.Context
- func (mjc *MockJobContext) Tracker() job.Tracker
- type MockJobLogger
- func (mjl *MockJobLogger) Debug(v ...interface{})
- func (mjl *MockJobLogger) Debugf(format string, v ...interface{})
- func (mjl *MockJobLogger) Error(v ...interface{})
- func (mjl *MockJobLogger) Errorf(format string, v ...interface{})
- func (mjl *MockJobLogger) Fatal(v ...interface{})
- func (mjl *MockJobLogger) Fatalf(format string, v ...interface{})
- func (mjl *MockJobLogger) Info(v ...interface{})
- func (mjl *MockJobLogger) Infof(format string, v ...interface{})
- func (mjl *MockJobLogger) Warning(v ...interface{})
- func (mjl *MockJobLogger) Warningf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJobContext ¶
MockJobContext mocks job context interface. TODO: Maybe moved to a separate `mock` pkg for sharing in future.
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 ...
type MockJobLogger ¶
MockJobLogger mocks the job logger interface. TODO: Maybe moved to a separate `mock` pkg for sharing in future.
func (*MockJobLogger) Debugf ¶
func (mjl *MockJobLogger) Debugf(format string, v ...interface{})
Debugf ...
func (*MockJobLogger) Errorf ¶
func (mjl *MockJobLogger) Errorf(format string, v ...interface{})
Errorf ...
func (*MockJobLogger) Fatalf ¶
func (mjl *MockJobLogger) Fatalf(format string, v ...interface{})
Fatalf ...
func (*MockJobLogger) Infof ¶
func (mjl *MockJobLogger) Infof(format string, v ...interface{})
Infof ...
func (*MockJobLogger) Warningf ¶
func (mjl *MockJobLogger) Warningf(format string, v ...interface{})
Warningf ...
Click to show internal directories.
Click to hide internal directories.