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 ¶
ProviderConstructor builds a Provider instance from decrypted config.
func LookupProvider ¶
func LookupProvider(name string) (ProviderConstructor, bool)
LookupProvider returns a named provider constructor if registered.
Click to show internal directories.
Click to hide internal directories.