{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.3.63","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Types\n\n```go\ntype Executor struct {\n\t// contains filtered or unexported fields\n}\n```\nExecutor bridges deployment strategies with cloud providers. It looks up the appropriate strategy and provider, validates the plan, and delegates execution to the cloud provider.\n\n```go\nfunc NewExecutor(strategies *deploy.StrategyRegistry) *Executor\n```\nNewExecutor creates an Executor backed by the given strategy registry.\n\n```go\nfunc (e *Executor) Deploy(ctx context.Context, providerName string, req provider.DeployRequest) (*provider.DeployResult, error)\n```\nDeploy 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.\n\n```go\nfunc (e *Executor) GetProvider(name string) (provider.CloudProvider, bool)\n```\nGetProvider returns the cloud provider with the given name, or false if not found.\n\n```go\nfunc (e *Executor) RegisterProvider(name string, p provider.CloudProvider)\n```\nRegisterProvider adds a cloud provider under the given name.\n\n","path":"github.com/GoCodeAlone/workflow/deploy/executor","name":"executor","synopsis":"","isRedistributable":true}
