orchestration

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Providers

func Providers() []string

Providers lists all registered orchestration provider names.

func RegisterProvider

func RegisterProvider(name string, constructor ProviderConstructor) error

RegisterProvider adds an orchestration provider constructor.

Types

type Provider

type Provider interface {
	// QueryPlans returns plans matching the query.
	QueryPlans(ctx context.Context, query schema.OrchestrationPlanQuery) ([]schema.OrchestrationPlan, error)

	// GetPlan returns a single plan by ID.
	GetPlan(ctx context.Context, planID string) (*schema.OrchestrationPlan, error)

	// QueryRuns returns runs matching the query.
	QueryRuns(ctx context.Context, query schema.OrchestrationRunQuery) ([]schema.OrchestrationRun, error)

	// GetRun returns a single run by ID, including current step states.
	GetRun(ctx context.Context, runID string) (*schema.OrchestrationRun, error)

	// StartRun creates a new run from a plan.
	StartRun(ctx context.Context, planID string) (*schema.OrchestrationRun, error)

	// CompleteStep marks a manual/blocked step as complete.
	CompleteStep(ctx context.Context, runID string, stepID string, actor string, note string) error
}

Provider defines the capability surface an orchestration adapter must satisfy.

type ProviderConstructor

type ProviderConstructor func(config map[string]any) (Provider, error)

ProviderConstructor builds a Provider instance from decrypted config.

func LookupProvider

func LookupProvider(name string) (ProviderConstructor, bool)

LookupProvider returns a named provider constructor if registered.

Jump to

Keyboard shortcuts

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