Versions in this module Expand all Collapse all v0 v0.6.0 Apr 20, 2026 Changes in this version + const DefaultProvider + const EnvAutoApprove + const EnvDeployProvider + const EnvDryRun + const EnvPulumiAccessToken + const EnvPulumiBackend + var ErrAuthenticationFailed = errors.New("deploy: authentication failed") + var ErrDeploymentFailed = errors.New("deploy: deployment failed") + var ErrDeploymentNotFound = errors.New("deploy: deployment not found") + var ErrInvalidConfig = errors.New("deploy: invalid configuration") + var ErrOperationCanceled = errors.New("deploy: operation canceled") + var ErrProviderAlreadyRegistered = errors.New("deploy: provider already registered") + var ErrProviderNotFound = errors.New("deploy: provider not found") + var ErrPulumiNotConfigured = errors.New("deploy: pulumi backend not configured") + var ErrResourceQuotaExceeded = errors.New("deploy: resource quota exceeded") + func HasProvider(name ProviderName) bool + func MustRegisterProvider(name ProviderName, factory ProviderFactory, priority int) error + func RegisterProvider(name ProviderName, factory ProviderFactory, priority int) + func ResetRegistry() + func UnregisterProvider(name ProviderName) + type BuildConfig struct + Args map[string]string + Context string + Dockerfile string + type Capabilities struct + AutoScaling bool + CustomDomain bool + HTTPS bool + MaxMemoryMB int + Preview bool + Rollback bool + SecretsIntegration bool + VPC bool + type ConfigError struct + Err error + Field string + func NewConfigError(field string, err error) *ConfigError + func (e *ConfigError) Error() string + func (e *ConfigError) Unwrap() error + type DeployConfig struct + AutoApprove bool + DryRun bool + Provider string + ProviderConfig any + PulumiBackend string + Stack StackConfig + func LoadDeployConfig(path string) (*DeployConfig, error) + func NewDeployConfig() *DeployConfig + func (c *DeployConfig) GetProviderName() string + func (c *DeployConfig) Validate() error + type DeploymentError struct + Err error + StackName string + State DeploymentState + func NewDeploymentError(stackName string, state DeploymentState, err error) *DeploymentError + func (e *DeploymentError) Error() string + func (e *DeploymentError) Unwrap() error + type DeploymentState string + const StateDestroyed + const StateDestroying + const StateFailed + const StateInProgress + const StatePending + const StateSucceeded + const StateUnknown + func (s DeploymentState) IsTerminal() bool + func (s DeploymentState) String() string + type DeploymentStatus struct + Duration time.Duration + EndTime time.Time + Error string + Message string + Metadata map[string]any + Outputs map[string]string + Provider string + Resources []Resource + StackName string + StartTime time.Time + State DeploymentState + Version string + func (s *DeploymentStatus) CalculateSummary() ResourceSummary + type HealthCheckConfig struct + HealthyThreshold int + IntervalSeconds int + Path string + TimeoutSeconds int + UnhealthyThreshold int + type ImageConfig struct + Build *BuildConfig + Digest string + Repository string + Tag string + type LogEntry struct + Level string + Message string + Source string + Timestamp string + type LogProvider interface + StreamLogs func(ctx context.Context, stackName string, logs chan<- LogEntry) error + type PreviewProvider interface + Preview func(ctx context.Context, cfg *DeployConfig) (*PreviewResult, error) + type PreviewResult struct + Creates []ResourcePreview + Deletes []ResourcePreview + StackName string + Summary string + Updates []ResourcePreview + type Provider interface + Capabilities func() Capabilities + Close func() error + Deploy func(ctx context.Context, cfg *DeployConfig) (*DeploymentStatus, error) + Destroy func(ctx context.Context, stackName string) error + Name func() string + Status func(ctx context.Context, stackName string) (*DeploymentStatus, error) + func GetProvider(cfg *DeployConfig) (Provider, error) + func GetProviderByName(name ProviderName, cfg *DeployConfig) (Provider, error) + type ProviderError struct + Err error + Op string + Provider string + func NewProviderError(provider, op string, err error) *ProviderError + func (e *ProviderError) Error() string + func (e *ProviderError) Unwrap() error + type ProviderFactory func(cfg *DeployConfig) (Provider, error) + type ProviderInfo struct + Name ProviderName + Priority int + func ListProviderInfo() []ProviderInfo + type ProviderName string + const ProviderCloudRun + const ProviderDocker + const ProviderECS + const ProviderLightsail + func ListProviders() []ProviderName + type Resource struct + ID string + Name string + Outputs map[string]any + State string + Type string + URN string + type ResourceConfig struct + CPU string + Memory string + Port int + type ResourcePreview struct + Details map[string]any + Name string + Type string + URN string + type ResourceSummary struct + Created int + Deleted int + Total int + Unchanged int + Updated int + type RollbackProvider interface + ListVersions func(ctx context.Context, stackName string) ([]string, error) + Rollback func(ctx context.Context, stackName string, targetVersion string) (*DeploymentStatus, error) + type ScalingConfig struct + MaxInstances int + MinInstances int + TargetCPUPercent int + type SecretRef struct + Key string + Source string + Version string + type StackConfig struct + Description string + Environment map[string]string + HealthCheck *HealthCheckConfig + Image ImageConfig + Name string + Project string + Region string + Resources ResourceConfig + Scaling *ScalingConfig + Secrets map[string]SecretRef + Tags map[string]string