migrate

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package migrate converts a legacy v1 keepup file into the v2 schema.

v1 declared a single top-level `execution:` list of `group:` waves. v2 replaces that with named `flows:`. migrate maps the single execution chain into one step-mode flow, leaving groups, env, and settings otherwise intact.

Index

Constants

View Source
const DefaultFlowName = "main"

DefaultFlowName is the name given to the flow synthesized from v1 `execution`.

Variables

This section is empty.

Functions

func Migrate

func Migrate(data []byte, opts Options) ([]byte, error)

Migrate parses v1 YAML bytes and returns the equivalent v2 YAML document. The result is validated against the live v2 parser before being returned, so a successful migration is guaranteed to load.

Types

type Options

type Options struct {
	// FlowName is the name for the flow synthesized from `execution`.
	// Defaults to DefaultFlowName when empty.
	FlowName string
}

Options configures a migration.

Jump to

Keyboard shortcuts

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