support

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(resolver resolve.CompositeResolver) mapper.Factory

func RegisterTelemetryService added in v0.0.2

func RegisterTelemetryService(service TelemetryService)

Types

type ExprMapperFactory

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

func (*ExprMapperFactory) NewMapper

func (mf *ExprMapperFactory) NewMapper(mappings map[string]interface{}) (mapper.Mapper, error)

type OverrideExprMapper

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

func (*OverrideExprMapper) Apply

func (m *OverrideExprMapper) Apply(inputScope data.Scope) (map[string]interface{}, error)

type TelemetryService added in v0.0.2

type TelemetryService interface {
	PipelineStarted(pipelineId, instanceId string, data map[string]interface{})
	StageStarted(pipelineId, instanceId, stageId string, data map[string]interface{})
	StageFinished(pipelineId, instanceId, stageId string, data map[string]interface{})
	PipelineFinished(pipelineId, instanceId string, data map[string]interface{})
}

func GetTelemetryService added in v0.0.2

func GetTelemetryService() TelemetryService

type TimerCallback

type TimerCallback func(ctx activity.Context) (resume bool)

type TimerSupport

type TimerSupport interface {
	// HasTimer indicates if a timer already exists
	HasTimer(repeating bool) bool

	// CancelTimer cancels the existing timer
	CancelTimer(repeating bool)

	UpdateTimer(repeating bool)

	// CreateTimer creates a timer, note: can only have one active timer at a time for an activity
	CreateTimer(interval time.Duration, callback TimerCallback, repeating bool) error
}

TimerSupport is used to create a timer on behalf of the activity

func GetTimerSupport

func GetTimerSupport(ctx interface{}) (TimerSupport, bool)

GetTimerSupport for the activity //activity.Context

Jump to

Keyboard shortcuts

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