mocks

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsClientInterface

type ActionsClientInterface struct {
	mock.Mock
}

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 (*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

type ActionsClientInterface_AbortAction_Call struct {
	*mock.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 (*ActionsClientInterface_AbortAction_Call) Run

func (*ActionsClientInterface_AbortAction_Call) RunAndReturn

type ActionsClientInterface_Enqueue_Call

type ActionsClientInterface_Enqueue_Call struct {
	*mock.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 (*ActionsClientInterface_Enqueue_Call) Run

func (*ActionsClientInterface_Enqueue_Call) RunAndReturn

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

StartWatching is a helper method to define mock.On call

  • ctx context.Context

func (*ActionsClientInterface_Expecter) StopWatching

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

type ActionsClientInterface_GetState_Call struct {
	*mock.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 (*ActionsClientInterface_GetState_Call) Run

func (*ActionsClientInterface_GetState_Call) RunAndReturn

type ActionsClientInterface_ListChildActions_Call

type ActionsClientInterface_ListChildActions_Call struct {
	*mock.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 (*ActionsClientInterface_ListChildActions_Call) Run

func (*ActionsClientInterface_ListChildActions_Call) RunAndReturn

type ActionsClientInterface_PutState_Call

type ActionsClientInterface_PutState_Call struct {
	*mock.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 (*ActionsClientInterface_PutState_Call) Run

func (*ActionsClientInterface_PutState_Call) RunAndReturn

type ActionsClientInterface_StartWatching_Call

type ActionsClientInterface_StartWatching_Call struct {
	*mock.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 (*ActionsClientInterface_StartWatching_Call) Run

func (*ActionsClientInterface_StartWatching_Call) RunAndReturn

type ActionsClientInterface_StopWatching_Call

type ActionsClientInterface_StopWatching_Call struct {
	*mock.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 (*ActionsClientInterface_StopWatching_Call) Run

func (*ActionsClientInterface_StopWatching_Call) RunAndReturn

type ActionsClientInterface_Subscribe_Call

type ActionsClientInterface_Subscribe_Call struct {
	*mock.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 (*ActionsClientInterface_Subscribe_Call) Run

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

type ActionsClientInterface_Unsubscribe_Call struct {
	*mock.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 (*ActionsClientInterface_Unsubscribe_Call) Run

func (*ActionsClientInterface_Unsubscribe_Call) RunAndReturn

func (_c *ActionsClientInterface_Unsubscribe_Call) RunAndReturn(run func(parentActionName string, ch chan *k8s.ActionUpdate)) *ActionsClientInterface_Unsubscribe_Call

Jump to

Keyboard shortcuts

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