Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRunHandle
- func (m *MockRunHandle) Cancel(arg0 context.Context) error
- func (m *MockRunHandle) Done() <-chan struct{}
- func (m *MockRunHandle) EXPECT() *MockRunHandleMockRecorder
- func (m *MockRunHandle) Get(arg0 context.Context) (*types.AgentRunResult, error)
- func (m *MockRunHandle) ID() string
- func (m *MockRunHandle) Status(arg0 context.Context) (types.RunStatus, error)
- type MockRunHandleMockRecorder
- func (mr *MockRunHandleMockRecorder) Cancel(arg0 interface{}) *gomock.Call
- func (mr *MockRunHandleMockRecorder) Done() *gomock.Call
- func (mr *MockRunHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockRunHandleMockRecorder) ID() *gomock.Call
- func (mr *MockRunHandleMockRecorder) Status(arg0 interface{}) *gomock.Call
- type MockRuntime
- func (m *MockRuntime) Close()
- func (m *MockRuntime) EXPECT() *MockRuntimeMockRecorder
- func (m *MockRuntime) GetRunHandle(arg0 context.Context, arg1 string) (runtime.RunHandle, error)
- func (m *MockRuntime) GetStreamHandle(arg0 context.Context, arg1 string) (runtime.StreamHandle, error)
- func (m *MockRuntime) OnApproval(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
- func (m *MockRuntime) Run(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.RunHandle, error)
- func (m *MockRuntime) Stream(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.StreamHandle, error)
- type MockRuntimeMockRecorder
- func (mr *MockRuntimeMockRecorder) Close() *gomock.Call
- func (mr *MockRuntimeMockRecorder) GetRunHandle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) GetStreamHandle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) OnApproval(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRuntimeMockRecorder) Stream(arg0, arg1 interface{}) *gomock.Call
- type MockStreamHandle
- func (m *MockStreamHandle) Approve(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
- func (m *MockStreamHandle) Cancel(arg0 context.Context) error
- func (m *MockStreamHandle) Done() <-chan struct{}
- func (m *MockStreamHandle) EXPECT() *MockStreamHandleMockRecorder
- func (m *MockStreamHandle) Events(arg0 context.Context, arg1 int64) (<-chan events.AgentEvent, error)
- func (m *MockStreamHandle) Get(arg0 context.Context) (*types.AgentRunResult, error)
- func (m *MockStreamHandle) ID() string
- func (m *MockStreamHandle) Status(arg0 context.Context) (types.RunStatus, error)
- type MockStreamHandleMockRecorder
- func (mr *MockStreamHandleMockRecorder) Approve(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStreamHandleMockRecorder) Cancel(arg0 interface{}) *gomock.Call
- func (mr *MockStreamHandleMockRecorder) Done() *gomock.Call
- func (mr *MockStreamHandleMockRecorder) Events(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStreamHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockStreamHandleMockRecorder) ID() *gomock.Call
- func (mr *MockStreamHandleMockRecorder) Status(arg0 interface{}) *gomock.Call
- type MockWorkerRuntime
- func (m *MockWorkerRuntime) Close()
- func (m *MockWorkerRuntime) EXPECT() *MockWorkerRuntimeMockRecorder
- func (m *MockWorkerRuntime) GetRunHandle(arg0 context.Context, arg1 string) (runtime.RunHandle, error)
- func (m *MockWorkerRuntime) GetStreamHandle(arg0 context.Context, arg1 string) (runtime.StreamHandle, error)
- func (m *MockWorkerRuntime) OnApproval(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
- func (m *MockWorkerRuntime) Run(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.RunHandle, error)
- func (m *MockWorkerRuntime) Start(arg0 context.Context) error
- func (m *MockWorkerRuntime) Stop()
- func (m *MockWorkerRuntime) Stream(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.StreamHandle, error)
- type MockWorkerRuntimeMockRecorder
- func (mr *MockWorkerRuntimeMockRecorder) Close() *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) GetRunHandle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) GetStreamHandle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) OnApproval(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) Stop() *gomock.Call
- func (mr *MockWorkerRuntimeMockRecorder) Stream(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRunHandle ¶ added in v0.3.0
type MockRunHandle struct {
// contains filtered or unexported fields
}
MockRunHandle is a mock of RunHandle interface.
func NewMockRunHandle ¶ added in v0.3.0
func NewMockRunHandle(ctrl *gomock.Controller) *MockRunHandle
NewMockRunHandle creates a new mock instance.
func (*MockRunHandle) Cancel ¶ added in v0.3.0
func (m *MockRunHandle) Cancel(arg0 context.Context) error
Cancel mocks base method.
func (*MockRunHandle) Done ¶ added in v0.3.0
func (m *MockRunHandle) Done() <-chan struct{}
Done mocks base method.
func (*MockRunHandle) EXPECT ¶ added in v0.3.0
func (m *MockRunHandle) EXPECT() *MockRunHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunHandle) Get ¶ added in v0.3.0
func (m *MockRunHandle) Get(arg0 context.Context) (*types.AgentRunResult, error)
Get mocks base method.
func (*MockRunHandle) ID ¶ added in v0.3.0
func (m *MockRunHandle) ID() string
ID mocks base method.
type MockRunHandleMockRecorder ¶ added in v0.3.0
type MockRunHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockRunHandleMockRecorder is the mock recorder for MockRunHandle.
func (*MockRunHandleMockRecorder) Cancel ¶ added in v0.3.0
func (mr *MockRunHandleMockRecorder) Cancel(arg0 interface{}) *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockRunHandleMockRecorder) Done ¶ added in v0.3.0
func (mr *MockRunHandleMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockRunHandleMockRecorder) Get ¶ added in v0.3.0
func (mr *MockRunHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRunHandleMockRecorder) ID ¶ added in v0.3.0
func (mr *MockRunHandleMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockRunHandleMockRecorder) Status ¶ added in v0.3.0
func (mr *MockRunHandleMockRecorder) Status(arg0 interface{}) *gomock.Call
Status indicates an expected call of Status.
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) EXPECT ¶
func (m *MockRuntime) EXPECT() *MockRuntimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRuntime) GetRunHandle ¶ added in v0.3.0
GetRunHandle mocks base method.
func (*MockRuntime) GetStreamHandle ¶ added in v0.3.0
func (m *MockRuntime) GetStreamHandle(arg0 context.Context, arg1 string) (runtime.StreamHandle, error)
GetStreamHandle mocks base method.
func (*MockRuntime) OnApproval ¶ added in v0.3.1
func (m *MockRuntime) OnApproval(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
OnApproval mocks base method.
func (*MockRuntime) Run ¶ added in v0.3.0
func (m *MockRuntime) Run(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.RunHandle, error)
Run mocks base method.
func (*MockRuntime) Stream ¶ added in v0.3.0
func (m *MockRuntime) Stream(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.StreamHandle, error)
Stream mocks base method.
type MockRuntimeMockRecorder ¶
type MockRuntimeMockRecorder struct {
// contains filtered or unexported fields
}
MockRuntimeMockRecorder is the mock recorder for MockRuntime.
func (*MockRuntimeMockRecorder) Close ¶
func (mr *MockRuntimeMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRuntimeMockRecorder) GetRunHandle ¶ added in v0.3.0
func (mr *MockRuntimeMockRecorder) GetRunHandle(arg0, arg1 interface{}) *gomock.Call
GetRunHandle indicates an expected call of GetRunHandle.
func (*MockRuntimeMockRecorder) GetStreamHandle ¶ added in v0.3.0
func (mr *MockRuntimeMockRecorder) GetStreamHandle(arg0, arg1 interface{}) *gomock.Call
GetStreamHandle indicates an expected call of GetStreamHandle.
func (*MockRuntimeMockRecorder) OnApproval ¶ added in v0.3.1
func (mr *MockRuntimeMockRecorder) OnApproval(arg0, arg1, arg2 interface{}) *gomock.Call
OnApproval indicates an expected call of OnApproval.
func (*MockRuntimeMockRecorder) Run ¶ added in v0.3.0
func (mr *MockRuntimeMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockRuntimeMockRecorder) Stream ¶ added in v0.3.0
func (mr *MockRuntimeMockRecorder) Stream(arg0, arg1 interface{}) *gomock.Call
Stream indicates an expected call of Stream.
type MockStreamHandle ¶ added in v0.3.0
type MockStreamHandle struct {
// contains filtered or unexported fields
}
MockStreamHandle is a mock of StreamHandle interface.
func NewMockStreamHandle ¶ added in v0.3.0
func NewMockStreamHandle(ctrl *gomock.Controller) *MockStreamHandle
NewMockStreamHandle creates a new mock instance.
func (*MockStreamHandle) Approve ¶ added in v0.3.1
func (m *MockStreamHandle) Approve(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
Approve mocks base method.
func (*MockStreamHandle) Cancel ¶ added in v0.3.0
func (m *MockStreamHandle) Cancel(arg0 context.Context) error
Cancel mocks base method.
func (*MockStreamHandle) Done ¶ added in v0.3.0
func (m *MockStreamHandle) Done() <-chan struct{}
Done mocks base method.
func (*MockStreamHandle) EXPECT ¶ added in v0.3.0
func (m *MockStreamHandle) EXPECT() *MockStreamHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStreamHandle) Events ¶ added in v0.3.0
func (m *MockStreamHandle) Events(arg0 context.Context, arg1 int64) (<-chan events.AgentEvent, error)
Events mocks base method.
func (*MockStreamHandle) Get ¶ added in v0.3.0
func (m *MockStreamHandle) Get(arg0 context.Context) (*types.AgentRunResult, error)
Get mocks base method.
func (*MockStreamHandle) ID ¶ added in v0.3.0
func (m *MockStreamHandle) ID() string
ID mocks base method.
type MockStreamHandleMockRecorder ¶ added in v0.3.0
type MockStreamHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockStreamHandleMockRecorder is the mock recorder for MockStreamHandle.
func (*MockStreamHandleMockRecorder) Approve ¶ added in v0.3.1
func (mr *MockStreamHandleMockRecorder) Approve(arg0, arg1, arg2 interface{}) *gomock.Call
Approve indicates an expected call of Approve.
func (*MockStreamHandleMockRecorder) Cancel ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) Cancel(arg0 interface{}) *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockStreamHandleMockRecorder) Done ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockStreamHandleMockRecorder) Events ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) Events(arg0, arg1 interface{}) *gomock.Call
Events indicates an expected call of Events.
func (*MockStreamHandleMockRecorder) Get ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStreamHandleMockRecorder) ID ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockStreamHandleMockRecorder) Status ¶ added in v0.3.0
func (mr *MockStreamHandleMockRecorder) Status(arg0 interface{}) *gomock.Call
Status indicates an expected call of Status.
type MockWorkerRuntime ¶ added in v0.1.1
type MockWorkerRuntime struct {
// contains filtered or unexported fields
}
MockWorkerRuntime is a mock of WorkerRuntime interface.
func NewMockWorkerRuntime ¶ added in v0.1.1
func NewMockWorkerRuntime(ctrl *gomock.Controller) *MockWorkerRuntime
NewMockWorkerRuntime creates a new mock instance.
func (*MockWorkerRuntime) Close ¶ added in v0.1.1
func (m *MockWorkerRuntime) Close()
Close mocks base method.
func (*MockWorkerRuntime) EXPECT ¶ added in v0.1.1
func (m *MockWorkerRuntime) EXPECT() *MockWorkerRuntimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkerRuntime) GetRunHandle ¶ added in v0.3.0
func (m *MockWorkerRuntime) GetRunHandle(arg0 context.Context, arg1 string) (runtime.RunHandle, error)
GetRunHandle mocks base method.
func (*MockWorkerRuntime) GetStreamHandle ¶ added in v0.3.0
func (m *MockWorkerRuntime) GetStreamHandle(arg0 context.Context, arg1 string) (runtime.StreamHandle, error)
GetStreamHandle mocks base method.
func (*MockWorkerRuntime) OnApproval ¶ added in v0.3.1
func (m *MockWorkerRuntime) OnApproval(arg0 context.Context, arg1 string, arg2 types.ApprovalStatus) error
OnApproval mocks base method.
func (*MockWorkerRuntime) Run ¶ added in v0.3.0
func (m *MockWorkerRuntime) Run(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.RunHandle, error)
Run mocks base method.
func (*MockWorkerRuntime) Start ¶ added in v0.1.1
func (m *MockWorkerRuntime) Start(arg0 context.Context) error
Start mocks base method.
func (*MockWorkerRuntime) Stop ¶ added in v0.1.1
func (m *MockWorkerRuntime) Stop()
Stop mocks base method.
func (*MockWorkerRuntime) Stream ¶ added in v0.3.0
func (m *MockWorkerRuntime) Stream(arg0 context.Context, arg1 *runtime.RunRequest) (runtime.StreamHandle, error)
Stream mocks base method.
type MockWorkerRuntimeMockRecorder ¶ added in v0.1.1
type MockWorkerRuntimeMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerRuntimeMockRecorder is the mock recorder for MockWorkerRuntime.
func (*MockWorkerRuntimeMockRecorder) Close ¶ added in v0.1.1
func (mr *MockWorkerRuntimeMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockWorkerRuntimeMockRecorder) GetRunHandle ¶ added in v0.3.0
func (mr *MockWorkerRuntimeMockRecorder) GetRunHandle(arg0, arg1 interface{}) *gomock.Call
GetRunHandle indicates an expected call of GetRunHandle.
func (*MockWorkerRuntimeMockRecorder) GetStreamHandle ¶ added in v0.3.0
func (mr *MockWorkerRuntimeMockRecorder) GetStreamHandle(arg0, arg1 interface{}) *gomock.Call
GetStreamHandle indicates an expected call of GetStreamHandle.
func (*MockWorkerRuntimeMockRecorder) OnApproval ¶ added in v0.3.1
func (mr *MockWorkerRuntimeMockRecorder) OnApproval(arg0, arg1, arg2 interface{}) *gomock.Call
OnApproval indicates an expected call of OnApproval.
func (*MockWorkerRuntimeMockRecorder) Run ¶ added in v0.3.0
func (mr *MockWorkerRuntimeMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockWorkerRuntimeMockRecorder) Start ¶ added in v0.1.1
func (mr *MockWorkerRuntimeMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockWorkerRuntimeMockRecorder) Stop ¶ added in v0.1.1
func (mr *MockWorkerRuntimeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockWorkerRuntimeMockRecorder) Stream ¶ added in v0.3.0
func (mr *MockWorkerRuntimeMockRecorder) Stream(arg0, arg1 interface{}) *gomock.Call
Stream indicates an expected call of Stream.