orchestrator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppManager

type AppManager interface {
	Start(ctx context.Context, cfg *plugin.AppConfig) error
	Stop(ctx context.Context) error
}

AppManager starts and stops the application under test. *app.DockerManager satisfies it.

type MockManager

type MockManager interface {
	StartAll(ctx context.Context, serviceConfigs map[string]map[string]interface{}) error
	StopAll(ctx context.Context) error
}

MockManager starts and stops the mock services. *mock.Manager satisfies it.

type Orchestrator

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

Orchestrator coordinates the full component-test pipeline: start mocks, start the application, run tests, then tear everything down.

func NewOrchestrator

func NewOrchestrator(cfg *config.Config, mocks MockManager, app AppManager, tests TestRunner, logger *zap.Logger) *Orchestrator

NewOrchestrator wires the orchestrator with its phase managers.

func (*Orchestrator) Run

func (o *Orchestrator) Run(ctx context.Context) (*Result, error)

Run executes the pipeline. Whatever was started is always torn down before Run returns, even on failure or context cancellation.

type Result

type Result struct {
	MocksStarted bool
	AppStarted   bool
	Test         *plugin.TestResult
}

Result summarizes a pipeline run.

type TestRunner

type TestRunner interface {
	Run(ctx context.Context, cfg *config.Config) (*plugin.TestResult, error)
}

TestRunner executes the test suite. Until Phase 4 lands this is a stub.

Jump to

Keyboard shortcuts

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