Help us shape the future of Go! Take the 2026 Go Developer Survey

legacydo

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package legacydo holds the read-only data and message formatters for the legacy DigitalOcean module + step types removed in issue #617. Lives in internal/ so that both module/ and modernize/ can import it without a cycle (module transitively imports modernize via plugin, so modernize cannot import module).

Index

Constants

View Source
const RemovedInVersion = "v0.52.0"

RemovedInVersion is the workflow tag that ships issue #617's force-cutover. Used in every legacy-DO migration error and in the wfctl modernize rule. Update both this constant and the docs/migrations/v<X>-godo-removal.md filename when the release tag is finalised.

Variables

View Source
var ModuleTypes = map[string]string{
	"platform.do_app":        "infra.container_service",
	"platform.do_database":   "infra.database",
	"platform.do_dns":        "infra.dns",
	"platform.do_networking": "infra.vpc + infra.firewall",
	"platform.doks":          "infra.k8s_cluster",
}

ModuleTypes maps each removed legacy DigitalOcean module type to its infra.* IaC successor (issue #617).

View Source
var StepTypes = map[string]string{
	"step.do_deploy":  "step.iac_apply (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
	"step.do_status":  "step.iac_status (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
	"step.do_destroy": "step.iac_destroy (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
	"step.do_logs":    "no direct pipeline-step equivalent; use `wfctl infra logs` ad-hoc, or rely on the DO plugin's Troubleshoot hook on step.iac_apply failure",
	"step.do_scale":   "no direct pipeline-step equivalent; update instance_count in the infra.container_service module config and re-run step.iac_apply",
}

StepTypes maps each removed legacy DigitalOcean step type to its successor or to a workaround when no 1:1 successor exists.

Functions

func FormatModuleError

func FormatModuleError(legacyType, moduleName string, iacProviderLoaded bool) error

FormatModuleError builds the actionable migration error for a legacy DO module type. iacProviderLoaded indicates whether the iac.provider factory is registered in the engine — used to branch between the "install plugin" and "config-only issue" messages.

func FormatStepError

func FormatStepError(legacyType string, iacProviderLoaded bool) error

FormatStepError builds the actionable migration error for a legacy DO step type.

func IsModuleType

func IsModuleType(t string) bool

IsModuleType reports whether t is a removed legacy DO module type.

func IsStepType

func IsStepType(t string) bool

IsStepType reports whether t is a removed legacy DO step type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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