support

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.2.1

func NewFactory(resolver resolve.CompositeResolver) mapper.Factory

func RegisterTelemetryService added in v0.2.1

func RegisterTelemetryService(service TelemetryService)

Types

type ExprMapperFactory added in v0.2.1

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

func (*ExprMapperFactory) NewMapper added in v0.2.1

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

type OverrideExprMapper added in v0.2.1

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

func (*OverrideExprMapper) Apply added in v0.2.1

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

type TelemetryService added in v0.2.1

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.2.1

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