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.
Click to show internal directories.
Click to hide internal directories.