runners

package
v0.0.0-...-6718cd6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonRunner

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

func NewCommonRunner

func NewCommonRunner(
	configuration *config.Config,
) *CommonRunner

func (*CommonRunner) Start

func (n *CommonRunner) Start(ctx context.Context) error

func (*CommonRunner) Stop

func (n *CommonRunner) Stop(ctx context.Context) error

type Loop

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

func NewLoop

func NewLoop(runner *WorkflowRunner) *Loop

func (*Loop) Close

func (l *Loop) Close(ctx context.Context)

func (*Loop) Run

func (l *Loop) Run(ctx context.Context)

type Runner

type Runner interface {
	// Start starts the runner with the given context
	Start(ctx context.Context) error
	// Stop gracefully stops the runner with the given context
	Stop(ctx context.Context) error
}

Runner defines the standard interface for all runners

type WorkflowRunner

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

func NewWorkflowRunner

func NewWorkflowRunner(
	configuration *config.Config,
	keysManager taskverifier.KeysManager,
	verifier *taskverifier.TaskVerifier,
	opmsClient opms.Client,
	traceroute traceroute.Component,
	eventPlatform eventplatform.Component,
) (*WorkflowRunner, error)

func (*WorkflowRunner) RunTask

func (n *WorkflowRunner) RunTask(
	ctx context.Context,
	task *types.Task,
	credential *privateconnection.PrivateCredentials,
) (interface{}, error)

func (*WorkflowRunner) Start

func (n *WorkflowRunner) Start(ctx context.Context) error

func (*WorkflowRunner) Stop

func (n *WorkflowRunner) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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