testvars

package
v1.27.0-127.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	// contains filtered or unexported fields
}

func (Any) ApplicationFailure added in v1.26.0

func (a Any) ApplicationFailure() *failurepb.Failure

func (Any) EventID

func (a Any) EventID() int64

func (Any) InfiniteTimeout added in v1.27.0

func (a Any) InfiniteTimeout() *durationpb.Duration

func (Any) Int

func (a Any) Int() int

func (Any) Int64 added in v1.26.2

func (a Any) Int64() int64

func (Any) Payload

func (a Any) Payload() *commonpb.Payload

func (Any) Payloads

func (a Any) Payloads() *commonpb.Payloads

func (Any) RunID added in v1.25.2

func (a Any) RunID() string

func (Any) String

func (a Any) String() string

type Global

type Global struct {
}

func (Global) ClusterName

func (c Global) ClusterName() string

func (Global) RemoteClusterName

func (c Global) RemoteClusterName() string

type TestVars

type TestVars struct {
	// contains filtered or unexported fields
}

func New

func New(testNamer testNamer) *TestVars

func (*TestVars) ActivityID

func (tv *TestVars) ActivityID() string

func (*TestVars) ActivityType

func (tv *TestVars) ActivityType() *commonpb.ActivityType

func (*TestVars) Any

func (tv *TestVars) Any() Any

----------- Generic methods ------------

func (*TestVars) BuildID added in v1.27.0

func (tv *TestVars) BuildID() string

func (*TestVars) ClientIdentity added in v1.25.0

func (tv *TestVars) ClientIdentity() string

func (*TestVars) Deployment added in v1.26.2

func (tv *TestVars) Deployment() *deploymentpb.Deployment

func (*TestVars) DeploymentSeries added in v1.26.2

func (tv *TestVars) DeploymentSeries() string

func (*TestVars) DeploymentTransition

func (tv *TestVars) DeploymentTransition() *workflowpb.DeploymentTransition

func (*TestVars) Global

func (tv *TestVars) Global() Global

func (*TestVars) HandlerName

func (tv *TestVars) HandlerName() string

func (*TestVars) IndexName added in v1.26.2

func (tv *TestVars) IndexName() string

func (*TestVars) MessageID

func (tv *TestVars) MessageID() string

func (*TestVars) Namespace

func (tv *TestVars) Namespace() *namespace.Namespace

func (*TestVars) NamespaceID

func (tv *TestVars) NamespaceID() namespace.ID

func (*TestVars) NamespaceName

func (tv *TestVars) NamespaceName() namespace.Name

func (*TestVars) Operation added in v1.27.0

func (tv *TestVars) Operation() string

func (*TestVars) Query added in v1.27.0

func (tv *TestVars) Query() *querypb.WorkflowQuery

func (*TestVars) QueryType added in v1.25.0

func (tv *TestVars) QueryType() string

func (*TestVars) RequestID added in v1.27.0

func (tv *TestVars) RequestID() string

func (*TestVars) RunID

func (tv *TestVars) RunID() string

RunID is different from other getters. By default, it returns an empty string. This is to simplify the usage of WorkflowExecution() which most of the time doesn't need RunID. Otherwise, RunID can be set explicitly using WithRunID.

func (*TestVars) Service added in v1.27.0

func (tv *TestVars) Service() string

func (*TestVars) SignalName added in v1.27.0

func (tv *TestVars) SignalName() string

func (*TestVars) StickyExecutionAttributes added in v1.26.2

func (tv *TestVars) StickyExecutionAttributes(timeout time.Duration) *taskqueuepb.StickyExecutionAttributes

func (*TestVars) StickyTaskQueue

func (tv *TestVars) StickyTaskQueue() *taskqueuepb.TaskQueue

func (*TestVars) TaskQueue

func (tv *TestVars) TaskQueue() *taskqueuepb.TaskQueue

func (*TestVars) TimerID

func (tv *TestVars) TimerID() string

func (*TestVars) UpdateID

func (tv *TestVars) UpdateID() string

func (*TestVars) UpdateRef

func (tv *TestVars) UpdateRef() *updatepb.UpdateRef

func (*TestVars) VersioningOverridePinned added in v1.27.0

func (tv *TestVars) VersioningOverridePinned() *workflowpb.VersioningOverride

func (*TestVars) WithActivityIDNumber added in v1.27.0

func (tv *TestVars) WithActivityIDNumber(n int) *TestVars

func (*TestVars) WithBuildIDNumber added in v1.27.0

func (tv *TestVars) WithBuildIDNumber(n int) *TestVars

func (*TestVars) WithDeploymentSeriesNumber added in v1.27.0

func (tv *TestVars) WithDeploymentSeriesNumber(n int) *TestVars

func (*TestVars) WithMessageIDNumber added in v1.27.0

func (tv *TestVars) WithMessageIDNumber(n int) *TestVars

func (*TestVars) WithNamespaceID

func (tv *TestVars) WithNamespaceID(namespaceID namespace.ID) *TestVars

func (*TestVars) WithNamespaceName

func (tv *TestVars) WithNamespaceName(namespaceName namespace.Name) *TestVars

func (*TestVars) WithRunID

func (tv *TestVars) WithRunID(runID string) *TestVars

func (*TestVars) WithTaskQueue

func (tv *TestVars) WithTaskQueue(taskQueue string) *TestVars

func (*TestVars) WithTaskQueueNumber added in v1.27.0

func (tv *TestVars) WithTaskQueueNumber(n int) *TestVars

func (*TestVars) WithTimerIDNumber added in v1.27.0

func (tv *TestVars) WithTimerIDNumber(n int) *TestVars

func (*TestVars) WithUpdateIDNumber added in v1.27.0

func (tv *TestVars) WithUpdateIDNumber(n int) *TestVars

func (*TestVars) WithWorkflowIDNumber added in v1.27.0

func (tv *TestVars) WithWorkflowIDNumber(n int) *TestVars

func (*TestVars) WorkerIdentity

func (tv *TestVars) WorkerIdentity() string

func (*TestVars) WorkflowExecution

func (tv *TestVars) WorkflowExecution() *commonpb.WorkflowExecution

func (*TestVars) WorkflowID

func (tv *TestVars) WorkflowID() string

func (*TestVars) WorkflowType

func (tv *TestVars) WorkflowType() *commonpb.WorkflowType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳