v1alpha1_jobservice

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IsAuthEnabled bool

	RunLogConfig *RunLogConfig
}

type Destination

type Destination struct {
	ConnectionId pgtype.UUID
	Options      *pg_models.JobDestinationOptions
}

type KubePodRunLogConfig

type KubePodRunLogConfig struct {
	Namespace     string
	WorkerAppName string
}

type LogLine

type LogLine struct {
	WorkflowID string     `json:"WorkflowID"`
	Time       *time.Time `json:"time,omitempty"`
	Level      string     `json:"level"`
}

type LokiRunLogConfig

type LokiRunLogConfig struct {
	BaseUrl string

	LabelsQuery string // Labels to filter loki by, without the curly braces
	// labels to keep after the json filtering. Keeps ordering. Not sure if it will always need to equal the labels query keys, so separating this
	KeepLabels []string
}

type MockNamespaceClient

type MockNamespaceClient struct {
	mock.Mock
}

MockNamespaceClient is a mock of Namespace Client interface.

func (*MockNamespaceClient) Close

func (_m *MockNamespaceClient) Close()

func (*MockNamespaceClient) Describe

func (_m *MockNamespaceClient) Describe(ctx context.Context, name string) (*workflowservice.DescribeNamespaceResponse, error)

func (*MockNamespaceClient) Register

func (_m *MockNamespaceClient) Register(ctx context.Context, request *workflowservice.RegisterNamespaceRequest) error

func (*MockNamespaceClient) Update

func (_m *MockNamespaceClient) Update(ctx context.Context, request *workflowservice.UpdateNamespaceRequest) error

type MockScheduleClient

type MockScheduleClient struct {
	mock.Mock
	Handle temporalclient.ScheduleHandle
}

MockScheduleClient is a mock of Schedule Client interface.

func (*MockScheduleClient) Create

func (*MockScheduleClient) GetHandle

func (_m *MockScheduleClient) GetHandle(ctx context.Context, scheduleID string) temporalclient.ScheduleHandle

type MockScheduleHandle

type MockScheduleHandle struct {
	mock.Mock
}

MockScheduleHandle is a mock of ScheduleHandle interface.

func (*MockScheduleHandle) Backfill

func (*MockScheduleHandle) Delete

func (m *MockScheduleHandle) Delete(ctx context.Context) error

func (*MockScheduleHandle) Describe

func (*MockScheduleHandle) GetID

func (m *MockScheduleHandle) GetID() string

func (*MockScheduleHandle) Pause

func (*MockScheduleHandle) Trigger

func (*MockScheduleHandle) Unpause

func (*MockScheduleHandle) Update

type MockTemporalClient

type MockTemporalClient struct {
	mock.Mock
}

MockTemporalClient is a mock of temporal client interface.

func (*MockTemporalClient) CancelWorkflow

func (m *MockTemporalClient) CancelWorkflow(ctx context.Context, workflowID string, runID string) error

func (*MockTemporalClient) CheckHealth

func (*MockTemporalClient) Close

func (m *MockTemporalClient) Close()

func (*MockTemporalClient) CompleteActivity

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

func (*MockTemporalClient) CompleteActivityByID

func (m *MockTemporalClient) CompleteActivityByID(ctx context.Context, namespace, workflowID, runID, activityID string, result interface{}, err error) error

func (*MockTemporalClient) CountWorkflow

func (m *MockTemporalClient) CountWorkflow(ctx context.Context, request *workflowservice.CountWorkflowExecutionsRequest) (*workflowservice.CountWorkflowExecutionsResponse, error)

func (*MockTemporalClient) DescribeTaskQueue

func (m *MockTemporalClient) DescribeTaskQueue(ctx context.Context, taskqueue string, taskqueueType enums.TaskQueueType) (*workflowservice.DescribeTaskQueueResponse, error)

func (*MockTemporalClient) DescribeWorkflowExecution

func (m *MockTemporalClient) DescribeWorkflowExecution(ctx context.Context, workflowID, runID string) (*workflowservice.DescribeWorkflowExecutionResponse, error)

func (*MockTemporalClient) ExecuteWorkflow

func (m *MockTemporalClient) ExecuteWorkflow(ctx context.Context, options temporalclient.StartWorkflowOptions, workflow interface{}, args ...interface{}) (temporalclient.WorkflowRun, error)

func (*MockTemporalClient) GetSearchAttributes

func (m *MockTemporalClient) GetSearchAttributes(ctx context.Context) (*workflowservice.GetSearchAttributesResponse, error)

func (*MockTemporalClient) GetWorkflow

func (m *MockTemporalClient) GetWorkflow(ctx context.Context, workflowID string, runID string) temporalclient.WorkflowRun

func (*MockTemporalClient) GetWorkflowHistory

func (m *MockTemporalClient) GetWorkflowHistory(ctx context.Context, workflowID string, runID string, isLongPoll bool, filterType enums.HistoryEventFilterType) temporalclient.HistoryEventIterator

func (*MockTemporalClient) ListArchivedWorkflow

func (m *MockTemporalClient) ListArchivedWorkflow(ctx context.Context, request *workflowservice.ListArchivedWorkflowExecutionsRequest) (*workflowservice.ListArchivedWorkflowExecutionsResponse, error)

func (*MockTemporalClient) ListClosedWorkflow

func (m *MockTemporalClient) ListClosedWorkflow(ctx context.Context, request *workflowservice.ListClosedWorkflowExecutionsRequest) (*workflowservice.ListClosedWorkflowExecutionsResponse, error)

func (*MockTemporalClient) ListOpenWorkflow

func (m *MockTemporalClient) ListOpenWorkflow(ctx context.Context, request *workflowservice.ListOpenWorkflowExecutionsRequest) (*workflowservice.ListOpenWorkflowExecutionsResponse, error)

func (*MockTemporalClient) ListWorkflow

func (m *MockTemporalClient) ListWorkflow(ctx context.Context, request *workflowservice.ListWorkflowExecutionsRequest) (*workflowservice.ListWorkflowExecutionsResponse, error)

func (*MockTemporalClient) OperatorService

func (m *MockTemporalClient) OperatorService() operatorservice.OperatorServiceClient

func (*MockTemporalClient) QueryWorkflow

func (m *MockTemporalClient) QueryWorkflow(ctx context.Context, workflowID string, runID string, queryType string, args ...interface{}) (converter.EncodedValue, error)

func (*MockTemporalClient) RecordActivityHeartbeat

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

func (*MockTemporalClient) RecordActivityHeartbeatByID

func (m *MockTemporalClient) RecordActivityHeartbeatByID(ctx context.Context, namespace, workflowID, runID, activityID string, details ...interface{}) error

func (*MockTemporalClient) ResetWorkflowExecution

func (m *MockTemporalClient) ResetWorkflowExecution(ctx context.Context, request *workflowservice.ResetWorkflowExecutionRequest) (*workflowservice.ResetWorkflowExecutionResponse, error)

func (*MockTemporalClient) ScanWorkflow

func (m *MockTemporalClient) ScanWorkflow(ctx context.Context, request *workflowservice.ScanWorkflowExecutionsRequest) (*workflowservice.ScanWorkflowExecutionsResponse, error)

func (*MockTemporalClient) ScheduleClient

func (m *MockTemporalClient) ScheduleClient() temporalclient.ScheduleClient

func (*MockTemporalClient) SignalWithStartWorkflow

func (m *MockTemporalClient) SignalWithStartWorkflow(ctx context.Context, workflowID string, signalName string, signalArg interface{}, options temporalclient.StartWorkflowOptions, workflow interface{}, workflowArgs ...interface{}) (temporalclient.WorkflowRun, error)

func (*MockTemporalClient) SignalWorkflow

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

func (*MockTemporalClient) TerminateWorkflow

func (m *MockTemporalClient) TerminateWorkflow(ctx context.Context, workflowID string, runID string, reason string, details ...interface{}) error

func (*MockTemporalClient) UpdateWorkerBuildIdCompatibility

func (m *MockTemporalClient) UpdateWorkerBuildIdCompatibility(ctx context.Context, options *temporalclient.UpdateWorkerBuildIdCompatibilityOptions) error

func (*MockTemporalClient) UpdateWorkflow

func (m *MockTemporalClient) UpdateWorkflow(ctx context.Context, workflowID string, workflowRunID string, updateName string, args ...interface{}) (temporalclient.WorkflowUpdateHandle, error)

func (*MockTemporalClient) WorkflowService

func (m *MockTemporalClient) WorkflowService() workflowservice.WorkflowServiceClient

type RunLogConfig

type RunLogConfig struct {
	IsEnabled        bool
	RunLogType       *RunLogType
	RunLogPodConfig  *KubePodRunLogConfig // required if RunLogType is k8s-pods
	LokiRunLogConfig *LokiRunLogConfig    // required if RunLogType is loki
}

type RunLogType

type RunLogType string
const (
	KubePodRunLogType RunLogType = "k8s-pods"
	LokiRunLogType    RunLogType = "loki"
)

type Service

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

Jump to

Keyboard shortcuts

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