Documentation
¶
Index ¶
- type ActionsClientInterface
- func (_mock *ActionsClientInterface) AbortAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error
- func (_m *ActionsClientInterface) EXPECT() *ActionsClientInterface_Expecter
- func (_mock *ActionsClientInterface) Enqueue(ctx context.Context, action *actions.Action, runSpec *task.RunSpec) error
- func (_mock *ActionsClientInterface) GetState(ctx context.Context, actionID *common.ActionIdentifier) (string, error)
- func (_mock *ActionsClientInterface) ListChildActions(ctx context.Context, parentActionID *common.ActionIdentifier) ([]*v1.TaskAction, error)
- func (_mock *ActionsClientInterface) PutState(ctx context.Context, actionID *common.ActionIdentifier, attempt uint32, ...) error
- func (_mock *ActionsClientInterface) StartWatching(ctx context.Context) error
- func (_mock *ActionsClientInterface) StopWatching()
- func (_mock *ActionsClientInterface) Subscribe(parentActionName string) chan *k8s.ActionUpdate
- func (_mock *ActionsClientInterface) Unsubscribe(parentActionName string, ch chan *k8s.ActionUpdate)
- type ActionsClientInterface_AbortAction_Call
- func (_c *ActionsClientInterface_AbortAction_Call) Return(err error) *ActionsClientInterface_AbortAction_Call
- func (_c *ActionsClientInterface_AbortAction_Call) Run(...) *ActionsClientInterface_AbortAction_Call
- func (_c *ActionsClientInterface_AbortAction_Call) RunAndReturn(...) *ActionsClientInterface_AbortAction_Call
- type ActionsClientInterface_Enqueue_Call
- func (_c *ActionsClientInterface_Enqueue_Call) Return(err error) *ActionsClientInterface_Enqueue_Call
- func (_c *ActionsClientInterface_Enqueue_Call) Run(run func(ctx context.Context, action *actions.Action, runSpec *task.RunSpec)) *ActionsClientInterface_Enqueue_Call
- func (_c *ActionsClientInterface_Enqueue_Call) RunAndReturn(...) *ActionsClientInterface_Enqueue_Call
- type ActionsClientInterface_Expecter
- func (_e *ActionsClientInterface_Expecter) AbortAction(ctx interface{}, actionID interface{}, reason interface{}) *ActionsClientInterface_AbortAction_Call
- func (_e *ActionsClientInterface_Expecter) Enqueue(ctx interface{}, action interface{}, runSpec interface{}) *ActionsClientInterface_Enqueue_Call
- func (_e *ActionsClientInterface_Expecter) GetState(ctx interface{}, actionID interface{}) *ActionsClientInterface_GetState_Call
- func (_e *ActionsClientInterface_Expecter) ListChildActions(ctx interface{}, parentActionID interface{}) *ActionsClientInterface_ListChildActions_Call
- func (_e *ActionsClientInterface_Expecter) PutState(ctx interface{}, actionID interface{}, attempt interface{}, status interface{}, ...) *ActionsClientInterface_PutState_Call
- func (_e *ActionsClientInterface_Expecter) StartWatching(ctx interface{}) *ActionsClientInterface_StartWatching_Call
- func (_e *ActionsClientInterface_Expecter) StopWatching() *ActionsClientInterface_StopWatching_Call
- func (_e *ActionsClientInterface_Expecter) Subscribe(parentActionName interface{}) *ActionsClientInterface_Subscribe_Call
- func (_e *ActionsClientInterface_Expecter) Unsubscribe(parentActionName interface{}, ch interface{}) *ActionsClientInterface_Unsubscribe_Call
- type ActionsClientInterface_GetState_Call
- func (_c *ActionsClientInterface_GetState_Call) Return(s string, err error) *ActionsClientInterface_GetState_Call
- func (_c *ActionsClientInterface_GetState_Call) Run(run func(ctx context.Context, actionID *common.ActionIdentifier)) *ActionsClientInterface_GetState_Call
- func (_c *ActionsClientInterface_GetState_Call) RunAndReturn(...) *ActionsClientInterface_GetState_Call
- type ActionsClientInterface_ListChildActions_Call
- func (_c *ActionsClientInterface_ListChildActions_Call) Return(taskActions []*v1.TaskAction, err error) *ActionsClientInterface_ListChildActions_Call
- func (_c *ActionsClientInterface_ListChildActions_Call) Run(run func(ctx context.Context, parentActionID *common.ActionIdentifier)) *ActionsClientInterface_ListChildActions_Call
- func (_c *ActionsClientInterface_ListChildActions_Call) RunAndReturn(...) *ActionsClientInterface_ListChildActions_Call
- type ActionsClientInterface_PutState_Call
- func (_c *ActionsClientInterface_PutState_Call) Return(err error) *ActionsClientInterface_PutState_Call
- func (_c *ActionsClientInterface_PutState_Call) Run(...) *ActionsClientInterface_PutState_Call
- func (_c *ActionsClientInterface_PutState_Call) RunAndReturn(...) *ActionsClientInterface_PutState_Call
- type ActionsClientInterface_StartWatching_Call
- func (_c *ActionsClientInterface_StartWatching_Call) Return(err error) *ActionsClientInterface_StartWatching_Call
- func (_c *ActionsClientInterface_StartWatching_Call) Run(run func(ctx context.Context)) *ActionsClientInterface_StartWatching_Call
- func (_c *ActionsClientInterface_StartWatching_Call) RunAndReturn(run func(ctx context.Context) error) *ActionsClientInterface_StartWatching_Call
- type ActionsClientInterface_StopWatching_Call
- func (_c *ActionsClientInterface_StopWatching_Call) Return() *ActionsClientInterface_StopWatching_Call
- func (_c *ActionsClientInterface_StopWatching_Call) Run(run func()) *ActionsClientInterface_StopWatching_Call
- func (_c *ActionsClientInterface_StopWatching_Call) RunAndReturn(run func()) *ActionsClientInterface_StopWatching_Call
- type ActionsClientInterface_Subscribe_Call
- func (_c *ActionsClientInterface_Subscribe_Call) Return(actionUpdateCh chan *k8s.ActionUpdate) *ActionsClientInterface_Subscribe_Call
- func (_c *ActionsClientInterface_Subscribe_Call) Run(run func(parentActionName string)) *ActionsClientInterface_Subscribe_Call
- func (_c *ActionsClientInterface_Subscribe_Call) RunAndReturn(run func(parentActionName string) chan *k8s.ActionUpdate) *ActionsClientInterface_Subscribe_Call
- type ActionsClientInterface_Unsubscribe_Call
- func (_c *ActionsClientInterface_Unsubscribe_Call) Return() *ActionsClientInterface_Unsubscribe_Call
- func (_c *ActionsClientInterface_Unsubscribe_Call) Run(run func(parentActionName string, ch chan *k8s.ActionUpdate)) *ActionsClientInterface_Unsubscribe_Call
- func (_c *ActionsClientInterface_Unsubscribe_Call) RunAndReturn(run func(parentActionName string, ch chan *k8s.ActionUpdate)) *ActionsClientInterface_Unsubscribe_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsClientInterface ¶
ActionsClientInterface is an autogenerated mock type for the ActionsClientInterface type
func NewActionsClientInterface ¶
func NewActionsClientInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ActionsClientInterface
NewActionsClientInterface creates a new instance of ActionsClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ActionsClientInterface) AbortAction ¶
func (_mock *ActionsClientInterface) AbortAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error
AbortAction provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) EXPECT ¶
func (_m *ActionsClientInterface) EXPECT() *ActionsClientInterface_Expecter
func (*ActionsClientInterface) Enqueue ¶
func (_mock *ActionsClientInterface) Enqueue(ctx context.Context, action *actions.Action, runSpec *task.RunSpec) error
Enqueue provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) GetState ¶
func (_mock *ActionsClientInterface) GetState(ctx context.Context, actionID *common.ActionIdentifier) (string, error)
GetState provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) ListChildActions ¶
func (_mock *ActionsClientInterface) ListChildActions(ctx context.Context, parentActionID *common.ActionIdentifier) ([]*v1.TaskAction, error)
ListChildActions provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) PutState ¶
func (_mock *ActionsClientInterface) PutState(ctx context.Context, actionID *common.ActionIdentifier, attempt uint32, status *workflow.ActionStatus, stateJSON string) error
PutState provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) StartWatching ¶
func (_mock *ActionsClientInterface) StartWatching(ctx context.Context) error
StartWatching provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) StopWatching ¶
func (_mock *ActionsClientInterface) StopWatching()
StopWatching provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) Subscribe ¶
func (_mock *ActionsClientInterface) Subscribe(parentActionName string) chan *k8s.ActionUpdate
Subscribe provides a mock function for the type ActionsClientInterface
func (*ActionsClientInterface) Unsubscribe ¶
func (_mock *ActionsClientInterface) Unsubscribe(parentActionName string, ch chan *k8s.ActionUpdate)
Unsubscribe provides a mock function for the type ActionsClientInterface
type ActionsClientInterface_AbortAction_Call ¶
ActionsClientInterface_AbortAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortAction'
func (*ActionsClientInterface_AbortAction_Call) Return ¶
func (_c *ActionsClientInterface_AbortAction_Call) Return(err error) *ActionsClientInterface_AbortAction_Call
func (*ActionsClientInterface_AbortAction_Call) Run ¶
func (_c *ActionsClientInterface_AbortAction_Call) Run(run func(ctx context.Context, actionID *common.ActionIdentifier, reason *string)) *ActionsClientInterface_AbortAction_Call
func (*ActionsClientInterface_AbortAction_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_AbortAction_Call) RunAndReturn(run func(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error) *ActionsClientInterface_AbortAction_Call
type ActionsClientInterface_Enqueue_Call ¶
ActionsClientInterface_Enqueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enqueue'
func (*ActionsClientInterface_Enqueue_Call) Return ¶
func (_c *ActionsClientInterface_Enqueue_Call) Return(err error) *ActionsClientInterface_Enqueue_Call
func (*ActionsClientInterface_Enqueue_Call) Run ¶
func (_c *ActionsClientInterface_Enqueue_Call) Run(run func(ctx context.Context, action *actions.Action, runSpec *task.RunSpec)) *ActionsClientInterface_Enqueue_Call
func (*ActionsClientInterface_Enqueue_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_Enqueue_Call) RunAndReturn(run func(ctx context.Context, action *actions.Action, runSpec *task.RunSpec) error) *ActionsClientInterface_Enqueue_Call
type ActionsClientInterface_Expecter ¶
type ActionsClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ActionsClientInterface_Expecter) AbortAction ¶
func (_e *ActionsClientInterface_Expecter) AbortAction(ctx interface{}, actionID interface{}, reason interface{}) *ActionsClientInterface_AbortAction_Call
AbortAction is a helper method to define mock.On call
- ctx context.Context
- actionID *common.ActionIdentifier
- reason *string
func (*ActionsClientInterface_Expecter) Enqueue ¶
func (_e *ActionsClientInterface_Expecter) Enqueue(ctx interface{}, action interface{}, runSpec interface{}) *ActionsClientInterface_Enqueue_Call
Enqueue is a helper method to define mock.On call
- ctx context.Context
- action *actions.Action
- runSpec *task.RunSpec
func (*ActionsClientInterface_Expecter) GetState ¶
func (_e *ActionsClientInterface_Expecter) GetState(ctx interface{}, actionID interface{}) *ActionsClientInterface_GetState_Call
GetState is a helper method to define mock.On call
- ctx context.Context
- actionID *common.ActionIdentifier
func (*ActionsClientInterface_Expecter) ListChildActions ¶
func (_e *ActionsClientInterface_Expecter) ListChildActions(ctx interface{}, parentActionID interface{}) *ActionsClientInterface_ListChildActions_Call
ListChildActions is a helper method to define mock.On call
- ctx context.Context
- parentActionID *common.ActionIdentifier
func (*ActionsClientInterface_Expecter) PutState ¶
func (_e *ActionsClientInterface_Expecter) PutState(ctx interface{}, actionID interface{}, attempt interface{}, status interface{}, stateJSON interface{}) *ActionsClientInterface_PutState_Call
PutState is a helper method to define mock.On call
- ctx context.Context
- actionID *common.ActionIdentifier
- attempt uint32
- status *workflow.ActionStatus
- stateJSON string
func (*ActionsClientInterface_Expecter) StartWatching ¶
func (_e *ActionsClientInterface_Expecter) StartWatching(ctx interface{}) *ActionsClientInterface_StartWatching_Call
StartWatching is a helper method to define mock.On call
- ctx context.Context
func (*ActionsClientInterface_Expecter) StopWatching ¶
func (_e *ActionsClientInterface_Expecter) StopWatching() *ActionsClientInterface_StopWatching_Call
StopWatching is a helper method to define mock.On call
func (*ActionsClientInterface_Expecter) Subscribe ¶
func (_e *ActionsClientInterface_Expecter) Subscribe(parentActionName interface{}) *ActionsClientInterface_Subscribe_Call
Subscribe is a helper method to define mock.On call
- parentActionName string
func (*ActionsClientInterface_Expecter) Unsubscribe ¶
func (_e *ActionsClientInterface_Expecter) Unsubscribe(parentActionName interface{}, ch interface{}) *ActionsClientInterface_Unsubscribe_Call
Unsubscribe is a helper method to define mock.On call
- parentActionName string
- ch chan *k8s.ActionUpdate
type ActionsClientInterface_GetState_Call ¶
ActionsClientInterface_GetState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetState'
func (*ActionsClientInterface_GetState_Call) Return ¶
func (_c *ActionsClientInterface_GetState_Call) Return(s string, err error) *ActionsClientInterface_GetState_Call
func (*ActionsClientInterface_GetState_Call) Run ¶
func (_c *ActionsClientInterface_GetState_Call) Run(run func(ctx context.Context, actionID *common.ActionIdentifier)) *ActionsClientInterface_GetState_Call
func (*ActionsClientInterface_GetState_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_GetState_Call) RunAndReturn(run func(ctx context.Context, actionID *common.ActionIdentifier) (string, error)) *ActionsClientInterface_GetState_Call
type ActionsClientInterface_ListChildActions_Call ¶
ActionsClientInterface_ListChildActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChildActions'
func (*ActionsClientInterface_ListChildActions_Call) Return ¶
func (_c *ActionsClientInterface_ListChildActions_Call) Return(taskActions []*v1.TaskAction, err error) *ActionsClientInterface_ListChildActions_Call
func (*ActionsClientInterface_ListChildActions_Call) Run ¶
func (_c *ActionsClientInterface_ListChildActions_Call) Run(run func(ctx context.Context, parentActionID *common.ActionIdentifier)) *ActionsClientInterface_ListChildActions_Call
func (*ActionsClientInterface_ListChildActions_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_ListChildActions_Call) RunAndReturn(run func(ctx context.Context, parentActionID *common.ActionIdentifier) ([]*v1.TaskAction, error)) *ActionsClientInterface_ListChildActions_Call
type ActionsClientInterface_PutState_Call ¶
ActionsClientInterface_PutState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutState'
func (*ActionsClientInterface_PutState_Call) Return ¶
func (_c *ActionsClientInterface_PutState_Call) Return(err error) *ActionsClientInterface_PutState_Call
func (*ActionsClientInterface_PutState_Call) Run ¶
func (_c *ActionsClientInterface_PutState_Call) Run(run func(ctx context.Context, actionID *common.ActionIdentifier, attempt uint32, status *workflow.ActionStatus, stateJSON string)) *ActionsClientInterface_PutState_Call
func (*ActionsClientInterface_PutState_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_PutState_Call) RunAndReturn(run func(ctx context.Context, actionID *common.ActionIdentifier, attempt uint32, status *workflow.ActionStatus, stateJSON string) error) *ActionsClientInterface_PutState_Call
type ActionsClientInterface_StartWatching_Call ¶
ActionsClientInterface_StartWatching_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartWatching'
func (*ActionsClientInterface_StartWatching_Call) Return ¶
func (_c *ActionsClientInterface_StartWatching_Call) Return(err error) *ActionsClientInterface_StartWatching_Call
func (*ActionsClientInterface_StartWatching_Call) Run ¶
func (_c *ActionsClientInterface_StartWatching_Call) Run(run func(ctx context.Context)) *ActionsClientInterface_StartWatching_Call
func (*ActionsClientInterface_StartWatching_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_StartWatching_Call) RunAndReturn(run func(ctx context.Context) error) *ActionsClientInterface_StartWatching_Call
type ActionsClientInterface_StopWatching_Call ¶
ActionsClientInterface_StopWatching_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopWatching'
func (*ActionsClientInterface_StopWatching_Call) Return ¶
func (_c *ActionsClientInterface_StopWatching_Call) Return() *ActionsClientInterface_StopWatching_Call
func (*ActionsClientInterface_StopWatching_Call) Run ¶
func (_c *ActionsClientInterface_StopWatching_Call) Run(run func()) *ActionsClientInterface_StopWatching_Call
func (*ActionsClientInterface_StopWatching_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_StopWatching_Call) RunAndReturn(run func()) *ActionsClientInterface_StopWatching_Call
type ActionsClientInterface_Subscribe_Call ¶
ActionsClientInterface_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*ActionsClientInterface_Subscribe_Call) Return ¶
func (_c *ActionsClientInterface_Subscribe_Call) Return(actionUpdateCh chan *k8s.ActionUpdate) *ActionsClientInterface_Subscribe_Call
func (*ActionsClientInterface_Subscribe_Call) Run ¶
func (_c *ActionsClientInterface_Subscribe_Call) Run(run func(parentActionName string)) *ActionsClientInterface_Subscribe_Call
func (*ActionsClientInterface_Subscribe_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_Subscribe_Call) RunAndReturn(run func(parentActionName string) chan *k8s.ActionUpdate) *ActionsClientInterface_Subscribe_Call
type ActionsClientInterface_Unsubscribe_Call ¶
ActionsClientInterface_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe'
func (*ActionsClientInterface_Unsubscribe_Call) Return ¶
func (_c *ActionsClientInterface_Unsubscribe_Call) Return() *ActionsClientInterface_Unsubscribe_Call
func (*ActionsClientInterface_Unsubscribe_Call) Run ¶
func (_c *ActionsClientInterface_Unsubscribe_Call) Run(run func(parentActionName string, ch chan *k8s.ActionUpdate)) *ActionsClientInterface_Unsubscribe_Call
func (*ActionsClientInterface_Unsubscribe_Call) RunAndReturn ¶
func (_c *ActionsClientInterface_Unsubscribe_Call) RunAndReturn(run func(parentActionName string, ch chan *k8s.ActionUpdate)) *ActionsClientInterface_Unsubscribe_Call