Documentation
¶
Overview ¶
Package coolifyexit turns a read of a Coolify instance and the import plan built from it into an exit report: what each resource becomes, what still needs a person, and an ordered cutover checklist. It is pure and read-only.
Index ¶
Constants ¶
View Source
const ( ModeDryRun = "dry-run" // ModeVerify is used once at least one source app already exists here. ModeVerify = "verify" )
Modes of a report.
Variables ¶
This section is empty.
Functions ¶
func SourceName ¶
func SourceName(p platformimport.Platform) string
SourceName is how the report calls the platform being left.
Types ¶
type Report ¶
type Report struct {
Mode string `json:"mode"`
Rows []Row `json:"rows"`
Counts map[Outcome]int `json:"counts"`
Waves []Wave `json:"waves"`
Checklist []Step `json:"checklist"`
Notes []string `json:"notes,omitempty"`
// ReadyToRetire is true only when every resource is imported and none needs a person.
ReadyToRetire bool `json:"ready_to_retire"`
}
Report is the exit report.
func Build ¶
func Build(d *platformimport.Discovery, plan *platformimport.Plan) Report
Build assembles the report. plan must come from platformimport.BuildPlan over d.
type Row ¶
type Row struct {
Kind string `json:"kind"`
Name string `json:"name"`
Target string `json:"target,omitempty"`
Outcome Outcome `json:"outcome"`
Reasons []string `json:"reasons,omitempty"`
Next []string `json:"next,omitempty"`
}
Row is one source resource and its outcome.
type Step ¶
type Step struct {
ID string `json:"id"`
Title string `json:"title"`
Detail string `json:"detail"`
Commands []string `json:"commands,omitempty"`
}
Step is one cutover checklist step. Commands are subcommands without the program name.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package exportfixture serves a read-only imitation of a Coolify API export for tests.
|
Package exportfixture serves a read-only imitation of a Coolify API export for tests. |
Click to show internal directories.
Click to hide internal directories.