executor

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor bridges deployment strategies with cloud providers. It looks up the appropriate strategy and provider, validates the plan, and delegates execution to the cloud provider.

func NewExecutor

func NewExecutor(strategies *deploy.StrategyRegistry) *Executor

NewExecutor creates an Executor backed by the given strategy registry.

func (*Executor) Deploy

func (e *Executor) Deploy(ctx context.Context, providerName string, req provider.DeployRequest) (*provider.DeployResult, error)

Deploy executes a deployment through the named provider, using the strategy identified in the request. It validates the strategy config, deploys via the provider, and handles rollback on failure when configured.

func (*Executor) GetProvider

func (e *Executor) GetProvider(name string) (provider.CloudProvider, bool)

GetProvider returns the cloud provider with the given name, or false if not found.

func (*Executor) RegisterProvider

func (e *Executor) RegisterProvider(name string, p provider.CloudProvider)

RegisterProvider adds a cloud provider under the given name.

Jump to

Keyboard shortcuts

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