Documentation ¶
Overview ¶
Package mock_workerruntime is a generated GoMock package.
Index ¶
- type MockRuntime
- func (m *MockRuntime) AddStepOutput(ctx context.Context, outputName, outputValue string)
- func (m *MockRuntime) BaseDir() afero.Fs
- func (m *MockRuntime) Blur(arg0 interface{}) error
- func (m *MockRuntime) CDNHttpURL() string
- func (m *MockRuntime) Client() cdsclient.WorkerInterface
- func (m *MockRuntime) ClientV2() cdsclient.V2WorkerInterface
- func (m *MockRuntime) EXPECT() *MockRuntimeMockRecorder
- func (m *MockRuntime) Environ() []string
- func (m *MockRuntime) FeatureEnabled(featureName sdk.FeatureName) bool
- func (m *MockRuntime) GetActionPlugin(pluginName string) *sdk.GRPCPlugin
- func (m *MockRuntime) GetIntegrationPlugin(pluginType string) *sdk.GRPCPlugin
- func (m *MockRuntime) GetJobIdentifiers() (int64, int64, int64)
- func (m *MockRuntime) HTTPPort() int32
- func (m *MockRuntime) InstallKey(key sdk.Variable) (*workerruntime.KeyResponse, error)
- func (m *MockRuntime) InstallKeyTo(key sdk.Variable, destinationPath string) (*workerruntime.KeyResponse, error)
- func (m *MockRuntime) Name() string
- func (m *MockRuntime) Parameters() []sdk.Parameter
- func (m *MockRuntime) PluginGet(pluginName string) (*sdk.GRPCPlugin, error)
- func (m *MockRuntime) PluginGetBinary(name, os, arch string, w io.Writer) error
- func (m *MockRuntime) ProcessJob(job sdk.WorkflowNodeJobRunData) sdk.Result
- func (m *MockRuntime) Register(ctx context.Context) error
- func (m *MockRuntime) RunResultSignature(fileName string, perm uint32, t sdk.WorkflowRunResultType) (string, error)
- func (m *MockRuntime) SendLog(ctx context.Context, level workerruntime.Level, format string)
- func (m *MockRuntime) SetActionPlugin(p *sdk.GRPCPlugin)
- func (m *MockRuntime) Take(ctx context.Context, job sdk.WorkflowNodeJobRun) error
- func (m *MockRuntime) Unregister(ctx context.Context) error
- func (m *MockRuntime) V2AddRunResult(ctx context.Context, req workerruntime.V2RunResultRequest) (*workerruntime.V2AddResultResponse, error)
- func (m *MockRuntime) V2GetIntegrationByName(ctx context.Context, name string) (*sdk.ProjectIntegration, error)
- func (m *MockRuntime) V2GetJobContext(ctx context.Context) *sdk.WorkflowRunJobsContext
- func (m *MockRuntime) V2GetJobRun(ctx context.Context) *sdk.V2WorkflowRunJob
- func (m *MockRuntime) V2GetRunResult(ctx context.Context, filter workerruntime.V2FilterRunResult) (*workerruntime.V2GetResultResponse, error)
- func (m *MockRuntime) V2UpdateRunResult(ctx context.Context, req workerruntime.V2RunResultRequest) (*workerruntime.V2UpdateResultResponse, error)
- func (m *MockRuntime) WorkerCacheSignature(tag string) (string, error)
- type MockRuntimeMockRecorder
- func (mr *MockRuntimeMockRecorder) AddStepOutput(ctx, outputName, outputValue interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) BaseDir() *gomock.Call
- func (mr *MockRuntimeMockRecorder) Blur(arg0 interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) CDNHttpURL() *gomock.Call
- func (mr *MockRuntimeMockRecorder) Client() *gomock.Call
- func (mr *MockRuntimeMockRecorder) ClientV2() *gomock.Call
- func (mr *MockRuntimeMockRecorder) Environ() *gomock.Call
- func (mr *MockRuntimeMockRecorder) FeatureEnabled(featureName interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) GetActionPlugin(pluginName interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) GetIntegrationPlugin(pluginType interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) GetJobIdentifiers() *gomock.Call
- func (mr *MockRuntimeMockRecorder) HTTPPort() *gomock.Call
- func (mr *MockRuntimeMockRecorder) InstallKey(key interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) InstallKeyTo(key, destinationPath interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Name() *gomock.Call
- func (mr *MockRuntimeMockRecorder) Parameters() *gomock.Call
- func (mr *MockRuntimeMockRecorder) PluginGet(pluginName interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) ProcessJob(job interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Register(ctx interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) RunResultSignature(fileName, perm, t interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) SendLog(ctx, level, format interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) SetActionPlugin(p interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Take(ctx, job interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Unregister(ctx interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2AddRunResult(ctx, req interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2GetIntegrationByName(ctx, name interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2GetJobContext(ctx interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2GetJobRun(ctx interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2GetRunResult(ctx, filter interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) V2UpdateRunResult(ctx, req interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) WorkerCacheSignature(tag interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRuntime ¶
type MockRuntime struct {
// contains filtered or unexported fields
}
MockRuntime is a mock of Runtime interface.
func NewMockRuntime ¶
func NewMockRuntime(ctrl *gomock.Controller) *MockRuntime
NewMockRuntime creates a new mock instance.
func (*MockRuntime) AddStepOutput ¶
func (m *MockRuntime) AddStepOutput(ctx context.Context, outputName, outputValue string)
AddStepOutput mocks base method.
func (*MockRuntime) Blur ¶
func (m *MockRuntime) Blur(arg0 interface{}) error
Blur mocks base method.
func (*MockRuntime) CDNHttpURL ¶
func (m *MockRuntime) CDNHttpURL() string
CDNHttpURL mocks base method.
func (*MockRuntime) Client ¶
func (m *MockRuntime) Client() cdsclient.WorkerInterface
Client mocks base method.
func (*MockRuntime) ClientV2 ¶
func (m *MockRuntime) ClientV2() cdsclient.V2WorkerInterface
ClientV2 mocks base method.
func (*MockRuntime) EXPECT ¶
func (m *MockRuntime) EXPECT() *MockRuntimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRuntime) FeatureEnabled ¶
func (m *MockRuntime) FeatureEnabled(featureName sdk.FeatureName) bool
FeatureEnabled mocks base method.
func (*MockRuntime) GetActionPlugin ¶
func (m *MockRuntime) GetActionPlugin(pluginName string) *sdk.GRPCPlugin
GetActionPlugin mocks base method.
func (*MockRuntime) GetIntegrationPlugin ¶
func (m *MockRuntime) GetIntegrationPlugin(pluginType string) *sdk.GRPCPlugin
GetIntegrationPlugin mocks base method.
func (*MockRuntime) GetJobIdentifiers ¶
func (m *MockRuntime) GetJobIdentifiers() (int64, int64, int64)
GetJobIdentifiers mocks base method.
func (*MockRuntime) InstallKey ¶
func (m *MockRuntime) InstallKey(key sdk.Variable) (*workerruntime.KeyResponse, error)
InstallKey mocks base method.
func (*MockRuntime) InstallKeyTo ¶
func (m *MockRuntime) InstallKeyTo(key sdk.Variable, destinationPath string) (*workerruntime.KeyResponse, error)
InstallKeyTo mocks base method.
func (*MockRuntime) Parameters ¶
func (m *MockRuntime) Parameters() []sdk.Parameter
Parameters mocks base method.
func (*MockRuntime) PluginGet ¶
func (m *MockRuntime) PluginGet(pluginName string) (*sdk.GRPCPlugin, error)
PluginGet mocks base method.
func (*MockRuntime) PluginGetBinary ¶
func (m *MockRuntime) PluginGetBinary(name, os, arch string, w io.Writer) error
PluginGetBinary mocks base method.
func (*MockRuntime) ProcessJob ¶
func (m *MockRuntime) ProcessJob(job sdk.WorkflowNodeJobRunData) sdk.Result
ProcessJob mocks base method.
func (*MockRuntime) Register ¶
func (m *MockRuntime) Register(ctx context.Context) error
Register mocks base method.
func (*MockRuntime) RunResultSignature ¶
func (m *MockRuntime) RunResultSignature(fileName string, perm uint32, t sdk.WorkflowRunResultType) (string, error)
RunResultSignature mocks base method.
func (*MockRuntime) SendLog ¶
func (m *MockRuntime) SendLog(ctx context.Context, level workerruntime.Level, format string)
SendLog mocks base method.
func (*MockRuntime) SetActionPlugin ¶
func (m *MockRuntime) SetActionPlugin(p *sdk.GRPCPlugin)
SetActionPlugin mocks base method.
func (*MockRuntime) Take ¶
func (m *MockRuntime) Take(ctx context.Context, job sdk.WorkflowNodeJobRun) error
Take mocks base method.
func (*MockRuntime) Unregister ¶
func (m *MockRuntime) Unregister(ctx context.Context) error
Unregister mocks base method.
func (*MockRuntime) V2AddRunResult ¶
func (m *MockRuntime) V2AddRunResult(ctx context.Context, req workerruntime.V2RunResultRequest) (*workerruntime.V2AddResultResponse, error)
V2AddRunResult mocks base method.
func (*MockRuntime) V2GetIntegrationByName ¶
func (m *MockRuntime) V2GetIntegrationByName(ctx context.Context, name string) (*sdk.ProjectIntegration, error)
V2GetIntegrationByName mocks base method.
func (*MockRuntime) V2GetJobContext ¶
func (m *MockRuntime) V2GetJobContext(ctx context.Context) *sdk.WorkflowRunJobsContext
V2GetJobContext mocks base method.
func (*MockRuntime) V2GetJobRun ¶
func (m *MockRuntime) V2GetJobRun(ctx context.Context) *sdk.V2WorkflowRunJob
V2GetJobRun mocks base method.
func (*MockRuntime) V2GetRunResult ¶
func (m *MockRuntime) V2GetRunResult(ctx context.Context, filter workerruntime.V2FilterRunResult) (*workerruntime.V2GetResultResponse, error)
V2GetRunResult mocks base method.
func (*MockRuntime) V2UpdateRunResult ¶
func (m *MockRuntime) V2UpdateRunResult(ctx context.Context, req workerruntime.V2RunResultRequest) (*workerruntime.V2UpdateResultResponse, error)
V2UpdateRunResult mocks base method.
func (*MockRuntime) WorkerCacheSignature ¶
func (m *MockRuntime) WorkerCacheSignature(tag string) (string, error)
WorkerCacheSignature mocks base method.
type MockRuntimeMockRecorder ¶
type MockRuntimeMockRecorder struct {
// contains filtered or unexported fields
}
MockRuntimeMockRecorder is the mock recorder for MockRuntime.
func (*MockRuntimeMockRecorder) AddStepOutput ¶
func (mr *MockRuntimeMockRecorder) AddStepOutput(ctx, outputName, outputValue interface{}) *gomock.Call
AddStepOutput indicates an expected call of AddStepOutput.
func (*MockRuntimeMockRecorder) BaseDir ¶
func (mr *MockRuntimeMockRecorder) BaseDir() *gomock.Call
BaseDir indicates an expected call of BaseDir.
func (*MockRuntimeMockRecorder) Blur ¶
func (mr *MockRuntimeMockRecorder) Blur(arg0 interface{}) *gomock.Call
Blur indicates an expected call of Blur.
func (*MockRuntimeMockRecorder) CDNHttpURL ¶
func (mr *MockRuntimeMockRecorder) CDNHttpURL() *gomock.Call
CDNHttpURL indicates an expected call of CDNHttpURL.
func (*MockRuntimeMockRecorder) Client ¶
func (mr *MockRuntimeMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockRuntimeMockRecorder) ClientV2 ¶
func (mr *MockRuntimeMockRecorder) ClientV2() *gomock.Call
ClientV2 indicates an expected call of ClientV2.
func (*MockRuntimeMockRecorder) Environ ¶
func (mr *MockRuntimeMockRecorder) Environ() *gomock.Call
Environ indicates an expected call of Environ.
func (*MockRuntimeMockRecorder) FeatureEnabled ¶
func (mr *MockRuntimeMockRecorder) FeatureEnabled(featureName interface{}) *gomock.Call
FeatureEnabled indicates an expected call of FeatureEnabled.
func (*MockRuntimeMockRecorder) GetActionPlugin ¶
func (mr *MockRuntimeMockRecorder) GetActionPlugin(pluginName interface{}) *gomock.Call
GetActionPlugin indicates an expected call of GetActionPlugin.
func (*MockRuntimeMockRecorder) GetIntegrationPlugin ¶
func (mr *MockRuntimeMockRecorder) GetIntegrationPlugin(pluginType interface{}) *gomock.Call
GetIntegrationPlugin indicates an expected call of GetIntegrationPlugin.
func (*MockRuntimeMockRecorder) GetJobIdentifiers ¶
func (mr *MockRuntimeMockRecorder) GetJobIdentifiers() *gomock.Call
GetJobIdentifiers indicates an expected call of GetJobIdentifiers.
func (*MockRuntimeMockRecorder) HTTPPort ¶
func (mr *MockRuntimeMockRecorder) HTTPPort() *gomock.Call
HTTPPort indicates an expected call of HTTPPort.
func (*MockRuntimeMockRecorder) InstallKey ¶
func (mr *MockRuntimeMockRecorder) InstallKey(key interface{}) *gomock.Call
InstallKey indicates an expected call of InstallKey.
func (*MockRuntimeMockRecorder) InstallKeyTo ¶
func (mr *MockRuntimeMockRecorder) InstallKeyTo(key, destinationPath interface{}) *gomock.Call
InstallKeyTo indicates an expected call of InstallKeyTo.
func (*MockRuntimeMockRecorder) Name ¶
func (mr *MockRuntimeMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRuntimeMockRecorder) Parameters ¶
func (mr *MockRuntimeMockRecorder) Parameters() *gomock.Call
Parameters indicates an expected call of Parameters.
func (*MockRuntimeMockRecorder) PluginGet ¶
func (mr *MockRuntimeMockRecorder) PluginGet(pluginName interface{}) *gomock.Call
PluginGet indicates an expected call of PluginGet.
func (*MockRuntimeMockRecorder) PluginGetBinary ¶
func (mr *MockRuntimeMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call
PluginGetBinary indicates an expected call of PluginGetBinary.
func (*MockRuntimeMockRecorder) ProcessJob ¶
func (mr *MockRuntimeMockRecorder) ProcessJob(job interface{}) *gomock.Call
ProcessJob indicates an expected call of ProcessJob.
func (*MockRuntimeMockRecorder) Register ¶
func (mr *MockRuntimeMockRecorder) Register(ctx interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockRuntimeMockRecorder) RunResultSignature ¶
func (mr *MockRuntimeMockRecorder) RunResultSignature(fileName, perm, t interface{}) *gomock.Call
RunResultSignature indicates an expected call of RunResultSignature.
func (*MockRuntimeMockRecorder) SendLog ¶
func (mr *MockRuntimeMockRecorder) SendLog(ctx, level, format interface{}) *gomock.Call
SendLog indicates an expected call of SendLog.
func (*MockRuntimeMockRecorder) SetActionPlugin ¶
func (mr *MockRuntimeMockRecorder) SetActionPlugin(p interface{}) *gomock.Call
SetActionPlugin indicates an expected call of SetActionPlugin.
func (*MockRuntimeMockRecorder) Take ¶
func (mr *MockRuntimeMockRecorder) Take(ctx, job interface{}) *gomock.Call
Take indicates an expected call of Take.
func (*MockRuntimeMockRecorder) Unregister ¶
func (mr *MockRuntimeMockRecorder) Unregister(ctx interface{}) *gomock.Call
Unregister indicates an expected call of Unregister.
func (*MockRuntimeMockRecorder) V2AddRunResult ¶
func (mr *MockRuntimeMockRecorder) V2AddRunResult(ctx, req interface{}) *gomock.Call
V2AddRunResult indicates an expected call of V2AddRunResult.
func (*MockRuntimeMockRecorder) V2GetIntegrationByName ¶
func (mr *MockRuntimeMockRecorder) V2GetIntegrationByName(ctx, name interface{}) *gomock.Call
V2GetIntegrationByName indicates an expected call of V2GetIntegrationByName.
func (*MockRuntimeMockRecorder) V2GetJobContext ¶
func (mr *MockRuntimeMockRecorder) V2GetJobContext(ctx interface{}) *gomock.Call
V2GetJobContext indicates an expected call of V2GetJobContext.
func (*MockRuntimeMockRecorder) V2GetJobRun ¶
func (mr *MockRuntimeMockRecorder) V2GetJobRun(ctx interface{}) *gomock.Call
V2GetJobRun indicates an expected call of V2GetJobRun.
func (*MockRuntimeMockRecorder) V2GetRunResult ¶
func (mr *MockRuntimeMockRecorder) V2GetRunResult(ctx, filter interface{}) *gomock.Call
V2GetRunResult indicates an expected call of V2GetRunResult.
func (*MockRuntimeMockRecorder) V2UpdateRunResult ¶
func (mr *MockRuntimeMockRecorder) V2UpdateRunResult(ctx, req interface{}) *gomock.Call
V2UpdateRunResult indicates an expected call of V2UpdateRunResult.
func (*MockRuntimeMockRecorder) WorkerCacheSignature ¶
func (mr *MockRuntimeMockRecorder) WorkerCacheSignature(tag interface{}) *gomock.Call
WorkerCacheSignature indicates an expected call of WorkerCacheSignature.