mocks

package
v1.2.10-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.5.1

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v1.0.0

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) CancelWorkflow added in v0.5.1

func (_m *Client) CancelWorkflow(ctx context.Context, workflowID string, runID string, opts ...internal.Option) error

CancelWorkflow provides a mock function with given fields: ctx, workflowID, runID, opts

func (*Client) CompleteActivity added in v0.5.1

func (_m *Client) CompleteActivity(ctx context.Context, taskToken []byte, result interface{}, err error) error

CompleteActivity provides a mock function with given fields: ctx, taskToken, result, err

func (*Client) CompleteActivityByID added in v0.5.1

func (_m *Client) CompleteActivityByID(ctx context.Context, domain string, workflowID string, runID string, activityID string, result interface{}, err error) error

CompleteActivityByID provides a mock function with given fields: ctx, domain, workflowID, runID, activityID, result, err

func (*Client) CountWorkflow added in v0.8.3

CountWorkflow provides a mock function with given fields: ctx, request

func (*Client) DescribeTaskList added in v0.5.1

func (_m *Client) DescribeTaskList(ctx context.Context, tasklist string, tasklistType shared.TaskListType) (*shared.DescribeTaskListResponse, error)

DescribeTaskList provides a mock function with given fields: ctx, tasklist, tasklistType

func (*Client) DescribeWorkflowExecution added in v0.5.1

func (_m *Client) DescribeWorkflowExecution(ctx context.Context, workflowID string, runID string) (*shared.DescribeWorkflowExecutionResponse, error)

DescribeWorkflowExecution provides a mock function with given fields: ctx, workflowID, runID

func (*Client) ExecuteWorkflow added in v0.5.1

func (_m *Client) ExecuteWorkflow(ctx context.Context, options internal.StartWorkflowOptions, workflow interface{}, args ...interface{}) (internal.WorkflowRun, error)

ExecuteWorkflow provides a mock function with given fields: ctx, options, workflow, args

func (*Client) GetSearchAttributes added in v0.8.4

func (_m *Client) GetSearchAttributes(ctx context.Context) (*shared.GetSearchAttributesResponse, error)

GetSearchAttributes provides a mock function with given fields: ctx

func (*Client) GetWorkflow added in v0.8.3

func (_m *Client) GetWorkflow(ctx context.Context, workflowID string, runID string) internal.WorkflowRun

GetWorkflow provides a mock function with given fields: ctx, workflowID, runID

func (*Client) GetWorkflowHistory added in v0.5.1

func (_m *Client) GetWorkflowHistory(ctx context.Context, workflowID string, runID string, isLongPoll bool, filterType shared.HistoryEventFilterType) internal.HistoryEventIterator

GetWorkflowHistory provides a mock function with given fields: ctx, workflowID, runID, isLongPoll, filterType

func (*Client) ListArchivedWorkflow added in v0.10.0

ListArchivedWorkflow provides a mock function with given fields: ctx, request

func (*Client) ListClosedWorkflow added in v0.5.1

ListClosedWorkflow provides a mock function with given fields: ctx, request

func (*Client) ListOpenWorkflow added in v0.5.1

ListOpenWorkflow provides a mock function with given fields: ctx, request

func (*Client) ListWorkflow added in v0.8.3

ListWorkflow provides a mock function with given fields: ctx, request

func (*Client) QueryWorkflow added in v0.5.1

func (_m *Client) QueryWorkflow(ctx context.Context, workflowID string, runID string, queryType string, args ...interface{}) (internal.Value, error)

QueryWorkflow provides a mock function with given fields: ctx, workflowID, runID, queryType, args

func (*Client) QueryWorkflowWithOptions added in v0.9.3

QueryWorkflowWithOptions provides a mock function with given fields: ctx, request

func (*Client) RecordActivityHeartbeat added in v0.5.1

func (_m *Client) RecordActivityHeartbeat(ctx context.Context, taskToken []byte, details ...interface{}) error

RecordActivityHeartbeat provides a mock function with given fields: ctx, taskToken, details

func (*Client) RecordActivityHeartbeatByID added in v0.5.1

func (_m *Client) RecordActivityHeartbeatByID(ctx context.Context, domain string, workflowID string, runID string, activityID string, details ...interface{}) error

RecordActivityHeartbeatByID provides a mock function with given fields: ctx, domain, workflowID, runID, activityID, details

func (*Client) RefreshWorkflowTasks added in v1.0.0

func (_m *Client) RefreshWorkflowTasks(ctx context.Context, workflowID string, runID string) error

RefreshWorkflowTasks provides a mock function with given fields: ctx, workflowID, runID

func (*Client) ResetWorkflow added in v0.16.0

ResetWorkflow provides a mock function with given fields: ctx, request

func (*Client) ScanWorkflow added in v0.8.3

ScanWorkflow provides a mock function with given fields: ctx, request

func (*Client) SignalWithStartWorkflow added in v0.6.1

func (_m *Client) SignalWithStartWorkflow(ctx context.Context, workflowID string, signalName string, signalArg interface{}, options internal.StartWorkflowOptions, workflowFunc interface{}, workflowArgs ...interface{}) (*internal.WorkflowExecution, error)

SignalWithStartWorkflow provides a mock function with given fields: ctx, workflowID, signalName, signalArg, options, workflowFunc, workflowArgs

func (*Client) SignalWithStartWorkflowAsync

func (_m *Client) SignalWithStartWorkflowAsync(ctx context.Context, workflowID string, signalName string, signalArg interface{}, options internal.StartWorkflowOptions, workflow interface{}, workflowArgs ...interface{}) (*internal.WorkflowExecutionAsync, error)

SignalWithStartWorkflowAsync provides a mock function with given fields: ctx, workflowID, signalName, signalArg, options, workflow, workflowArgs

func (*Client) SignalWorkflow added in v0.5.1

func (_m *Client) SignalWorkflow(ctx context.Context, workflowID string, runID string, signalName string, arg interface{}) error

SignalWorkflow provides a mock function with given fields: ctx, workflowID, runID, signalName, arg

func (*Client) StartWorkflow added in v0.5.1

func (_m *Client) StartWorkflow(ctx context.Context, options internal.StartWorkflowOptions, workflowFunc interface{}, args ...interface{}) (*internal.WorkflowExecution, error)

StartWorkflow provides a mock function with given fields: ctx, options, workflowFunc, args

func (*Client) StartWorkflowAsync

func (_m *Client) StartWorkflowAsync(ctx context.Context, options internal.StartWorkflowOptions, workflow interface{}, args ...interface{}) (*internal.WorkflowExecutionAsync, error)

StartWorkflowAsync provides a mock function with given fields: ctx, options, workflow, args

func (*Client) TerminateWorkflow added in v0.5.1

func (_m *Client) TerminateWorkflow(ctx context.Context, workflowID string, runID string, reason string, details []byte) error

TerminateWorkflow provides a mock function with given fields: ctx, workflowID, runID, reason, details

type DomainClient added in v0.5.1

type DomainClient struct {
	mock.Mock
}

DomainClient is an autogenerated mock type for the DomainClient type

func NewDomainClient

func NewDomainClient(t mockConstructorTestingTNewDomainClient) *DomainClient

NewDomainClient creates a new instance of DomainClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DomainClient) Describe added in v0.5.1

Describe provides a mock function with given fields: ctx, name

func (*DomainClient) Register added in v0.5.1

func (_m *DomainClient) Register(ctx context.Context, request *shared.RegisterDomainRequest) error

Register provides a mock function with given fields: ctx, request

func (*DomainClient) Update added in v0.5.1

func (_m *DomainClient) Update(ctx context.Context, request *shared.UpdateDomainRequest) error

Update provides a mock function with given fields: ctx, request

type HistoryEventIterator added in v0.8.4

type HistoryEventIterator struct {
	mock.Mock
}

HistoryEventIterator is an autogenerated mock type for the HistoryEventIterator type

func NewHistoryEventIterator

func NewHistoryEventIterator(t mockConstructorTestingTNewHistoryEventIterator) *HistoryEventIterator

NewHistoryEventIterator creates a new instance of HistoryEventIterator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HistoryEventIterator) HasNext added in v0.8.4

func (_m *HistoryEventIterator) HasNext() bool

HasNext provides a mock function with given fields:

func (*HistoryEventIterator) Next added in v0.8.4

Next provides a mock function with given fields:

type Value added in v0.8.0

type Value struct {
	mock.Mock
}

Value is an autogenerated mock type for the Value type

func NewValue

func NewValue(t mockConstructorTestingTNewValue) *Value

NewValue creates a new instance of Value. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Value) Get added in v0.8.0

func (_m *Value) Get(valuePtr interface{}) error

Get provides a mock function with given fields: valuePtr

func (*Value) HasValue added in v0.8.0

func (_m *Value) HasValue() bool

HasValue provides a mock function with given fields:

type WorkflowRun added in v0.8.4

type WorkflowRun struct {
	mock.Mock
}

WorkflowRun is an autogenerated mock type for the WorkflowRun type

func NewWorkflowRun

func NewWorkflowRun(t mockConstructorTestingTNewWorkflowRun) *WorkflowRun

NewWorkflowRun creates a new instance of WorkflowRun. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WorkflowRun) Get added in v0.8.4

func (_m *WorkflowRun) Get(ctx context.Context, valuePtr interface{}) error

Get provides a mock function with given fields: ctx, valuePtr

func (*WorkflowRun) GetID added in v0.8.4

func (_m *WorkflowRun) GetID() string

GetID provides a mock function with given fields:

func (*WorkflowRun) GetRunID added in v0.8.4

func (_m *WorkflowRun) GetRunID() string

GetRunID provides a mock function with given fields:

Jump to

Keyboard shortcuts

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